From 1bb318b32db003a377da14715c7b80675a712b6b Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Sun, 6 May 2018 23:10:35 +0100 Subject: lib: create new dependency for aubdump While trying to capture an aubdump on a libva demo, I run into a crash in intel_batchbuffer.c. Turn out every driver has it's own intel_batchbuffer.c with similar symbols and because aubdump pulls in libigt, things go wrong. One could argue that there is something wrong with intel-vaapi-driver's build but I also think aubdump should embed as little as possible. This change creates a very small library that embeds just the needed bits of igt for aubdump. Signed-off-by: Lionel Landwerlin Reviewed-by: Katarzyna Dec --- lib/meson.build | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib/meson.build') diff --git a/lib/meson.build b/lib/meson.build index 5f2567fb..04d550fa 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -124,10 +124,17 @@ lib_igt = declare_dependency(link_with : lib_igt_build, igt_deps = [ lib_igt ] + lib_deps +lin_igt_chipset_build = static_library('igt_chipset', + ['intel_chipset.c', + 'intel_device_info.c'], + include_directories : inc) + +lib_igt_chipset = declare_dependency(link_with : lin_igt_chipset_build, + include_directories : inc) + lib_igt_perf_build = static_library('igt_perf', ['igt_perf.c'], - include_directories : inc -) + include_directories : inc) lib_igt_perf = declare_dependency(link_with : lib_igt_perf_build, include_directories : inc) -- cgit v1.2.3