3 from sys import executable as python_cmd
11 target = 'indices/u_indices_gen.c',
12 script = 'indices/u_indices_gen.py',
14 command = python_cmd + ' $SCRIPT > $TARGET'
18 target = 'indices/u_unfilled_gen.c',
19 script = 'indices/u_unfilled_gen.py',
21 command = python_cmd + ' $SCRIPT > $TARGET'
25 target = 'util/u_format_srgb.c',
26 script = 'util/u_format_srgb.py',
28 command = python_cmd + ' $SCRIPT > $TARGET'
32 target = 'util/u_format_table.c',
33 script = '#src/gallium/auxiliary/util/u_format_table.py',
34 source = ['#src/gallium/auxiliary/util/u_format.csv'],
35 command = python_cmd + ' $SCRIPT $SOURCE > $TARGET'
39 target = 'util/u_half.c',
40 script = 'util/u_half.py',
42 command = python_cmd + ' $SCRIPT > $TARGET'
45 env.Depends('util/u_format_table.c', [
46 '#src/gallium/auxiliary/util/u_format_parse.py',
47 'util/u_format_pack.py',
50 source = env.ParseSourceList('Makefile.sources', [
56 source += env.ParseSourceList('Makefile.sources', [
61 if env['toolchain'] == 'crossmingw':
62 # compile lp_bld_misc.cpp without -gstabs option
63 source = env.compile_without_gstabs(source, "gallivm/lp_bld_misc.cpp")
65 gallium = env.ConvenienceLibrary(
70 env.Alias('gallium', gallium)