Merge branch '7.8'
[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 # 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.
12
13 Import('*')
14
15 env = env.Clone()
16
17 if True:
18 env.Append(CPPDEFINES = 'GALLIUM_SOFTPIPE')
19 env.Prepend(LIBS = [softpipe])
20
21 if env['llvm']:
22 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
23 env.Tool('udis86')
24 env.Prepend(LIBS = [llvmpipe])
25
26 if 'cell' in env['drivers']:
27 env.Append(CPPDEFINES = 'GALLIUM_CELL')
28 env.Prepend(LIBS = [cell])
29
30 sw = env.ConvenienceLibrary(
31 target = 'sw',
32 source = [
33 'sw.c',
34 ]
35 )
36 Export('sw')