diff options
author | José Fonseca <[email protected]> | 2009-02-02 15:37:58 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-02-02 15:37:58 +0000 |
commit | df73c964d85d2f44d8c62558b5752b2f4443763f (patch) | |
tree | 56d6fdd649bf7137118de722b37f4affacd5df5e /src/gallium/winsys/xlib/SConscript | |
parent | f0ad6b6144bb416bc22ddccca0be4e614131a2b3 (diff) |
xlib: Get conditional compilation of drivers working again.
Diffstat (limited to 'src/gallium/winsys/xlib/SConscript')
-rw-r--r-- | src/gallium/winsys/xlib/SConscript | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/src/gallium/winsys/xlib/SConscript b/src/gallium/winsys/xlib/SConscript index 434572fcd00..0fb4b50f634 100644 --- a/src/gallium/winsys/xlib/SConscript +++ b/src/gallium/winsys/xlib/SConscript @@ -13,24 +13,39 @@ if env['platform'] == 'linux' \ env.Append(CPPPATH = [ '#/src/mesa', '#/src/mesa/main', + '#src/gallium/state_trackers/glx/xlib', ]) - sources = []; + env.Append(CPPDEFINES = ['USE_XSHM']) - drivers = []; + sources = [ + 'xlib.c', + ] + + drivers = [] if 'softpipe' in env['drivers']: + env.Append(CPPDEFINES = 'GALLIUM_SOFTPIPE') + sources += ['xlib_softpipe.c'] drivers += [softpipe] if 'i965simple' in env['drivers']: - drivers += [i965simple] + env.Append(CPPDEFINES = 'GALLIUM_I965SIMPLE') sources += [ - 'brw_aub.c', - 'xm_winsys_aub.c', - ] + 'xlib_brw_aub.c', + 'xlib_brw_context.c', + 'xlib_brw_screen.c', + ] + drivers += [i965simple] + if 'cell' in env['drivers']: + env.Append(CPPDEFINES = 'GALLIUM_CELL') + sources += ['xlib_cell.c'] + drivers += [cell] + if 'trace' in env['drivers']: env.Append(CPPDEFINES = 'GALLIUM_TRACE') + sources += ['xlib_trace.c'] drivers += [trace] # TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions |