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