1 #######################################################################
2 # SConscript for swrast convenience library
4 # This is a meta-driver which consists of any and all of the software
5 # rasterizers into a single driver. A software rasterizer is defined
6 # as any driver which takes an sw_winsys pointer as the only argument
9 # XXX: unfortunately users of this driver still need to link in any
10 # extra libraries needed for the particular driver (eg llvm for
11 # llvmpipe). Not sure how to get around this.
15 if not set(('softpipe', 'llvmpipe', 'cell')).intersection(env['drivers']):
16 print 'warning: no supported pipe driver: skipping build of sw meta-driver'
21 if 'softpipe' in env['drivers']:
22 env.Append(CPPDEFINES = 'GALLIUM_SOFTPIPE')
23 env.Prepend(LIBS = [softpipe])
25 if 'llvmpipe' in env['drivers']:
27 if 'LLVM_VERSION' in env:
28 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
30 env.Prepend(LIBS = [llvmpipe])
32 if 'cell' in env['drivers']:
33 env.Append(CPPDEFINES = 'GALLIUM_CELL')
34 env.Prepend(LIBS = [cell])
36 sw = env.ConvenienceLibrary(