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
|
Import('*')
env.Prepend(LIBS = [
ws_haiku,
trace,
rbug,
mesa,
glsl,
gallium
])
if True:
env.Append(CPPDEFINES = [
'GALLIUM_SOFTPIPE',
'GALLIUM_RBUG',
'GALLIUM_TRACE',
])
env.Prepend(LIBS = [softpipe])
env.Append(CPPPATH = [
'#/src/mapi',
'#/src/mesa',
'#/src/mesa/main',
'#/src/gallium/winsys/sw/hgl',
'/boot/system/develop/headers/private',
])
if env['llvm']:
env.Append(CPPDEFINES = 'HAVE_LLVMPIPE')
softpipe_sources = [
'haiku-softpipe.c',
'GalliumContext.cpp',
'GalliumFramebuffer.cpp',
'SoftwareRenderer.cpp'
]
# libswpipe gets turned into "Software Renderer" by the haiku package system
module = env.SharedLibrary(
target ='swpipe',
source = softpipe_sources,
)
env.Alias('softpipe-haiku', module)
|