16ce7cd9e135c3dacc4b53f94eded9b7f909578f
[mesa.git] / src / gallium / targets / haiku-softpipe / SConscript
1 Import('*')
2
3 env.Prepend(LIBS = [
4 ws_haiku,
5 trace,
6 rbug,
7 mesa,
8 glsl,
9 gallium
10 ])
11
12 if True:
13 env.Append(CPPDEFINES = [
14 'GALLIUM_SOFTPIPE',
15 'GALLIUM_RBUG',
16 'GALLIUM_TRACE',
17 ])
18 env.Prepend(LIBS = [softpipe])
19
20 env.Append(CPPPATH = [
21 '#/src/mapi',
22 '#/src/mesa',
23 '#/src/mesa/main',
24 '#/include/HaikuGL',
25 '#/src/gallium/winsys/sw/hgl',
26 '/boot/system/develop/headers/private',
27 ])
28
29 if env['llvm']:
30 env.Append(CPPDEFINES = ['GALLIUM_LLVMPIPE'])
31 env.Prepend(LIBS = [llvmpipe])
32
33 softpipe_sources = [
34 'GalliumContext.cpp',
35 'GalliumFramebuffer.cpp',
36 'SoftwareRenderer.cpp'
37 ]
38
39 # libswpipe gets turned into "Softpipe" by the haiku package system
40 module = env.LoadableModule(
41 target ='swpipe',
42 source = softpipe_sources,
43 )
44