[igt-dev] [PATCH i-g-t 0/1] Simplify tests/meson.build

Mauro Carvalho Chehab mauro.chehab at linux.intel.com
Thu Jul 6 08:39:46 UTC 2023


From: Mauro Carvalho Chehab <mchehab at kernel.org>

Some tests used on core and Intel driver have special requirements,
e. g. extra libraries and/or extra C files.

Right now, they all have their own special executable() target. This
makes the meson.build file messy, and makes harder to add extra
logic inside the foreach loops.

This patch shouldn't have any real impact: it just makes the file
a lot simpler by dropping all those extra build targets. Now, mapping
extra dependencies/sources are done via two dictionaries:

    extra_sources = {
	'core_hotunplug': [ 'core_hotunplug.c' ],
	'dumb_buffer': ['dumb_buffer.c' ],
	'testdisplay': [ 'testdisplay_hotplug.c' ],
	'kms_color':  [ 'kms_color_helper.c' ],
	'kms_dsc': [ join_paths ('i915', 'kms_dsc_helper.c') ],
	'kms_psr2_sf':  [ join_paths ('i915', 'kms_dsc_helper.c') ],
    }

    extra_dependencies = {
	'core_hotunplug': [ lib_igt_i915_perf ],
	'drm_fdinfo': [ lib_igt_drm_fdinfo ],
	'dumb_buffer':  [ libatomic ],
	'gem_barrier_race': [ lib_igt_i915_perf ],
	'gem_create': [ libatomic ],
	'gem_ctx_freq': [ lib_igt_perf ],
	'gem_ctx_sseu': [ lib_igt_perf ],
	'gem_eio': [ realtime ],
	'gem_exec_balancer': [ lib_igt_perf ],
	'gem_mmap_offset': [ libatomic ],
	'i915_pm_freq_mult': [ lib_igt_perf ],
	'i915_pm_rc6_residency': [ lib_igt_perf ],
	'perf': [ lib_igt_i915_perf ],
	'perf_pmu':  [ lib_igt_perf ],
	'sw_sync': [ libatomic ],
    }

Mauro Carvalho Chehab (1):
  tests/meson.build: Simplify builds for core and i915 targets

 tests/meson.build | 223 +++++++++++++---------------------------------
 1 file changed, 61 insertions(+), 162 deletions(-)

-- 
2.40.1



More information about the igt-dev mailing list