Remove talloc from the SCons build system.
[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 ])
19
20 sources = ['libgl_gdi.c']
21 drivers = []
22
23 if True:
24 drivers += [softpipe]
25
26 if env['llvm']:
27 env.Append(CPPDEFINES = 'HAVE_LLVMPIPE')
28 drivers += [llvmpipe]
29
30 if env['gcc']:
31 sources += ['#src/gallium/state_trackers/wgl/opengl32.mingw.def']
32 else:
33 sources += ['#src/gallium/state_trackers/wgl/opengl32.def']
34
35 drivers += [trace, rbug]
36
37 env['no_import_lib'] = 1
38
39 # when GLES is enabled, gl* and _glapi_* belong to bridge_glapi and
40 # shared_glapi respectively
41 if env['gles']:
42 env.Prepend(LIBPATH = [shared_glapi.dir])
43 glapi = [bridge_glapi, 'libglapi']
44
45 opengl32 = env.SharedLibrary(
46 target ='opengl32',
47 source = sources,
48 LIBS = wgl + ws_gdi + glapi + mesa + drivers + gallium + glsl + env['LIBS'],
49 )
50
51 env.Alias('opengl32', opengl32)
52 env.Alias('libgl-gdi', opengl32)