Boost logo

Boost-Build :

From: Pedro Ferreira (pedro.ferreira_at_[hidden])
Date: 2003-11-19 06:10:15


Hi Volodya,

thanks for the tip. I'll give it a try and will report back to the list.

Cheers,

Pedro

----- Original Message -----
From: "Vladimir Prus" <ghost_at_[hidden]>
To: <jamboost_at_[hidden]>
Sent: Wednesday, November 19, 2003 8:36 AM
Subject: Re: [jamboost] Quick question on dependencies (BBv2)

> Hi Pedro,
>
> > 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
> implemented.
>
> 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
> for it.
> 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'
>
>
>
> - Volodya

 


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