Merge branch 'gallium-msaa'
[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 ])
24
25
26 sources = [
27 'graw_xlib.c',
28 'graw_util.c',
29 ]
30
31 if True:
32 env.Append(CPPDEFINES = 'GALLIUM_SOFTPIPE')
33 env.Prepend(LIBS = [softpipe])
34
35 if env['llvm']:
36 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
37 env.Tool('udis86')
38 env.Prepend(LIBS = [llvmpipe])
39
40 # Need this for trace, identity drivers referenced by
41 # gallium_wrap_screen().
42 #
43 env.Prepend(LIBS = [gallium])
44
45 # TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
46 graw = env.SharedLibrary(
47 target ='graw',
48 source = sources,
49 )
50
51 env.InstallSharedLibrary(graw, version=(1, 0))
52
53 graw = env.FindIxes(graw, 'SHLIBPREFIX', 'SHLIBSUFFIX')
54
55 Export('graw')