Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

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