SConscript revision 848b8605
1Import('*')
2
3env.Prepend(LIBS = [
4    ws_haiku,
5    trace,
6    rbug,
7    mesautil,
8    mesa,
9    glsl,
10    gallium
11])
12
13if True:
14    env.Append(CPPDEFINES = [
15        'GALLIUM_SOFTPIPE',
16        'GALLIUM_RBUG',
17        'GALLIUM_TRACE',
18    ])
19    env.Prepend(LIBS = [softpipe])
20
21env.Prepend(LIBS = [libgl])
22
23env.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
32if env['llvm']:
33    env.Append(CPPDEFINES = ['GALLIUM_LLVMPIPE'])
34    env.Prepend(LIBS = [llvmpipe])
35
36softpipe_sources = [
37    'GalliumContext.cpp',
38    'GalliumFramebuffer.cpp',
39    'SoftwareRenderer.cpp'
40]
41
42# libswpipe gets turned into "Softpipe" by the haiku package system
43module = env.LoadableModule(
44    target ='swpipe',
45    source = softpipe_sources,
46)
47
48