From 1db12466cb5ad8483cd469753d2e312a62d717b7 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Tue, 5 Dec 2017 11:16:50 +0100 Subject: meson: build a full dependency for lib_igt_perf meson prefers packages dependencies over passing arount static libraries, because those also include linker flags, include dirs and everything else. While at it pull the special cases out from the common build stanzas like we do with other special cases. Just a bit of ocd to keep everything polished. v2: Don't forget to add perf_pmu to the test list (Petri). Cc: Tvrtko Ursulin Reviewed-by: Petri Latvala Signed-off-by: Daniel Vetter --- lib/meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/meson.build') diff --git a/lib/meson.build b/lib/meson.build index 29d89cf0..d06d85b4 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -180,8 +180,11 @@ lib_igt = declare_dependency(link_with : lib_igt_build, igt_deps = [ lib_igt ] + lib_deps -lib_igt_perf = static_library('igt_perf', +lib_igt_perf_build = static_library('igt_perf', ['igt_perf.c'] ) +lib_igt_perf = declare_dependency(link_with : lib_igt_perf_build, + include_directories : inc) + subdir('tests') -- cgit v1.2.3