mesa/src/util/xmlpool/SConscript
Nicolai Hähnle 601093f95d xmlconfig: move into src/util
v2: attempt to fix Android build (Emil)

v3: add missing include path

Reviewed-by: Marek Olšák <marek.olsak@amd.com> (v1)
2017-07-31 15:38:41 +02:00

14 lines
326 B
Python

Import('*')
from sys import executable as python_cmd
LOCALEDIR = env.Dir('.').srcnode().abspath
xmlpool_options, = env.CodeGenerate(
target = 'options.h',
script = 'gen_xmlpool.py',
source = ['t_options.h'],
command = python_cmd + ' $SCRIPT $SOURCE ' + LOCALEDIR + ' > $TARGET'
)
Export('xmlpool_options')