Boost logo

Boost-Build :

Subject: Re: [Boost-build] adding <include> path when creating .h file
From: Sherwood Hu (sherwood_at_[hidden])
Date: 2010-03-03 15:43:15


I forgot to put the definition of run-php in the last post.

 

actions run-php {

    php $(>) > $(<)

}

 

From: boost-build-bounces_at_[hidden]
[mailto:boost-build-bounces_at_[hidden]] On Behalf Of Sherwood Hu
Sent: Wednesday, March 03, 2010 3:32 PM
To: boost-build_at_[hidden]
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-m
ulti\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?

 

 



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk