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'])
37 if 'softpipe' in env['drivers']:
38 env.Append(CPPDEFINES = 'GALLIUM_SOFTPIPE')
39 sources += ['xlib_softpipe.c']
42 if 'llvmpipe' in env['drivers']:
44 if 'LLVM_VERSION' in env:
45 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
47 sources += ['xlib_llvmpipe.c']
50 if 'cell' in env['drivers']:
51 env.Append(CPPDEFINES = 'GALLIUM_CELL')
52 sources += ['xlib_cell.c']
55 # TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
56 libgl = env.SharedLibrary(
59 LIBS = st_xlib + glapi + mesa + glsl + drivers + gallium + env['LIBS'],
63 # Only install this libGL.so if DRI not enabled
64 env.InstallSharedLibrary(libgl, version=(1, 5))