1####################################################################### 2# SConscript for gdi winsys 3 4Import('*') 5 6env = env.Clone() 7 8env.Append(CPPPATH = [ 9 '#src', 10 '#src/gallium/frontends/wgl', 11 '#src/gallium/winsys/sw', 12]) 13 14env.Append(LIBS = [ 15 'gdi32', 16 'user32', 17 'kernel32', 18 'ws2_32', 19 'advapi32', 20]) 21 22env.Prepend(LIBS = [ 23 mesautil, 24 nir, 25 spirv 26]) 27 28sources = ['libgl_gdi.c'] 29drivers = [] 30 31if True: 32 env.Append(CPPDEFINES = ['GALLIUM_SOFTPIPE']) 33 drivers += [softpipe] 34 35if env['llvm']: 36 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE') 37 drivers += [llvmpipe] 38 39if env['gcc'] and env['machine'] != 'x86_64': 40 # DEF parser in certain versions of MinGW is busted, as does not behave as 41 # MSVC. mingw-w64 works fine. 42 sources += ['#src/gallium/frontends/wgl/opengl32.mingw.def'] 43else: 44 sources += ['#src/gallium/frontends/wgl/opengl32.def'] 45 46env['no_import_lib'] = 1 47 48opengl32 = env.SharedLibrary( 49 target ='opengl32', 50 source = sources, 51 LIBS = wgl + ws_gdi + glapi + compiler + mesa + drivers + gallium + glsl + nir + env['LIBS'], 52) 53 54env.Alias('opengl32', opengl32) 55env.Alias('libgl-gdi', opengl32) 56