1848b8605Smrg#######################################################################
2848b8605Smrg# SConscript for xlib winsys
3848b8605Smrg
4848b8605SmrgImport('*')
5848b8605Smrg
6848b8605Smrgenv = env.Clone()
7848b8605Smrg
8848b8605Smrggraw_util = env.SharedObject(
9848b8605Smrg    source = ['graw_util.c'],
10848b8605Smrg)
11848b8605Smrg
12848b8605Smrgenv = env.Clone()
13848b8605Smrg
14848b8605Smrgsources = [
15848b8605Smrg    'graw_null.c',
16848b8605Smrg    graw_util,
17848b8605Smrg]
18848b8605Smrg
19848b8605Smrgenv.Prepend(LIBS = [mesautil, gallium])
20848b8605Smrg
21848b8605Smrg# TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
22848b8605Smrggraw = env.SharedLibrary(
23848b8605Smrg    target = 'graw',
24848b8605Smrg    source = sources,
25848b8605Smrg)
26848b8605Smrg
27848b8605Smrgif env['platform'] == 'windows':
28848b8605Smrg    graw = env.FindIxes(graw, 'LIBPREFIX', 'LIBSUFFIX')
29848b8605Smrgelse:
30848b8605Smrg    graw = env.FindIxes(graw, 'SHLIBPREFIX', 'SHLIBSUFFIX')
31848b8605Smrg
32848b8605SmrgExport('graw_util', 'graw')
33