summaryrefslogtreecommitdiffstats
path: root/src/glsl/SConscript
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2012-08-02 09:40:40 -0600
committerBrian Paul <brianp@vmware.com>2012-08-02 09:40:40 -0600
commit4bd36956f82b30b1edc299e6d6e34e1bc911af01 (patch)
tree1bd8bdaee6774be14ca3f7a65da7dd58c984fe8d /src/glsl/SConscript
parent41625afa2f7f30e5076c695ab3a16eabb5fe69f8 (diff)
downloadexternal_mesa3d-4bd36956f82b30b1edc299e6d6e34e1bc911af01.zip
external_mesa3d-4bd36956f82b30b1edc299e6d6e34e1bc911af01.tar.gz
external_mesa3d-4bd36956f82b30b1edc299e6d6e34e1bc911af01.tar.bz2
scons: set YACCHXXFILESUFFIX to stop needless rebuilding of the parser
Before, the GLSL parser was getting rebuilt every time that scons was run. The problem was scons was expecting a glsl_parser.hpp file but we were generating a glsl_parser.h file. Signed-off-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/glsl/SConscript')
-rw-r--r--src/glsl/SConscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/SConscript b/src/glsl/SConscript
index 2fc57c6..0855c67 100644
--- a/src/glsl/SConscript
+++ b/src/glsl/SConscript
@@ -25,6 +25,10 @@ parser_env.Append(YACCFLAGS = [
'-p', '_mesa_glsl_',
])
+# without this line scons will expect "glsl_parser.hpp" instead of
+# "glsl_parser.h", causing glsl_parser.cpp to be regenerated every time
+parser_env['YACCHXXFILESUFFIX'] = '.h'
+
glcpp_lexer = env.CFile('glcpp/glcpp-lex.c', 'glcpp/glcpp-lex.l')
glcpp_parser = env.CFile('glcpp/glcpp-parse.c', 'glcpp/glcpp-parse.y')
glsl_lexer = parser_env.CXXFile('glsl_lexer.cpp', 'glsl_lexer.ll')