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'
19 env.Append(CPPPATH = [
23 '#src/gallium/state_trackers/glx/xlib',
26 env.Append(CPPDEFINES = ['USE_XSHM'])
47 env.Append(CPPDEFINES = 'GALLIUM_SOFTPIPE')
48 env.Prepend(LIBS = [softpipe])
51 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
53 env.Prepend(LIBS = [llvmpipe])
55 if 'cell' in env['drivers']:
56 env.Append(CPPDEFINES = 'GALLIUM_CELL')
57 env.Prepend(LIBS = [cell])
59 # TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
60 libgl = env.SharedLibrary(
66 # Only install this libGL.so if DRI not enabled
67 env.InstallSharedLibrary(libgl, version=(1, 5))