scons: add new -p (prefix) options for yacc
authorBrian Paul <brianp@vmware.com>
Sat, 15 Sep 2012 15:01:02 +0000 (09:01 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 15 Sep 2012 15:01:15 +0000 (09:01 -0600)
These were recently added to the Makefiles.

src/glsl/SConscript
src/mesa/SConscript

index 0855c67bb4eb81b104187b1564b3d58d380eda52..b034f3b06dcaa1596c5f5de6bd17e1a54bfcd436 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 920b545a89b94034a9b6fb12f5afff72ef692234..dba75a26448e5350568969b45278ab6d5dcf6ef8 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')