[igt-dev] [PATCH i-g-t 1/2] meson: Use bufmgr stubs headers if libdrm_intel is not found

Arkadiusz Hiler arkadiusz.hiler at intel.com
Tue Feb 20 09:00:21 UTC 2018


Just adding the .h file to lib_headers is not enough.

We have to pass '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 <liviu.dudau at arm.com>
Cc: Eric Anholt <eric at anholt.net>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
---
 lib/meson.build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/meson.build b/lib/meson.build
index 94ea0799..04b4fff6 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -121,6 +121,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()
-- 
2.14.3



More information about the igt-dev mailing list