1####################################################################### 2# SConscript for graw-gdi 3 4Import('*') 5 6env = env.Clone() 7 8env.Append(CPPPATH = [ 9 '#src/gallium/winsys/sw', 10]) 11 12env.Prepend(LIBS = [ 13 gallium, 14 'gdi32', 15 'user32', 16 'ws2_32', 17]) 18 19sources = [ 20 'graw_gdi.c', 21 graw_util, 22] 23 24if True: 25 env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_RBUG', 'GALLIUM_GALAHAD', 'GALLIUM_SOFTPIPE']) 26 env.Prepend(LIBS = [trace, rbug, galahad, softpipe]) 27 28if env['llvm']: 29 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE') 30 env.Prepend(LIBS = [llvmpipe]) 31 32graw = env.SharedLibrary( 33 target = 'graw', 34 source = sources, 35 LIBS = ws_gdi + env['LIBS'], 36) 37 38if env['platform'] == 'windows': 39 graw = env.FindIxes(graw, 'LIBPREFIX', 'LIBSUFFIX') 40else: 41 graw = env.FindIxes(graw, 'SHLIBPREFIX', 'SHLIBSUFFIX') 42 43env.Alias('graw-gdi', graw) 44