Merge branch 'lp-offset-twoside'
[mesa.git] / src / gallium / targets / graw-null / SConscript
1 #######################################################################
2 # SConscript for xlib winsys
3
4 Import('*')
5
6 env = env.Clone()
7
8 graw_util = env.SharedObject(
9 source = ['graw_util.c'],
10 )
11
12 env = env.Clone()
13
14 sources = [
15 'graw_null.c',
16 graw_util,
17 ]
18
19 env.Prepend(LIBS = [gallium])
20
21 # TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
22 graw = env.SharedLibrary(
23 target = 'graw',
24 source = sources,
25 )
26
27 if env['platform'] == 'windows':
28 graw = env.FindIxes(graw, 'LIBPREFIX', 'LIBSUFFIX')
29 else:
30 graw = env.FindIxes(graw, 'SHLIBPREFIX', 'SHLIBSUFFIX')
31
32 Export('graw_util', 'graw')