Boost logo

Boost-Build :

Subject: [Boost-build] Adding the object directory to <include>
From: Sherwood Hu (sherwood_at_[hidden])
Date: 2010-07-05 10:00:13


I am trying to rewrite a makefile of a MFC application in boost.build.
Now I have a problem.

 

The resource file (rc) includes .rc2 file, and this .rc2 file is
generated from a php script.

 

actions run-php {

                php $(>) > $(<)

}

                

make myApp.rc2 : myApp.rc2.php : @run-php ;

 

exe myApp: [ glob-tree *.cpp *.rc ]

                                :

# <implicit-dependency> myApp.rc2

                                ;

 

 

Bjam generated myApp.rc2 in the object directory. When compiling
myApp.rc2, the resource compiler complained that it could not find
myApp.rc2.

 

I followed the section "Generated headers" and used
<implicit-dependency>, but it did not work.

 

It seems that I need to add the object directory to <include> search
path. What can I do to 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