summaryrefslogtreecommitdiffstats
path: root/src/mesa/SConscript
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2011-03-01 15:04:04 -0800
committerKenneth Graunke <[email protected]>2011-03-01 15:49:29 -0800
commit8be58df67a3d3cc682407f10badcb92a1c988e65 (patch)
treeac643eba6dcb2a7a014fe052df20634a41248062 /src/mesa/SConscript
parent80ec97af79530dc053770d218cd55ac7dbd74736 (diff)
scons: Use Flex and Bison to generate lexer/parser files.
This gets it building again here; I'll leave it up to the SCons maintainers to make further improvements.
Diffstat (limited to 'src/mesa/SConscript')
-rw-r--r--src/mesa/SConscript8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/SConscript b/src/mesa/SConscript
index d65750b93e2..acbf86ebd2d 100644
--- a/src/mesa/SConscript
+++ b/src/mesa/SConscript
@@ -214,15 +214,17 @@ statetracker_sources = [
'state_tracker/st_texture.c',
]
+env.Append(YACCFLAGS = '-d')
+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')
program_sources = [
'program/arbprogparse.c',
'program/hash_table.c',
'program/ir_to_mesa.cpp',
- 'program/lex.yy.c',
'program/nvfragparse.c',
'program/nvvertparse.c',
'program/program.c',
- 'program/program_parse.tab.c',
'program/program_parse_extra.c',
'program/prog_cache.c',
'program/prog_execute.c',
@@ -237,6 +239,8 @@ program_sources = [
'program/programopt.c',
'program/sampler.cpp',
'program/symbol_table.c',
+ program_lex,
+ program_parse[0],
]
mesa_sources = (