1 #######################################################################
2 # SConscript for gdi winsys
10 '#src/gallium/state_trackers/wgl',
11 '#src/gallium/winsys/sw',
21 env.Prepend(LIBS = [mesautil])
23 sources = ['libgl_gdi.c']
30 env.Append(CPPDEFINES = 'HAVE_LLVMPIPE')
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']
38 sources += ['#src/gallium/state_trackers/wgl/opengl32.def']
40 drivers += [trace, rbug]
42 env['no_import_lib'] = 1
44 # when GLES is enabled, gl* and _glapi_* belong to bridge_glapi and
45 # shared_glapi respectively
47 env.Prepend(LIBPATH = [shared_glapi.dir])
48 glapi = [bridge_glapi, 'libglapi']
50 opengl32 = env.SharedLibrary(
53 LIBS = wgl + ws_gdi + glapi + compiler + mesa + drivers + gallium + glsl + env['LIBS'],
56 env.Alias('opengl32', opengl32)
57 env.Alias('libgl-gdi', opengl32)