summaryrefslogtreecommitdiff
path: root/src/mesa/SConscript
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2017-03-26 21:28:29 +0100
committerJose Fonseca <jfonseca@vmware.com>2017-03-26 21:30:34 +0100
commit2ba991cbcd809bfdebf42f2df3b94f27439412d4 (patch)
treee6d3ae6d170f14d4db63b28008e58693ebe5b605 /src/mesa/SConscript
parent641f629536c2daf6112fe9d5b904c012bb07b912 (diff)
scons: Fix dependencies of marshal_generated.[ch].
These generated source files depend not only upon gl_and_es_API.xml, but all other XML files that are included by it. This change updates the generation rules to depend on all gen/*.xml files, like done for other SCons generation rules, and should fix incremental broken SCons builds due to missing dependencies. Trivial.
Diffstat (limited to 'src/mesa/SConscript')
-rw-r--r--src/mesa/SConscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/SConscript b/src/mesa/SConscript
index 9398ddb13bf..fa4efe101b9 100644
--- a/src/mesa/SConscript
+++ b/src/mesa/SConscript
@@ -122,7 +122,7 @@ if env['platform'] not in ('cygwin', 'darwin', 'windows', 'haiku'):
env.CodeGenerate(
target = 'main/marshal_generated.c',
script = GLAPI + 'gen/gl_marshal.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'
)
@@ -130,7 +130,7 @@ env.CodeGenerate(
env.CodeGenerate(
target = 'main/marshal_generated.h',
script = GLAPI + 'gen/gl_marshal_h.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'
)