d8143471194db6344464721194b16f0d041033e9
[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.Tool('udis86')
31 env.Prepend(LIBS = [llvmpipe])
32
33 swrastg_sources = [
34 'swrast_drm_api.c'
35 ]
36
37 env.LoadableModule(
38 target ='swrastg_dri.so',
39 source = swrastg_sources,
40 SHLIBPREFIX = '',
41 )