Mesa (master): scons: Fix missing gbm symbols in st/egl.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Sat May 12 16:25:46 UTC 2012


Module: Mesa
Branch: master
Commit: 7b49d4f05d8224448835c8e36724241f7d087a90
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7b49d4f05d8224448835c8e36724241f7d087a90

Author: José Fonseca <jfonseca at vmware.com>
Date:   Sat May 12 17:08:30 2012 +0100

scons: Fix missing gbm symbols in st/egl.

---

 src/gallium/state_trackers/egl/SConscript |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/gallium/state_trackers/egl/SConscript b/src/gallium/state_trackers/egl/SConscript
index c04fec6..68c7725 100644
--- a/src/gallium/state_trackers/egl/SConscript
+++ b/src/gallium/state_trackers/egl/SConscript
@@ -24,6 +24,8 @@ if env['platform'] == 'windows':
     env.Append(CPPDEFINES = ['HAVE_GDI_BACKEND'])
     sources.append('gdi/native_gdi.c')
 else:
+    if env['drm']:
+        env.PkgUseModules('DRM')
     if env['x11']:
         env.Append(CPPDEFINES = ['HAVE_X11_BACKEND'])
         env.Prepend(CPPPATH = [
@@ -36,11 +38,11 @@ else:
             'x11/native_ximage.c',
             'x11/x11_screen.c',
             'x11/glxinit.c'])
-        if env['dri']:
+        if env['drm']:
             env.Append(CPPDEFINES = ['GLX_DIRECT_RENDERING'])
             sources.append(['#/src/glx/dri2.c'])
-    if env['drm']:
-        env.PkgUseModules('DRM')
+    if env['drm'] and False:
+        # XXX: Disabled as it depends on gbm, which is not yet built with scons
         env.Append(CPPDEFINES = ['HAVE_DRM_BACKEND'])
         env.Append(CPPPATH = [
             '#/src/gbm/main',




More information about the mesa-commit mailing list