I forgot to put the definition of
run-php in the last post.
actions
run-php {
php $(>) > $(<)
}
From:
boost-build-bounces@lists.boost.org
[mailto:boost-build-bounces@lists.boost.org] On Behalf Of Sherwood Hu
Sent: Wednesday, March 03, 2010 3:32 PM
To: boost-build@lists.boost.org
Subject: [Boost-build] adding <include> path when creating .h file
In my project I have a file, config.h, that should be
generated from config.h.php. My jamfile looks like this:
make config.h :
config.h.php : @run-php ;
exe myEXE : config.h
a.cpp … ;
I ran bjam with VC 2005, and bjam put the generated config.h
at
Bin/gui/msvc-8.0/debug/link-static/runtime-link-static/thread-multi
All object files are under
Bin/gui/msvc-8.0/debug/link-static/runtime-link-static/thread-multi/user-interface-gui
In the .rsp file generated, the header include path has
"-I..\bin\gui\msvc-8.0\debug\link-static\runtime-link-static\threading-multi\user-interface-gui"
But it does not contain the path to its parent directory.
The compiler complained that it could not locate config.h.
How can I solve the problem?