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