Boost logo

Boost-Build :

Subject: Re: [Boost-build] Can I force a property to be propagated?
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2010-01-19 06:37:12


John Maddock wrote:
> I'm trying to figure out if a project can "refine" another project by
> forcing some properties to be propagated to it.
>
> In doc/pdf/Jamfile.v2 I basically just do an install of boostbook
> targets declared elsewhere. But I want to be able to specify that those
> boostbook targets are built with some specific properties.
>
> If I add:
>
> project : requirements <xsl:param>something ;
>
> to the Jamfile, then the xsl:param only gets applied to the boostbook
> targets declared in that Jamfile (fair enough).
>
> If I add the <xsl:param>something property to the main install rule,
> it still doesn't get propagated to the dependent boostbook targets.
>
> So is there another way?

Would it be possible to use some technique similar to this:

---
project foobar ;
exe test : main.cpp ;
# NOTE: We need to specify location here in order to avoid
# the "duplicate targets" problem.
#
alias test2 : test/<location>bin2/<define>FOOBAR=2 ; # or 
<xsl-param>something
install bin
 :
 test2
 ;
---
I know it's not literally what you're looking for, but you might be able to 
adapt it to your needs.
Regards / Johan 

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