1 #######################################################################
2 # SConscript for gdi winsys
10 '#src/gallium/state_trackers/wgl',
11 '#src/gallium/winsys/sw',
28 sources = ['libgl_gdi.c']
35 env.Append(CPPDEFINES = 'HAVE_LLVMPIPE')
39 env.Append(CPPDEFINES = 'HAVE_SWR')
42 if env['gcc'] and env['machine'] != 'x86_64':
43 # DEF parser in certain versions of MinGW is busted, as does not behave as
44 # MSVC. mingw-w64 works fine.
45 sources += ['#src/gallium/state_trackers/wgl/opengl32.mingw.def']
47 sources += ['#src/gallium/state_trackers/wgl/opengl32.def']
49 env['no_import_lib'] = 1
51 opengl32 = env.SharedLibrary(
54 LIBS = wgl + ws_gdi + glapi + compiler + mesa + drivers + gallium + glsl + nir + env['LIBS'],
57 env.Alias('opengl32', opengl32)
58 env.Alias('libgl-gdi', opengl32)