[PATCH i-g-t 3/4] lib/chamelium/v2: Rename chamelium to chamelium_v2
Vignesh Raman
vignesh.raman at collabora.com
Tue Nov 12 09:34:10 UTC 2024
Hi Louis,
On 22/10/24 20:19, Louis Chauvet wrote:
> To avoid confusion in meson build file, rename the variable chamlium to
> chamlium_v2.
>
> Signed-off-by: Louis Chauvet <louis.chauvet at bootlin.com>
> ---
> .gitlab-ci.yml | 2 +-
> docs/testplan/meson.build | 4 ++--
> lib/meson.build | 4 ++--
> lib/tests/meson.build | 4 ++--
> meson.build | 16 ++++++++--------
> meson_options.txt | 4 ++--
> tests/meson.build | 8 ++++----
> 7 files changed, 21 insertions(+), 21 deletions(-)
>
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index a6c076dba487..ff4f4f94b691 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -5,7 +5,7 @@ variables:
> MESON_OPTIONS: >
> -Dlibdrm_drivers=intel,nouveau,amdgpu
> -Doverlay=enabled
> - -Dchamelium=enabled
> + -Dchamelium_v2=enabled
> -Dvalgrind=enabled
> -Dman=enabled
> -Dtests=enabled
> diff --git a/docs/testplan/meson.build b/docs/testplan/meson.build
> index 5560347f1337..f60c82ad139c 100644
> --- a/docs/testplan/meson.build
> +++ b/docs/testplan/meson.build
> @@ -21,8 +21,8 @@ if build_tests
> build_info += 'Will Check if documentation is in sync with testlist'
> check_testlist = [ '--check-testlist', '--igt-build-path', build_root ]
>
> - if not chamelium.found()
> - warning('WARNING: Will not check if documentation is in sync for KMS as chamelium is disabled')
> + if not chamelium_v2.found()
> + warning('WARNING: Will not check if documentation is in sync for KMS as chamelium v2 is disabled')
> else
> kms_check_testlist = check_testlist
> endif
> diff --git a/lib/meson.build b/lib/meson.build
> index dc70704bd919..5769f96fbdc1 100644
> --- a/lib/meson.build
> +++ b/lib/meson.build
> @@ -189,8 +189,8 @@ if alsa.found()
> lib_sources += 'igt_alsa.c'
> endif
>
> -if chamelium.found()
> - lib_deps += chamelium
> +if chamelium_v2.found()
> + lib_deps += chamelium_v2
> lib_sources += [
> 'chamelium/v2/igt_chamelium.c',
> 'chamelium/v2/igt_chamelium_stream.c'
> diff --git a/lib/tests/meson.build b/lib/tests/meson.build
> index df8092638eca..fa7741b7be61 100644
> --- a/lib/tests/meson.build
> +++ b/lib/tests/meson.build
> @@ -36,8 +36,8 @@ lib_fail_tests = [
>
> lib_tests_deps = igt_deps
>
> -if chamelium.found()
> - lib_deps += chamelium
> +if chamelium_v2.found()
> + lib_deps += chamelium_v2
> lib_tests += 'igt_audio'
> endif
>
> diff --git a/meson.build b/meson.build
> index 64f57f232ad8..df0f7b718986 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -86,7 +86,7 @@ foreach cc_arg : cc_args
> endif
> endforeach
>
> -build_chamelium = get_option('chamelium')
> +build_chamelium_v2 = get_option('chamelium_v2')
> build_docs = get_option('docs')
> build_tests = not get_option('tests').disabled()
> build_xe = not get_option('xe_driver').disabled()
> @@ -174,17 +174,17 @@ if not xmlrpc.found() and xmlrpc_cmd.found()
> endif
> endif
>
> -if build_chamelium.enabled() and not (xmlrpc.found() and xmlrpc_util.found() and xmlrpc_client.found())
> +if build_chamelium_v2.enabled() and not (xmlrpc.found() and xmlrpc_util.found() and xmlrpc_client.found())
> error('Chamelium build forced and required dependency xmlrpc not found')
> endif
>
> -gsl = dependency('gsl', required : build_chamelium)
> -alsa = dependency('alsa', required : build_chamelium)
> -libcurl = dependency('libcurl', required : build_chamelium)
> +gsl = dependency('gsl', required : build_chamelium_v2)
> +alsa = dependency('alsa', required : build_chamelium_v2)
> +libcurl = dependency('libcurl', required : build_chamelium_v2)
libcurl is required for chamelium v3 also. We can remove
build_chamelium_v2 in this case.
>
> if xmlrpc.found() and xmlrpc_util.found() and xmlrpc_client.found() and gsl.found() and alsa.found() and libcurl.found()
> config.set('HAVE_CHAMELIUM', 1)
> - chamelium = declare_dependency(dependencies : [
> + chamelium_v2 = declare_dependency(dependencies : [
> xmlrpc,
> xmlrpc_util,
> xmlrpc_client,
> @@ -192,10 +192,10 @@ if xmlrpc.found() and xmlrpc_util.found() and xmlrpc_client.found() and gsl.foun
> alsa,
> ])
> else
> - chamelium = disabler()
> + chamelium_v2 = disabler()
> endif
>
> -build_info += 'Build Chamelium test: @0@'.format(chamelium.found())
> +build_info += 'Build Chamelium v2 test: @0@'.format(chamelium_v2.found())
This should be added inside the if condition?
>
> pthreads = dependency('threads')
> math = cc.find_library('m')
> diff --git a/meson_options.txt b/meson_options.txt
> index c410f9b777ad..3a6edefba349 100644
> --- a/meson_options.txt
> +++ b/meson_options.txt
> @@ -8,9 +8,9 @@ option('overlay_backends',
> choices : [ 'auto', 'x', 'xv' ],
> description : 'Overlay backends to enable')
>
> -option('chamelium',
> +option('chamelium_v2',
> type : 'feature',
> - description : 'Build Chamelium test')
> + description : 'Build Chamelium v2 test')
>
> option('valgrind',
> type : 'feature',
> diff --git a/tests/meson.build b/tests/meson.build
> index 4cb199d34527..4eebe1838979 100644
> --- a/tests/meson.build
> +++ b/tests/meson.build
> @@ -332,7 +332,7 @@ if build_xe_eudebug
> intel_xe_progs += intel_xe_eudebug_progs
> endif
>
> -chamelium_progs = [
> +chamelium_v2_progs = [
> 'kms_chamelium_audio',
> 'kms_chamelium_color',
> 'kms_chamelium_edid',
> @@ -435,8 +435,8 @@ foreach prog : intel_progs
> endif
> endforeach
>
> -if chamelium.found()
> - foreach prog : chamelium_progs
> +if chamelium_v2.found()
> + foreach prog : chamelium_v2_progs
> testexe = executable(prog,
> [join_paths('chamelium', 'v2', prog + '.c')] + extra_sources.get(prog, []),
> dependencies : test_deps + extra_dependencies.get(prog, []),
> @@ -454,7 +454,7 @@ if chamelium.found()
> output : name + '.testlist')
> endif
> endforeach
> - test_deps += chamelium
> + test_deps += chamelium_v2
> endif
>
> subdir('amdgpu')
>
Regards,
Vignesh
More information about the igt-dev
mailing list