scons: Require drm to build gallium/state_trackers/egl/x11/x11_screen.c.
authorVinson Lee <vlee@freedesktop.org>
Tue, 4 Dec 2012 07:24:12 +0000 (23:24 -0800)
committerVinson Lee <vlee@freedesktop.org>
Wed, 5 Dec 2012 06:21:04 +0000 (22:21 -0800)
x11_screen.c includes xf86drm.h, which comes from libdrm-dev.

This patch fixes this build error.

  Compiling src/gallium/state_trackers/egl/x11/x11_screen.c ...
src/gallium/state_trackers/egl/x11/x11_screen.c:30:21: fatal error: xf86drm.h: No such file or directory

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/state_trackers/egl/SConscript

index 68c77250f902d920c96696a95b6192c04d173dbf..2f7ac7e58dbcb11bf5c9a9e5635c23bb952e4409 100644 (file)
@@ -36,11 +36,13 @@ else:
             'x11/native_x11.c',
             'x11/native_dri2.c',
             'x11/native_ximage.c',
-            'x11/x11_screen.c',
             'x11/glxinit.c'])
         if env['drm']:
             env.Append(CPPDEFINES = ['GLX_DIRECT_RENDERING'])
-            sources.append(['#/src/glx/dri2.c'])
+            sources.append([
+                    '#/src/glx/dri2.c',
+                    'x11/x11_screen.c',
+                    ])
     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'])