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