summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/graw-null/SConscript
blob: ebac1728f04f6b76bcc2bf8cb8705a2b0d304d83 (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 = [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')