summaryrefslogtreecommitdiffstats
path: root/src/mesa/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/SConscript')
-rw-r--r--src/mesa/SConscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/SConscript b/src/mesa/SConscript
index 53e5ee8c206..11e034f84a5 100644
--- a/src/mesa/SConscript
+++ b/src/mesa/SConscript
@@ -441,6 +441,14 @@ env.CodeGenerate(
command = python_cmd + ' $SCRIPT -f $SOURCE > $TARGET'
)
+# The api_exec.c file is generated from the GL/ES API.xml file
+env.CodeGenerate(
+ target = 'main/api_exec.c',
+ script = GLAPI + 'gen/gl_genexec.py',
+ source = GLAPI + 'gen/gl_and_es_API.xml',
+ command = python_cmd + ' $SCRIPT -f $SOURCE > $TARGET'
+ )
+
# We also depend on the auto-generated GL API headers
env.Depends(mesa_sources, glapi_headers)