Merge branch 'lp-offset-twoside'
[mesa.git] / src / gallium / targets / dri-swrast / SConscript
1 Import('*')
2
3 env = drienv.Clone()
4
5 env.Append(CPPPATH = [
6 '#/src/gallium/winsys/sw/dri',
7 ])
8
9 env.Prepend(LIBS = [
10 st_drisw,
11 ws_dri,
12 trace,
13 rbug,
14 mesa,
15 glsl,
16 gallium,
17 COMMON_DRI_SW_OBJECTS
18 ])
19
20 if True:
21 env.Append(CPPDEFINES = [
22 'GALLIUM_SOFTPIPE',
23 'GALLIUM_RBUG',
24 'GALLIUM_TRACE',
25 ])
26 env.Prepend(LIBS = [softpipe])
27
28 if env['llvm']:
29 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
30 env.Prepend(LIBS = [llvmpipe])
31
32 swrastg_sources = [
33 'swrast_drm_api.c'
34 ]
35
36 module = env.LoadableModule(
37 target ='swrastg_dri.so',
38 source = swrastg_sources,
39 SHLIBPREFIX = '',
40 )
41
42 env.Alias('dri-swrast', module)