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