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