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