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.
18 env.Append(CPPDEFINES = 'GALLIUM_SOFTPIPE')
19 env.Prepend(LIBS = [softpipe])
22 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
24 env.Prepend(LIBS = [llvmpipe])
26 if 'cell' in env['drivers']:
27 env.Append(CPPDEFINES = 'GALLIUM_CELL')
28 env.Prepend(LIBS = [cell])
30 sw = env.ConvenienceLibrary(