Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa into pipe-video
[mesa.git] / src / gallium / targets / graw-xlib / SConscript
1 #######################################################################
2 # SConscript for xlib winsys
3
4 Import('*')
5
6 if env['platform'] != 'linux':
7 Return()
8
9 env = env.Clone()
10
11 env.Tool('x11')
12
13 env.Prepend(LIBS = [
14 ws_xlib,
15 trace,
16 rbug,
17 identity,
18 # gallium,
19 ])
20
21 env.Append(CPPPATH = [
22 '#src/gallium/drivers',
23 '#src/gallium/include/state_tracker',
24 ])
25
26
27 sources = [
28 'graw_xlib.c',
29 'graw_util.c',
30 ]
31
32 env.Tool('x11')
33
34 if True:
35 env.Append(CPPDEFINES = 'GALLIUM_SOFTPIPE')
36 env.Prepend(LIBS = [softpipe])
37
38 if env['llvm']:
39 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
40 env.Tool('udis86')
41 env.Prepend(LIBS = [llvmpipe])
42
43 # Need this for trace, identity drivers referenced by
44 # gallium_wrap_screen().
45 #
46 env.Prepend(LIBS = [gallium])
47
48 # TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
49 graw = env.SharedLibrary(
50 target ='graw',
51 source = sources,
52 )
53
54 env.InstallSharedLibrary(graw, version=(1, 0))
55
56 graw = env.FindIxes(graw, 'SHLIBPREFIX', 'SHLIBSUFFIX')
57
58 Export('graw')