summaryrefslogtreecommitdiffstats
path: root/src/compiler/SConscript.glsl
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2015-04-15 16:59:43 -0700
committerIan Romanick <[email protected]>2016-08-30 16:28:00 -0700
commit7d6af9e59935959689ac9611f17abc06c6837f16 (patch)
treeb918953b0f8e936ae0bb9bc42111179fa110df92 /src/compiler/SConscript.glsl
parent10f9901bcef7724cb72fb2fe7e3dd8d6660d2f34 (diff)
glsl: Generate ir_expression_operation.h from Python
There are differences in where end-of-line comments are placed, but 'diff -wud' is clean. v2: Massive rebase. v3: With much help from José Fonseca, fix SCons build. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Matt Turner <[email protected]> Acked-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/compiler/SConscript.glsl')
-rw-r--r--src/compiler/SConscript.glsl9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/compiler/SConscript.glsl b/src/compiler/SConscript.glsl
index 31d8f6debf4..3d28d99fc63 100644
--- a/src/compiler/SConscript.glsl
+++ b/src/compiler/SConscript.glsl
@@ -116,6 +116,15 @@ env.Prepend(LIBS = [compiler, glsl])
compiler_objs += env.StaticObject("glsl/main.cpp")
+# GLSL generated sources
+
+env.CodeGenerate(
+ target = 'glsl/ir_expression_operation.h',
+ script = 'glsl/ir_expression_operation.py',
+ source = [],
+ command = python_cmd + ' $SCRIPT > $TARGET'
+)
+
glsl_compiler = env.Program(
target = 'glsl_compiler',
source = compiler_objs,