diff options
author | Vinson Lee <[email protected]> | 2012-12-03 23:24:12 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2012-12-04 22:21:04 -0800 |
commit | 129a580062064a48d42929e8463f230ee6a4b8ed (patch) | |
tree | 303699143b420a6fa6c30804919dbadcd24d3c61 | |
parent | a64c1eb9b110f29b8abf803a8256306702629bdc (diff) |
scons: Require drm to build gallium/state_trackers/egl/x11/x11_screen.c.
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 <[email protected]>
Reviewed-by: José Fonseca <[email protected]>
-rw-r--r-- | src/gallium/state_trackers/egl/SConscript | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/egl/SConscript b/src/gallium/state_trackers/egl/SConscript index 68c77250f90..2f7ac7e58db 100644 --- a/src/gallium/state_trackers/egl/SConscript +++ b/src/gallium/state_trackers/egl/SConscript @@ -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']) |