2009-12-31 22:18:17 +00:00
|
|
|
Import('*')
|
|
|
|
|
|
|
|
|
|
from sys import executable as python_cmd
|
|
|
|
|
|
|
|
|
|
env.Append(CPPPATH = [
|
|
|
|
|
'indices',
|
|
|
|
|
'util',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
env.CodeGenerate(
|
|
|
|
|
target = 'indices/u_indices_gen.c',
|
|
|
|
|
script = 'indices/u_indices_gen.py',
|
|
|
|
|
source = [],
|
|
|
|
|
command = python_cmd + ' $SCRIPT > $TARGET'
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
env.CodeGenerate(
|
|
|
|
|
target = 'indices/u_unfilled_gen.c',
|
|
|
|
|
script = 'indices/u_unfilled_gen.py',
|
|
|
|
|
source = [],
|
|
|
|
|
command = python_cmd + ' $SCRIPT > $TARGET'
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
env.CodeGenerate(
|
2010-04-04 20:12:02 +01:00
|
|
|
target = 'util/u_format_srgb.c',
|
|
|
|
|
script = 'util/u_format_srgb.py',
|
|
|
|
|
source = [],
|
|
|
|
|
command = python_cmd + ' $SCRIPT > $TARGET'
|
2009-12-31 22:18:17 +00:00
|
|
|
)
|
|
|
|
|
|
2010-02-26 16:45:22 +00:00
|
|
|
env.CodeGenerate(
|
2009-12-31 22:18:17 +00:00
|
|
|
target = 'util/u_format_table.c',
|
2010-07-16 12:34:22 -07:00
|
|
|
script = '#src/gallium/auxiliary/util/u_format_table.py',
|
|
|
|
|
source = ['#src/gallium/auxiliary/util/u_format.csv'],
|
2010-07-20 13:40:01 +01:00
|
|
|
command = python_cmd + ' $SCRIPT $SOURCE > $TARGET'
|
2010-02-26 16:45:22 +00:00
|
|
|
)
|
|
|
|
|
|
2010-03-31 19:43:57 +01:00
|
|
|
env.Depends('util/u_format_table.c', [
|
2010-07-16 12:34:22 -07:00
|
|
|
'#src/gallium/auxiliary/util/u_format_parse.py',
|
2010-03-31 19:43:57 +01:00
|
|
|
'util/u_format_pack.py',
|
|
|
|
|
])
|
2009-12-31 22:18:17 +00:00
|
|
|
|
2011-08-19 11:05:37 +08:00
|
|
|
source = env.ParseSourceList('Makefile.sources', [
|
|
|
|
|
'C_SOURCES',
|
|
|
|
|
'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',
|
|
|
|
|
'GALLIVM_CPP_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')
|