From 4d2af5c79d60d6dcdba0bfdddf7d73ab6ac78f89 Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Tue, 20 Feb 2018 11:00:21 +0200 Subject: meson: Use bufmgr stubs headers if libdrm_intel is not found Just adding the .h file to lib_headers is not enough. With this change we are passing 'stubs/drm' as a part of include_directories when building, so a proper -I will be issued to the compiler. This can be done by turning 'inc' into a list of include_directories()-generated objects. Cc: Liviu Dudau Cc: Eric Anholt Signed-off-by: Arkadiusz Hiler Reviewed-by: Petri Latvala Tested-by: Petri Latvala --- lib/meson.build | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/meson.build') diff --git a/lib/meson.build b/lib/meson.build index 6c77e407..8f14f632 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -123,6 +123,7 @@ if libdrm_intel.found() else lib_headers += 'stubs/drm/intel_bufmgr.h' lib_sources += 'stubs/drm/intel_bufmgr.c' + inc = [ inc, include_directories('stubs/drm') ] endif if valgrind.found() -- cgit v1.2.3