haiku: Add first Haiku renderer (softpipe)
[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 '#/src/gallium/winsys/sw/hgl',
25 '/boot/system/develop/headers/private',
26 ])
27
28 if env['llvm']:
29 env.Append(CPPDEFINES = 'HAVE_LLVMPIPE')
30
31 softpipe_sources = [
32 'haiku-softpipe.c',
33 'GalliumContext.cpp',
34 'GalliumFramebuffer.cpp',
35 'SoftwareRenderer.cpp'
36 ]
37
38 # libswpipe gets turned into "Software Renderer" by the haiku package system
39 module = env.SharedLibrary(
40 target ='swpipe',
41 source = softpipe_sources,
42 )
43
44 env.Alias('softpipe-haiku', module)