1 #######################################################################
2 # SConscript for xlib winsys
6 if env['platform'] == 'linux' \
7 and 'mesa' in env['statetrackers'] \
8 and set(('softpipe', 'llvmpipe', 'i915', 'trace')).intersection(env['drivers']) \
13 env.Append(CPPPATH = [
16 '#src/gallium/state_trackers/glx/xlib',
19 env.Append(CPPDEFINES = ['USE_XSHM'])
27 if 'softpipe' in env['drivers']:
28 env.Append(CPPDEFINES = 'GALLIUM_SOFTPIPE')
29 sources += ['xlib_softpipe.c']
32 if 'llvmpipe' in env['drivers']:
34 if 'LLVM_VERSION' in env:
35 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
37 sources += ['xlib_llvmpipe.c']
40 if 'cell' in env['drivers']:
41 env.Append(CPPDEFINES = 'GALLIUM_CELL')
42 sources += ['xlib_cell.c']
45 if 'trace' in env['drivers']:
46 env.Append(CPPDEFINES = 'GALLIUM_TRACE')
47 sources += ['xlib_trace.c']
50 # TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
51 libgl = env.SharedLibrary(
54 LIBS = st_xlib + glapi + mesa + drivers + auxiliaries + env['LIBS'],
57 env.InstallSharedLibrary(libgl, version=(1, 5))