594f34d7fadff5385c5ba9d7ea7bc73015a75197
[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',
10 '#src/gallium/state_trackers/wgl',
11 '#src/gallium/winsys/sw',
12 ])
13
14 env.Append(LIBS = [
15 'gdi32',
16 'user32',
17 'kernel32',
18 'ws2_32',
19 ])
20
21 env.Prepend(LIBS = [mesautil])
22
23 sources = ['libgl_gdi.c']
24 drivers = []
25
26 if True:
27 drivers += [softpipe]
28
29 if env['llvm']:
30 env.Append(CPPDEFINES = 'HAVE_LLVMPIPE')
31 drivers += [llvmpipe]
32
33 if env['gcc'] and env['machine'] != 'x86_64':
34 # DEF parser in certain versions of MinGW is busted, as does not behave as
35 # MSVC. mingw-w64 works fine.
36 sources += ['#src/gallium/state_trackers/wgl/opengl32.mingw.def']
37 else:
38 sources += ['#src/gallium/state_trackers/wgl/opengl32.def']
39
40 drivers += [trace, rbug]
41
42 env['no_import_lib'] = 1
43
44 # when GLES is enabled, gl* and _glapi_* belong to bridge_glapi and
45 # shared_glapi respectively
46 if env['gles']:
47 env.Prepend(LIBPATH = [shared_glapi.dir])
48 glapi = [bridge_glapi, 'libglapi']
49
50 opengl32 = env.SharedLibrary(
51 target ='opengl32',
52 source = sources,
53 LIBS = wgl + ws_gdi + glapi + mesa + drivers + gallium + glsl + env['LIBS'],
54 )
55
56 env.Alias('opengl32', opengl32)
57 env.Alias('libgl-gdi', opengl32)