[Mesa-dev] [PATCH 09/16] scons: loader: use libdrm when available

Emil Velikov emil.l.velikov at gmail.com
Tue Oct 11 18:31:53 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/loader/SConscript | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/loader/SConscript b/src/loader/SConscript
index d98f11e..c54e50a 100644
--- a/src/loader/SConscript
+++ b/src/loader/SConscript
@@ -12,6 +12,10 @@ if env['udev']:
     env.PkgUseModules('UDEV')
     env.Append(CPPDEFINES = ['HAVE_LIBUDEV'])
 
+if env['drm']:
+    env.PkgUseModules('DRM')
+    env.Append(CPPDEFINES = ['HAVE_LIBDRM'])
+
 # parse Makefile.sources
 sources = env.ParseSourceList('Makefile.sources', 'LOADER_C_FILES')
 
-- 
2.10.0



More information about the mesa-dev mailing list