aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/graw-null/SConscript
blob: 20c8b7df19c86b28acf73dccbbba452117ad2624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#######################################################################
# SConscript for xlib winsys

Import('*')

env = env.Clone()

graw_util = env.SharedObject(
    source = ['graw_util.c'],
)

env = env.Clone()

sources = [
    'graw_null.c',
    graw_util,
]

env.Prepend(LIBS = [mesautil, gallium])

# TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
graw = env.SharedLibrary(
    target = 'graw',
    source = sources,
)

if env['platform'] == 'windows':
    graw = env.FindIxes(graw, 'LIBPREFIX', 'LIBSUFFIX')
else:
    graw = env.FindIxes(graw, 'SHLIBPREFIX', 'SHLIBSUFFIX')

Export('graw_util', 'graw')