scons: add new -p (prefix) options for yacc
authorBrian Paul <brianp@vmware.com>
Sat, 15 Sep 2012 15:01:02 +0000 (09:01 -0600)
committerVinson Lee <vlee@freedesktop.org>
Sun, 30 Sep 2012 18:43:58 +0000 (11:43 -0700)
These were recently added to the Makefiles.
(cherry picked from commit e78ebbc5f9448d459b57884d90b0a6496294c1dd)

src/glsl/SConscript
src/mesa/SConscript

index 0855c67..b034f3b 100644 (file)
@@ -17,7 +17,7 @@ env.Prepend(CPPPATH = [
 # Make glcpp-parse.h and glsl_parser.h reachable from the include path.
 env.Append(CPPPATH = [Dir('.').abspath, Dir('glcpp').abspath])
 
-env.Append(YACCFLAGS = '-d')
+env.Append(YACCFLAGS = '-d -p "glcpp_parser_"')
 
 parser_env = env.Clone()
 parser_env.Append(YACCFLAGS = [
index 920b545..dba75a2 100644 (file)
@@ -280,7 +280,7 @@ statetracker_sources = [
     'state_tracker/st_texture.c',
 ]
 
-env.Append(YACCFLAGS = '-d')
+env.Append(YACCFLAGS = '-d -p "_mesa_program_"')
 program_lex = env.CFile('program/lex.yy.c', 'program/program_lexer.l')
 program_parse = env.CFile('program/program_parse.tab.c',
                           'program/program_parse.y')