scons: Ensure generated headers are in the include path.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 3 Mar 2011 15:43:18 +0000 (15:43 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 3 Mar 2011 15:43:18 +0000 (15:43 +0000)
src/glsl/SConscript
src/mesa/SConscript

index 10abab6f945c8262d9d61f166e128d71a35d577e..c2e5d45ebad64cb6384fed48e1d47ddb2ea28ba1 100644 (file)
@@ -24,6 +24,9 @@ glcpp_parser = env.CFile('glcpp/glcpp-parse.c', 'glcpp/glcpp-parse.y')
 glsl_lexer = parser_env.CXXFile('glsl_lexer.cpp', 'glsl_lexer.ll')
 glsl_parser = parser_env.CXXFile('glsl_parser.cpp', 'glsl_parser.yy')
 
+# Make glcpp/glcpp-parse.h reacheable from the include path
+env.Append(CPPPATH = [glcpp_parser[0].dir.up()])
+
 sources = [
     glcpp_lexer,
     glcpp_parser[0],
index acbf86ebd2d464b3e86cbd19696510e4480a7968..ca36bf27f949c31400014ab95c611c321a0dc035 100644 (file)
@@ -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',