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