diff options
author | Ian Romanick <[email protected]> | 2015-04-15 17:50:57 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-08-30 16:28:00 -0700 |
commit | fb44f69779ed7497768421ccd60e73cc707ffe69 (patch) | |
tree | 7e648f9de8724ff264ce60800fae8083540b4ba0 /src/compiler/SConscript.glsl | |
parent | 90781eee4dfc101199ea557003f28126abe86912 (diff) |
glsl: Generate ir_expression_operation_strings.h from Python
'diff -ud' is clean.
v2: Massive rebase.
v3: With much help from José Fonseca, fix the 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.glsl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/compiler/SConscript.glsl b/src/compiler/SConscript.glsl index 3d28d99fc63..b1b41693397 100644 --- a/src/compiler/SConscript.glsl +++ b/src/compiler/SConscript.glsl @@ -122,7 +122,14 @@ env.CodeGenerate( target = 'glsl/ir_expression_operation.h', script = 'glsl/ir_expression_operation.py', source = [], - command = python_cmd + ' $SCRIPT > $TARGET' + command = python_cmd + ' $SCRIPT enum > $TARGET' +) + +env.CodeGenerate( + target = 'glsl/ir_expression_operation_strings.h', + script = 'glsl/ir_expression_operation.py', + source = [], + command = python_cmd + ' $SCRIPT strings > $TARGET' ) glsl_compiler = env.Program( |