Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 0/1] Simplify tests/meson.build
@ 2023-07-06  8:39 Mauro Carvalho Chehab
  2023-07-06  8:39 ` [igt-dev] [PATCH i-g-t 1/1] tests/meson.build: Simplify builds for core and i915 targets Mauro Carvalho Chehab
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2023-07-06  8:39 UTC (permalink / raw)
  To: igt-dev

From: Mauro Carvalho Chehab <mchehab@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-07-06 13:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-06  8:39 [igt-dev] [PATCH i-g-t 0/1] Simplify tests/meson.build Mauro Carvalho Chehab
2023-07-06  8:39 ` [igt-dev] [PATCH i-g-t 1/1] tests/meson.build: Simplify builds for core and i915 targets Mauro Carvalho Chehab
2023-07-06 10:13 ` [igt-dev] ✓ Fi.CI.BAT: success for Simplify tests/meson.build Patchwork
2023-07-06 10:39 ` [igt-dev] ○ CI.xeBAT: info " Patchwork
2023-07-06 13:06 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox