OSDN Git Service

scons: Revamp how to specify targets to build.
[android-x86/external-mesa.git] / src / gallium / targets / graw-xlib / SConscript
1 #######################################################################
2 # SConscript for xlib winsys
3
4 Import('*')
5
6 env = env.Clone()
7
8 env.Prepend(LIBS = [
9     ws_xlib,
10     trace,
11     rbug,
12     identity,
13 #    gallium,
14 ])
15
16 env.Prepend(LIBS = env['X11_LIBS'])
17
18 env.Append(CPPPATH = [
19     '#src/gallium/drivers',
20     '#src/gallium/include/state_tracker',
21 ])
22
23 sources = [
24     'graw_xlib.c',
25     graw_util
26 ]
27
28 if True:
29     env.Append(CPPDEFINES = 'GALLIUM_SOFTPIPE')
30     env.Prepend(LIBS = [softpipe])
31
32 if env['llvm']:
33     env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
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 graw = env.InstallSharedLibrary(graw, version=(1, 0))
48
49 env.Alias('graw-xlib', graw)