summaryrefslogtreecommitdiffstats
path: root/src/mesa/SConscript
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-03-03 15:43:18 +0000
committerJosé Fonseca <[email protected]>2011-03-03 15:43:18 +0000
commitdbfbb8cf6da472e9000481ebd6a2a6b4e4845560 (patch)
treefd9724afc37a2c5ca7b0dfe7ea098ccafe70767d /src/mesa/SConscript
parent54d8c5e3c2fc7db643a2bae61be203ab9cbb1efa (diff)
scons: Ensure generated headers are in the include path.
Diffstat (limited to 'src/mesa/SConscript')
-rw-r--r--src/mesa/SConscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/SConscript b/src/mesa/SConscript
index acbf86ebd2d..ca36bf27f94 100644
--- a/src/mesa/SConscript
+++ b/src/mesa/SConscript
@@ -218,6 +218,10 @@ 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')
+
+# Make program/program_parse.tab.h reacheable from the include path
+env.Append(CPPPATH = [program_parse[0].dir.up()])
+
program_sources = [
'program/arbprogparse.c',
'program/hash_table.c',