llvmpipe: twoside for specular color also
[mesa.git] / src / gallium / drivers / sw / SConscript
1 #######################################################################
2 # SConscript for swrast convenience library
3 #
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
7 # to create_screen.
8
9 Import('*')
10
11 env = env.Clone()
12
13 # To avoid targets having to check extensively or add drivers on a whim, append
14 # all referenced extra drivers to the exported symbol.
15 extra = []
16 if True:
17 env.Append(CPPDEFINES = 'GALLIUM_SOFTPIPE')
18 env.Prepend(LIBS = [softpipe])
19 extra.append(softpipe)
20
21 if env['llvm']:
22 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
23 env.Tool('udis86')
24 env.Prepend(LIBS = [llvmpipe])
25 extra.append(llvmpipe)
26
27 if 'cell' in env['drivers']:
28 env.Append(CPPDEFINES = 'GALLIUM_CELL')
29 env.Prepend(LIBS = [cell])
30 extra.append(cell)
31
32 sw = env.ConvenienceLibrary(
33 target = 'sw',
34 source = [
35 'sw.c',
36 ]
37 ) + extra
38 Export('sw')