1####################################################################### 2# SConscript for xlib winsys 3 4Import('*') 5 6env = env.Clone() 7 8env.Prepend(LIBS = [ 9 ws_xlib, 10 gallium, 11]) 12 13env.Prepend(LIBS = env['X11_LIBS']) 14 15env.Append(CPPPATH = [ 16 '#src/gallium/drivers', 17 '#src/gallium/include/state_tracker', 18]) 19 20env.Append(CPPDEFINES = ['GALLIUM_RBUG', 'GALLIUM_TRACE', 'GALLIUM_GALAHAD']) 21 22sources = [ 23 'graw_xlib.c', 24 graw_util 25] 26 27if True: 28 env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_RBUG', 'GALLIUM_GALAHAD', 'GALLIUM_SOFTPIPE']) 29 env.Prepend(LIBS = [trace, rbug, galahad, softpipe]) 30 31if env['llvm']: 32 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE') 33 env.Prepend(LIBS = [llvmpipe]) 34 35graw = env.SharedLibrary( 36 target ='graw', 37 source = sources, 38) 39 40graw = env.InstallSharedLibrary(graw, version=(1, 0)) 41 42env.Alias('graw-xlib', graw) 43