scons: Take indirect gl_and_es_API.xml dependencies in consideration.

Same as 26a8f76ba1.

Trivial.
This commit is contained in:
Jose Fonseca
2016-08-27 21:30:38 +01:00
parent 5b18e5fd7b
commit 09dafb9630
2 changed files with 3 additions and 2 deletions

View File

@@ -26,10 +26,11 @@ def mapi_objects(env, printer, mode):
header_name = '%s-tmp.h' % (printer)
# generate ABI header
GLAPI = '../glapi/'
header = env.CodeGenerate(
target = header_name,
script = '../mapi_abi.py',
source = '../glapi/gen/gl_and_es_API.xml',
source = [GLAPI + 'gen/gl_and_es_API.xml'] + env.Glob(GLAPI + 'gen/*.xml'),
command = python_cmd + ' $SCRIPT ' + \
'--printer %s --mode lib $SOURCE > $TARGET' % (printer),
)

View File

@@ -53,7 +53,7 @@ GLAPI = '#src/mapi/glapi/'
get_hash_header = env.CodeGenerate(
target = 'main/get_hash.h',
script = 'main/get_hash_generator.py',
source = GLAPI + 'gen/gl_and_es_API.xml',
source = [GLAPI + 'gen/gl_and_es_API.xml'] + env.Glob(GLAPI + 'gen/*.xml'),
command = python_cmd + ' $SCRIPT ' + ' -f $SOURCE > $TARGET'
)