1 #######################################################################
2 # SConscript for xlib winsys
6 if env['platform'] != 'linux':
9 if not set(('softpipe', 'llvmpipe', 'cell')).intersection(env['drivers']):
10 print 'warning: no supported pipe driver: skipping build of xlib libGL.so'
22 env.Append(CPPPATH = [
23 '#src/gallium/drivers',
31 if 'softpipe' in env['drivers']:
32 env.Append(CPPDEFINES = 'GALLIUM_SOFTPIPE')
33 env.Prepend(LIBS = [softpipe])
35 if 'llvmpipe' in env['drivers']:
36 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
38 env.Prepend(LIBS = [llvmpipe])
40 # Need this for trace, identity drivers referenced by
41 # gallium_wrap_screen().
43 env.Prepend(LIBS = [gallium])
45 # TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
46 graw = env.SharedLibrary(
51 env.InstallSharedLibrary(graw, version=(1, 0))
53 graw = env.FindIxes(graw, 'SHLIBPREFIX', 'SHLIBSUFFIX')