scons: Revamp how to specify targets to build.
[mesa.git] / src / gallium / targets / libgl-gdi / SConscript
1 #######################################################################
2 # SConscript for gdi winsys
3
4 Import('*')
5
6 env = env.Clone()
7
8 env.Append(CPPPATH = [
9 '#src/gallium/state_trackers/wgl',
10 '#src/gallium/winsys/sw',
11 ])
12
13 env.Append(LIBS = [
14 'gdi32',
15 'user32',
16 'kernel32',
17 'ws2_32',
18 talloc,
19 ])
20
21 sources = []
22 drivers = []
23
24 if True:
25 sources = ['gdi_softpipe_winsys.c']
26 drivers = [softpipe]
27
28 if env['llvm']:
29 sources = ['gdi_llvmpipe_winsys.c']
30 drivers = [llvmpipe]
31
32 if env['gcc']:
33 sources += ['#src/gallium/state_trackers/wgl/opengl32.mingw.def']
34 else:
35 sources += ['#src/gallium/state_trackers/wgl/opengl32.def']
36
37 drivers += [trace, rbug]
38
39 env['no_import_lib'] = 1
40
41 opengl32 = env.SharedLibrary(
42 target ='opengl32',
43 source = sources,
44 LIBS = wgl + ws_gdi + glapi + mesa + drivers + gallium + glsl + env['LIBS'],
45 )
46
47 env.Alias('opengl32', opengl32)
48 env.Alias('libgl-gdi', opengl32)