1848b8605Smrg####################################################################### 2848b8605Smrg# SConscript for xlib winsys 3848b8605Smrg 4848b8605SmrgImport('*') 5848b8605Smrg 6848b8605Smrgenv = env.Clone() 7848b8605Smrg 8848b8605Smrgenv.Prepend(LIBS = [ 9848b8605Smrg ws_xlib, 10848b8605Smrg mesautil, 11848b8605Smrg gallium, 12848b8605Smrg]) 13848b8605Smrg 14848b8605Smrgenv.Append(LIBS = env['X11_LIBS']) 15848b8605Smrgenv.Append(LIBPATH = env['X11_LIBPATH']) 16848b8605Smrg 17848b8605Smrgenv.Append(CPPPATH = [ 18848b8605Smrg '#src/gallium/drivers', 19848b8605Smrg '#src/gallium/include/state_tracker', 20848b8605Smrg '#src/gallium/winsys', 21848b8605Smrg]) 22848b8605Smrg 23848b8605Smrgsources = [ 24848b8605Smrg 'graw_xlib.c', 25848b8605Smrg graw_util 26848b8605Smrg] 27848b8605Smrg 28848b8605Smrgif True: 29b8e80941Smrg env.Append(CPPDEFINES = ['GALLIUM_SOFTPIPE']) 30b8e80941Smrg env.Prepend(LIBS = [softpipe]) 31848b8605Smrg 32848b8605Smrgif env['llvm']: 33848b8605Smrg env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE') 34848b8605Smrg env.Prepend(LIBS = [llvmpipe]) 35848b8605Smrg 36848b8605Smrggraw = env.SharedLibrary( 37848b8605Smrg target ='graw', 38848b8605Smrg source = sources, 39848b8605Smrg) 40848b8605Smrg 41848b8605Smrggraw = env.InstallSharedLibrary(graw, version=(1, 0)) 42848b8605Smrg 43848b8605Smrgenv.Alias('graw-xlib', graw) 44