Merge remote branch 'vdpau/pipe-video' into pipe-video
[mesa.git] / src / gallium / targets / graw-gdi / SConscript
1 #######################################################################
2 # SConscript for graw-gdi
3
4 Import('*')
5
6 env = env.Clone()
7
8 env.Append(CPPPATH = [
9 '#src/gallium/winsys/sw',
10 ])
11
12 env.Prepend(LIBS = [
13 gallium,
14 'gdi32',
15 'user32',
16 'ws2_32',
17 ])
18
19 sources = [
20 'graw_gdi.c',
21 graw_util,
22 ]
23
24 if True:
25 env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_RBUG', 'GALLIUM_GALAHAD', 'GALLIUM_SOFTPIPE'])
26 env.Prepend(LIBS = [trace, rbug, galahad, softpipe])
27
28 if env['llvm']:
29 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
30 env.Prepend(LIBS = [llvmpipe])
31
32 graw = env.SharedLibrary(
33 target = 'graw',
34 source = sources,
35 LIBS = ws_gdi + env['LIBS'],
36 )
37
38 if env['platform'] == 'windows':
39 graw = env.FindIxes(graw, 'LIBPREFIX', 'LIBSUFFIX')
40 else:
41 graw = env.FindIxes(graw, 'SHLIBPREFIX', 'SHLIBSUFFIX')
42
43 env.Alias('graw-gdi', graw)