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