Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
[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 # TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
35 env.SharedLibrary(
36 target ='GL',
37 source = sources,
38 LIBS = glapi + mesa + drivers + auxiliaries + env['LIBS'],
39 )