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']:
37 if 'LLVM_VERSION' in env:
38 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
40 env.Prepend(LIBS = [llvmpipe])
42 # Need this for trace, identity drivers referenced by
43 # gallium_wrap_screen().
45 env.Prepend(LIBS = [gallium])
47 # TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
48 graw = env.SharedLibrary(
53 env.InstallSharedLibrary(graw, version=(1, 0))
55 graw = env.FindIxes(graw, 'SHLIBPREFIX', 'SHLIBSUFFIX')