summaryrefslogtreecommitdiffstats
path: root/src/compiler/Makefile.glsl.am
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2015-04-15 17:50:57 -0700
committerIan Romanick <ian.d.romanick@intel.com>2016-08-30 16:28:00 -0700
commitfb44f69779ed7497768421ccd60e73cc707ffe69 (patch)
tree7e648f9de8724ff264ce60800fae8083540b4ba0 /src/compiler/Makefile.glsl.am
parent90781eee4dfc101199ea557003f28126abe86912 (diff)
downloadexternal_mesa3d-fb44f69779ed7497768421ccd60e73cc707ffe69.zip
external_mesa3d-fb44f69779ed7497768421ccd60e73cc707ffe69.tar.gz
external_mesa3d-fb44f69779ed7497768421ccd60e73cc707ffe69.tar.bz2
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 <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Acked-by: Dylan Baker <dylan@pnwbakers.com>
Diffstat (limited to 'src/compiler/Makefile.glsl.am')
-rw-r--r--src/compiler/Makefile.glsl.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/compiler/Makefile.glsl.am b/src/compiler/Makefile.glsl.am
index 0dba618..125580d 100644
--- a/src/compiler/Makefile.glsl.am
+++ b/src/compiler/Makefile.glsl.am
@@ -199,7 +199,11 @@ glsl/glcpp/glcpp-lex.c: glsl/glcpp/glcpp-lex.l
glsl/ir_expression_operation.h: glsl/ir_expression_operation.py
$(MKDIR_GEN)
- $(PYTHON_GEN) $(srcdir)/glsl/ir_expression_operation.py > $@ || ($(RM) $@; false)
+ $(PYTHON_GEN) $(srcdir)/glsl/ir_expression_operation.py enum > $@ || ($(RM) $@; false)
+
+glsl/ir_expression_operation_strings.h: glsl/ir_expression_operation.py
+ $(MKDIR_GEN)
+ $(PYTHON_GEN) $(srcdir)/glsl/ir_expression_operation.py strings > $@ || ($(RM) $@; false)
# Only the parsers (specifically the header files generated at the same time)
# need to be in BUILT_SOURCES. Though if we list the parser headers YACC is
@@ -211,6 +215,7 @@ BUILT_SOURCES += \
glsl/glsl_parser.cpp \
glsl/glsl_lexer.cpp \
glsl/ir_expression_operation.h \
+ glsl/ir_expression_operation_strings.h \
glsl/glcpp/glcpp-parse.c \
glsl/glcpp/glcpp-lex.c
CLEANFILES += \
@@ -219,6 +224,7 @@ CLEANFILES += \
glsl/glsl_parser.cpp \
glsl/glsl_lexer.cpp \
glsl/ir_expression_operation.h \
+ glsl/ir_expression_operation_strings.h \
glsl/glcpp/glcpp-parse.c \
glsl/glcpp/glcpp-lex.c