[Scons-users] Generated source file is placed in build directory, missing includes
Carsten Fuchs
carsten.fuchs at cafu.de
Sun Oct 28 04:52:18 EDT 2012
Hi Thomas, hi William,
thank you very much for your help!
env.AppendUnique(CPPPATH=['#/Ca3DE',])
(or even env.Append(CPPPATH=['#/Ca3DE']) )
solves the problem, but it also affects all other source files in the call
app = env.Program('Ca3DE/Cafu',
Glob("Ca3DE/*.cpp") +
env.Command("Ca3DE/AppCafu_GenList.cpp", "", generateCode))
This is ok in my case, but if it was a problem, it seems that the next best solution was
to insert another call to StaticObject() like this:
gen_cpp = env.Command("Ca3DE/AppCafu_GenList.cpp", "", generateCode)
gen_obj = env.StaticObject(gen_cpp, CPPPATH=env['CPPPATH']+["#/Ca3DE"])
app = env.Program('Ca3DE/Cafu',
Glob("Ca3DE/*.cpp") + gen_obj)
Or is there a better / more SCons-like way to achieve this?
Best regards,
Carsten
--
Cafu - the open-source Game and Graphics Engine
for multiplayer, cross-platform, real-time 3D Action
Learn more at http://www.cafu.de
More information about the Scons-users
mailing list