mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 11:40:10 +01:00
scons: Ensure generated headers are in the include path.
This commit is contained in:
parent
54d8c5e3c2
commit
dbfbb8cf6d
2 changed files with 7 additions and 0 deletions
|
|
@ -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],
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue