[Mesa-dev] [PATCH 2/3] WIP: loader: scons: allow using of xmlconfig on supported platforms

Emil Velikov emil.l.velikov at gmail.com
Fri Aug 4 18:18:09 UTC 2017


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

Brings the SCons binaries on par with Autoconf, allowing users to select
their GPU via device_id.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
Completely untested. Posting if anyone is interested if polishing it up.
---
 src/loader/SConscript | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/loader/SConscript b/src/loader/SConscript
index f70654f43ae..e3474b2e4f0 100644
--- a/src/loader/SConscript
+++ b/src/loader/SConscript
@@ -12,6 +12,10 @@ if env['drm']:
     env.PkgUseModules('DRM')
     env.Append(CPPDEFINES = ['HAVE_LIBDRM'])
 
+# XXX: might need an include for the generated xmlconfig files
+if env['dri']:
+    env.Append(CPPDEFINES = ['USE_DRICONF'])
+
 # parse Makefile.sources
 sources = env.ParseSourceList('Makefile.sources', 'LOADER_C_FILES')
 
-- 
2.13.3



More information about the mesa-dev mailing list