1Import('*') 2 3from sys import executable as python_cmd 4 5env.Append(CPPPATH = [ 6 '#src', 7 'indices', 8 'util', 9 '#src/compiler/nir', 10 '../../compiler/nir', 11]) 12 13env = env.Clone() 14 15env.MSVC2013Compat() 16 17env.CodeGenerate( 18 target = 'indices/u_indices_gen.c', 19 script = 'indices/u_indices_gen.py', 20 source = [], 21 command = python_cmd + ' $SCRIPT > $TARGET' 22) 23 24env.CodeGenerate( 25 target = 'indices/u_unfilled_gen.c', 26 script = 'indices/u_unfilled_gen.py', 27 source = [], 28 command = python_cmd + ' $SCRIPT > $TARGET' 29) 30 31source = env.ParseSourceList('Makefile.sources', [ 32 'C_SOURCES', 33 'NIR_SOURCES', 34 'VL_STUB_SOURCES', 35 'GENERATED_SOURCES' 36]) 37 38if env['llvm']: 39 source += env.ParseSourceList('Makefile.sources', [ 40 'GALLIVM_SOURCES', 41 ]) 42 43gallium = env.ConvenienceLibrary( 44 target = 'gallium', 45 source = source, 46) 47 48env.Alias('gallium', gallium) 49 50Export('gallium') 51