2009-12-31 22:18:17 +00:00
|
|
|
Import('*')
|
|
|
|
|
|
|
|
|
|
from sys import executable as python_cmd
|
|
|
|
|
|
|
|
|
|
env.Append(CPPPATH = [
|
2014-07-24 11:17:53 -07:00
|
|
|
'#src',
|
2009-12-31 22:18:17 +00:00
|
|
|
'indices',
|
|
|
|
|
'util',
|
2019-09-05 15:32:21 +10:00
|
|
|
'#src/compiler/nir',
|
|
|
|
|
'../../compiler/nir',
|
2009-12-31 22:18:17 +00:00
|
|
|
])
|
|
|
|
|
|
2015-03-04 14:23:52 +00:00
|
|
|
env = env.Clone()
|
|
|
|
|
|
2016-02-11 11:07:49 +00:00
|
|
|
env.MSVC2013Compat()
|
2015-03-04 14:23:52 +00:00
|
|
|
|
2009-12-31 22:18:17 +00:00
|
|
|
env.CodeGenerate(
|
2016-05-25 07:30:06 -06:00
|
|
|
target = 'indices/u_indices_gen.c',
|
|
|
|
|
script = 'indices/u_indices_gen.py',
|
2009-12-31 22:18:17 +00:00
|
|
|
source = [],
|
|
|
|
|
command = python_cmd + ' $SCRIPT > $TARGET'
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
env.CodeGenerate(
|
2016-05-25 07:30:06 -06:00
|
|
|
target = 'indices/u_unfilled_gen.c',
|
|
|
|
|
script = 'indices/u_unfilled_gen.py',
|
2009-12-31 22:18:17 +00:00
|
|
|
source = [],
|
|
|
|
|
command = python_cmd + ' $SCRIPT > $TARGET'
|
|
|
|
|
)
|
|
|
|
|
|
2020-12-07 09:08:10 -08:00
|
|
|
env.CodeGenerate(
|
|
|
|
|
target = 'util/u_tracepoints.c',
|
|
|
|
|
script = 'util/u_tracepoints.py',
|
|
|
|
|
source = [],
|
|
|
|
|
command = python_cmd + ' $SCRIPT -p ' + Dir('#').abspath + '/src/gallium/auxiliary/util -C $TARGET'
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
env.CodeGenerate(
|
|
|
|
|
target = 'util/u_tracepoints.h',
|
|
|
|
|
script = 'util/u_tracepoints.py',
|
|
|
|
|
source = [],
|
|
|
|
|
command = python_cmd + ' $SCRIPT -p ' + Dir('#').abspath + '/src/gallium/auxiliary/util -H $TARGET'
|
|
|
|
|
)
|
|
|
|
|
|
2011-08-19 11:05:37 +08:00
|
|
|
source = env.ParseSourceList('Makefile.sources', [
|
|
|
|
|
'C_SOURCES',
|
2020-10-21 00:26:46 +02:00
|
|
|
'NIR_SOURCES',
|
2014-11-10 18:59:34 +00:00
|
|
|
'VL_STUB_SOURCES',
|
2011-08-19 11:05:37 +08:00
|
|
|
'GENERATED_SOURCES'
|
|
|
|
|
])
|
2009-12-31 22:18:17 +00:00
|
|
|
|
2010-04-10 02:41:39 +01:00
|
|
|
if env['llvm']:
|
2011-08-19 11:05:37 +08:00
|
|
|
source += env.ParseSourceList('Makefile.sources', [
|
|
|
|
|
'GALLIVM_SOURCES',
|
|
|
|
|
])
|
2009-12-31 22:18:17 +00:00
|
|
|
|
|
|
|
|
gallium = env.ConvenienceLibrary(
|
|
|
|
|
target = 'gallium',
|
|
|
|
|
source = source,
|
|
|
|
|
)
|
|
|
|
|
|
2010-11-01 13:30:22 +00:00
|
|
|
env.Alias('gallium', gallium)
|
|
|
|
|
|
2009-12-31 22:18:17 +00:00
|
|
|
Export('gallium')
|