summaryrefslogtreecommitdiff
path: root/src/mesa/SConscript
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2012-11-07 13:03:13 -0800
committerTimothy Arceri <tarceri@itsqueeze.com>2017-03-16 14:14:18 +1100
commit05dd4a1104ea815e4627bab0fbd35d9abe49f024 (patch)
tree60ba154ffd5b79821eb7c21373dd2a16d4bc6d96 /src/mesa/SConscript
parentf05524ffaa98488c3faecebe952f1676fbb6a09c (diff)
glapi: Generate GL API marshalling code from the XML.
This is not yet used in the build, just generated. v2: Add missing build dependencies. v3: Avoid mixing declarations and code, remove logic for avoiding emitting code that the compiler's optimizer can deal with anyway. v4: (Timothy Arceri) move safe_mul() genereation here from a later patch. Acked-by: Timothy Arceri <tarceri@itsqueeze.com> Acked-by: Marek Olšák <maraeo@gmail.com> Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de> Tested-by: Mike Lothian <mike@fireburn.co.uk>
Diffstat (limited to 'src/mesa/SConscript')
-rw-r--r--src/mesa/SConscript16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mesa/SConscript b/src/mesa/SConscript
index e375de6ee77..9398ddb13bf 100644
--- a/src/mesa/SConscript
+++ b/src/mesa/SConscript
@@ -118,6 +118,22 @@ if env['platform'] not in ('cygwin', 'darwin', 'windows', 'haiku'):
env.Prepend(CPPPATH = [matypes[0].dir])
+# The marshal_generated.c file is generated from the GL/ES API.xml file
+env.CodeGenerate(
+ target = 'main/marshal_generated.c',
+ script = GLAPI + 'gen/gl_marshal.py',
+ source = GLAPI + 'gen/gl_and_es_API.xml',
+ command = python_cmd + ' $SCRIPT -f $SOURCE > $TARGET'
+ )
+
+# The marshal_generated.h file is generated from the GL/ES API.xml file
+env.CodeGenerate(
+ target = 'main/marshal_generated.h',
+ script = GLAPI + 'gen/gl_marshal_h.py',
+ source = GLAPI + 'gen/gl_and_es_API.xml',
+ command = python_cmd + ' $SCRIPT -f $SOURCE > $TARGET'
+ )
+
#
# Libraries
#