Merge commit 'origin/master' into gallium-0.2
[mesa.git] / src / gallium / winsys / xlib / SConscript
1 #######################################################################
2 # SConscript for xlib winsys
3
4 Import('*')
5
6 if env['platform'] == 'linux' \
7 and 'mesa' in env['statetrackers'] \
8 and 'softpipe' in env['drivers'] \
9 and 'i965simple' in env['drivers'] \
10 and not env['dri']:
11
12 env = env.Clone()
13
14 env.Append(CPPPATH = [
15 '#/src/mesa',
16 '#/src/mesa/main',
17 ])
18
19 sources = [
20 'glxapi.c',
21 'fakeglx.c',
22 'xfonts.c',
23 'xm_api.c',
24 'xm_winsys.c',
25 'xm_winsys_aub.c',
26 'brw_aub.c',
27 ]
28
29 drivers = [
30 softpipe,
31 i965simple,
32 ]
33
34 if 'trace' in env['drivers']:
35 env.Append(CPPDEFINES = 'GALLIUM_TRACE')
36 drivers += [trace]
37
38 # TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
39 libgl = env.SharedLibrary(
40 target ='GL',
41 source = sources,
42 LIBS = glapi + mesa + drivers + auxiliaries + env['LIBS'],
43 )
44
45 env.InstallSharedLibrary(libgl, version=(1, 5))