1 #######################################################################
2 # SConscript for gdi winsys
9 '#src/gallium/state_trackers/wgl',
10 '#src/gallium/winsys/sw',
20 sources = ['libgl_gdi.c']
27 env.Append(CPPDEFINES = 'HAVE_LLVMPIPE')
30 if env['gcc'] and env['machine'] != 'x86_64':
31 # DEF parser in certain versions of MinGW is busted, as does not behave as
32 # MSVC. mingw-w64 works fine.
33 sources += ['#src/gallium/state_trackers/wgl/opengl32.mingw.def']
35 sources += ['#src/gallium/state_trackers/wgl/opengl32.def']
37 drivers += [trace, rbug]
39 env['no_import_lib'] = 1
41 # when GLES is enabled, gl* and _glapi_* belong to bridge_glapi and
42 # shared_glapi respectively
44 env.Prepend(LIBPATH = [shared_glapi.dir])
45 glapi = [bridge_glapi, 'libglapi']
47 opengl32 = env.SharedLibrary(
50 LIBS = wgl + ws_gdi + glapi + mesa + drivers + gallium + glsl + env['LIBS'],
53 env.Alias('opengl32', opengl32)
54 env.Alias('libgl-gdi', opengl32)