1 ################################### 2 # SConcscript file for dri targets 3 4 Import('*') 5 6 drienv = env.Clone() 7 8 drienv.Replace(CPPPATH = [ 9 '#src/mesa/drivers/dri/common', 10 xmlpool_options.dir.dir, # Dir to generated xmlpool/options.h 11 '#include', 12 '#include/GL/internal', 13 '#src', 14 '#src/mapi', 15 '#src/gallium/include', 16 '#src/gallium/auxiliary', 17 '#src/gallium/drivers', 18 '#src/gallium/winsys', 19 '#src/mesa', 20 '#src/mesa/main', 21 '#src/mesa/glapi', 22 '#src/mesa/math', 23 '#src/mesa/transform', 24 '#src/mesa/shader', 25 '#src/mesa/swrast', 26 '#src/mesa/swrast_setup', 27 '#src/egl/main', 28 '#src/egl/drivers/dri', 29 ]) 30 31 drienv.AppendUnique(LIBS = [ 32 'expat', 33 ]) 34 35 sources = drienv.ParseSourceList('Makefile.sources', ['DRI_COMMON_FILES', 'XMLCONFIG_FILES' ]) 36 37 dri_common = drienv.ConvenienceLibrary( 38 target = 'dri_common', 39 source = sources, 40 ) 41 42 # 43 # megadrivers_stub 44 # 45 env = env.Clone() 46 47 env.Append(CPPPATH = [ 48 '#/include', 49 '#/src/', 50 '#/src/mapi', 51 '#/src/mesa', 52 ]) 53 54 env.Append(CPPDEFINES = [ 55 'HAVE_DLADDR', 56 ]) 57 58 sources = env.ParseSourceList('Makefile.sources', 'megadriver_stub_FILES') 59 60 megadrivers_stub = env.ConvenienceLibrary( 61 target = 'megadrivers_stub', 62 source = sources, 63 ) 64 65 env.Alias('megadrivers_stub', megadrivers_stub) 66 67 Export([ 68 'drienv', 69 'dri_common', 70 'megadrivers_stub', 71 ]) 72