1 #######################################################################
2 # SConscript for xlib winsys
6 if env['platform'] != 'linux':
9 if 'mesa' not in env['statetrackers']:
10 print 'warning: Mesa state tracker disabled: skipping build of xlib libGL.so'
14 print 'warning: DRI enabled: skipping build of xlib libGL.so'
17 if not set(('softpipe', 'llvmpipe', 'cell')).intersection(env['drivers']):
18 print 'warning: no supported pipe driver: skipping build of xlib libGL.so'
23 env.Append(CPPPATH = [
26 '#src/gallium/state_trackers/glx/xlib',
29 env.Append(CPPDEFINES = ['USE_XSHM'])
47 if 'softpipe' in env['drivers']:
48 env.Append(CPPDEFINES = 'GALLIUM_SOFTPIPE')
49 env.Prepend(LIBS = [softpipe])
51 if 'llvmpipe' in env['drivers']:
53 if 'LLVM_VERSION' in env:
54 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
56 env.Prepend(LIBS = [llvmpipe])
58 if 'cell' in env['drivers']:
59 env.Append(CPPDEFINES = 'GALLIUM_CELL')
60 env.Prepend(LIBS = [cell])
62 # TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
63 libgl = env.SharedLibrary(
69 # Only install this libGL.so if DRI not enabled
70 env.InstallSharedLibrary(libgl, version=(1, 5))