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