From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-11-19 03:36:22
> suppose I have something like:
> lib a : a.cpp ;
> stage stage-a : a ;
> lib b : b.cpp ;
> and I must have a staged _before compiling_ b.cpp, even though it is not
> linked with it or includes any of b's headers. What is the best solutions
> to do this?
lib b : b.cpp : <dependency>stage-a ;
Where's the catch, you'd ask. The catch is that the <dependency> is not
I really can't promise to implement it for this milestone, since I'd like to
make the final round of optimization. However, if you're willing to invest
half-an-hour, you can implement this yourself. The recommented course
of actions is:
1. Define new feature <dependency>. Be sure to specify 'dependency' attribute
2. Go to virtual-target.jam, and action.actualize-sources method.
3. Grab all <dependency> properties from self.properties via call to 'get'
method on self.properties.
4. Add the result to 'self.dependency-only-sources'
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