aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/haiku-softpipe/SConscript
blob: ff5adc1312554eb49230691b21fb1be76de30a31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Import('*')

env.Prepend(LIBS = [
    ws_haiku,
    st_haiku,
    mesautil,
    compiler,
    mesa,
    glsl,
    nir,
    spirv,
    gallium
])

if True:
    env.Append(CPPDEFINES = [
        'GALLIUM_SOFTPIPE',
    ])
    env.Prepend(LIBS = [softpipe])

env.Prepend(LIBS = [libgl])

env.Append(CPPPATH = [
    '#/src/mapi',
    '#/src/mesa',
    '#/src/mesa/main',
    '#/include/HaikuGL',
    '#/src/gallium/winsys',
    '#/src/gallium/state_trackers/hgl',
    '/boot/system/develop/headers/private',
])

if env['llvm']:
    env.Append(CPPDEFINES = ['GALLIUM_LLVMPIPE'])
    env.Prepend(LIBS = [llvmpipe])

softpipe_sources = [
    'GalliumContext.cpp',
    'SoftwareRenderer.cpp'
]

# libswpipe gets turned into "Softpipe" by the haiku package system
module = env.LoadableModule(
    target ='swpipe',
    source = softpipe_sources,
)