summaryrefslogtreecommitdiffstats
path: root/src/mesa/SConscript
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2012-10-31 10:42:08 -0700
committerPaul Berry <[email protected]>2012-11-06 12:57:45 -0800
commit98874ec30b3db83454cc55bbdda910a0ec16ff53 (patch)
tree525fce8c86652c2c729a13680b7f5bf728d778d3 /src/mesa/SConscript
parent38a1039a427d73ad959cc978d44fcf8c21388868 (diff)
dispatch: Code generate api_exec.c.
This patch adjusts makefiles to cause src/mesa/main/api_exec.c to be generated using src/mapi/glapi/gen/gl_genexec.py. There should be no functional change. Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Matt Turner <[email protected]>
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)