gallium/tgsi: Add a helper for initializing ureg from a shader_info.
[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 '#src/compiler/nir',
10 '../../compiler/nir',
11 ])
12
13 env = env.Clone()
14
15 env.MSVC2013Compat()
16
17 env.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
24 env.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
31 source = env.ParseSourceList('Makefile.sources', [
32 'C_SOURCES',
33 'VL_STUB_SOURCES',
34 'GENERATED_SOURCES'
35 ])
36
37 if env['llvm']:
38 source += env.ParseSourceList('Makefile.sources', [
39 'NIR_SOURCES',
40 'GALLIVM_SOURCES',
41 ])
42
43 gallium = env.ConvenienceLibrary(
44 target = 'gallium',
45 source = source,
46 )
47
48 env.Alias('gallium', gallium)
49
50 Export('gallium')