blob: 434572fcd00c1e2075cb8d2b6d1ff6bfc937dbec (
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
|
#######################################################################
# SConscript for xlib winsys
Import('*')
if env['platform'] == 'linux' \
and 'mesa' in env['statetrackers'] \
and ('softpipe' or 'i915simple' or 'trace') in env['drivers'] \
and not env['dri']:
env = env.Clone()
env.Append(CPPPATH = [
'#/src/mesa',
'#/src/mesa/main',
])
sources = [];
drivers = [];
if 'softpipe' in env['drivers']:
drivers += [softpipe]
if 'i965simple' in env['drivers']:
drivers += [i965simple]
sources += [
'brw_aub.c',
'xm_winsys_aub.c',
]
if 'trace' in env['drivers']:
env.Append(CPPDEFINES = 'GALLIUM_TRACE')
drivers += [trace]
# TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
libgl = env.SharedLibrary(
target ='GL',
source = sources,
LIBS = st_xlib + glapi + mesa + drivers + auxiliaries + env['LIBS'],
)
env.InstallSharedLibrary(libgl, version=(1, 5))
|