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