util: Move gallium's PIPE_FORMAT utils to /util/format/
[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 = env.Clone()
12
13 env.MSVC2013Compat()
14
15 env.CodeGenerate(
16 target = 'indices/u_indices_gen.c',
17 script = 'indices/u_indices_gen.py',
18 source = [],
19 command = python_cmd + ' $SCRIPT > $TARGET'
20 )
21
22 env.CodeGenerate(
23 target = 'indices/u_unfilled_gen.c',
24 script = 'indices/u_unfilled_gen.py',
25 source = [],
26 command = python_cmd + ' $SCRIPT > $TARGET'
27 )
28
29 source = env.ParseSourceList('Makefile.sources', [
30 'C_SOURCES',
31 'VL_STUB_SOURCES',
32 'GENERATED_SOURCES'
33 ])
34
35 if env['llvm']:
36 source += env.ParseSourceList('Makefile.sources', [
37 'GALLIVM_SOURCES',
38 ])
39
40 gallium = env.ConvenienceLibrary(
41 target = 'gallium',
42 source = source,
43 )
44
45 env.Alias('gallium', gallium)
46
47 Export('gallium')