SConscript revision ea532f0e725bd68e7784189c9b7f6f7bf7f9d901
1####################################################################### 2# SConscript for gdi winsys 3 4Import('*') 5 6if env['platform'] == 'windows': 7 8 env = env.Clone() 9 10 env.Append(CPPPATH = [ 11 '#src/gallium/state_trackers/wgl', 12 '#src/gallium/winsys/sw', 13 ]) 14 15 env.Append(LIBS = [ 16 'gdi32', 17 'user32', 18 'kernel32', 19 'ws2_32', 20 ]) 21 22 sources = [] 23 drivers = [] 24 25 if 'softpipe' in env['drivers']: 26 sources = ['gdi_softpipe_winsys.c'] 27 drivers = [softpipe] 28 29 if 'llvmpipe' in env['drivers']: 30 sources = ['gdi_llvmpipe_winsys.c'] 31 drivers = [llvmpipe] 32 33 if not sources or not drivers: 34 print 'warning: softpipe or llvmpipe not selected, gdi winsys disabled' 35 Return() 36 37 if env['gcc']: 38 sources += ['#src/gallium/state_trackers/wgl/opengl32.mingw.def'] 39 else: 40 sources += ['#src/gallium/state_trackers/wgl/opengl32.def'] 41 42 drivers += [trace] 43 44 env['no_import_lib'] = 1 45 46 env.SharedLibrary( 47 target ='opengl32', 48 source = sources, 49 LIBS = wgl + ws_gdi + glapi + mesa + drivers + gallium + glsl + env['LIBS'], 50 ) 51