1848b8605Smrg####################################################################### 2848b8605Smrg# SConscript for graw-gdi 3848b8605Smrg 4848b8605SmrgImport('*') 5848b8605Smrg 6848b8605Smrgenv = env.Clone() 7848b8605Smrg 8848b8605Smrgenv.Append(CPPPATH = [ 9848b8605Smrg '#src/gallium/winsys/sw', 10848b8605Smrg]) 11848b8605Smrg 12848b8605Smrgenv.Prepend(LIBS = [ 13848b8605Smrg mesautil, 14848b8605Smrg gallium, 15848b8605Smrg 'gdi32', 16848b8605Smrg 'user32', 17848b8605Smrg 'ws2_32', 18848b8605Smrg]) 19848b8605Smrg 20848b8605Smrgsources = [ 21848b8605Smrg 'graw_gdi.c', 22848b8605Smrg graw_util, 23848b8605Smrg] 24848b8605Smrg 25848b8605Smrgif True: 26b8e80941Smrg env.Append(CPPDEFINES = ['GALLIUM_SOFTPIPE']) 27b8e80941Smrg env.Prepend(LIBS = [softpipe]) 28848b8605Smrg 29848b8605Smrgif env['llvm']: 30848b8605Smrg env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE') 31848b8605Smrg env.Prepend(LIBS = [llvmpipe]) 32848b8605Smrg 33848b8605Smrggraw = env.SharedLibrary( 34848b8605Smrg target = 'graw', 35848b8605Smrg source = sources, 36848b8605Smrg LIBS = ws_gdi + env['LIBS'], 37848b8605Smrg) 38848b8605Smrg 39848b8605Smrgif env['platform'] == 'windows': 40848b8605Smrg graw = env.FindIxes(graw, 'LIBPREFIX', 'LIBSUFFIX') 41848b8605Smrgelse: 42848b8605Smrg graw = env.FindIxes(graw, 'SHLIBPREFIX', 'SHLIBSUFFIX') 43848b8605Smrg 44848b8605Smrgenv.Alias('graw-gdi', graw) 45