Boost logo

Boost-Build :

Subject: Re: [Boost-build] install-target-class question
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2008-12-17 14:30:46



"Vladimir Prus" <ghost_at_[hidden]> skrev i meddelandet news:200812171849.34111.ghost_at_cs.msu.su...
> On Wednesday 17 December 2008 17:34:14 Johan Nilsson wrote:
>> Hi,
>>
>> I'm browsing through the Boost.Build sources in an attempt to understand
>> what's actually going on when using the install rule. The following is from
>> trunk (stage.jam):
>>
>> class install-target-class : basic-target
>> {
>> ...
>> # Takes a target that is installed and a property set which is used when
>> # installing.
>> #
>> rule adjust-properties ( target : build-property-set )
>> {
>> local ps-raw ;
>> local a = [ $(target).action ] ;
>> if $(a)
>> {
>> local ps = [ $(a).properties ] ;
>> ps-raw = [ $(ps).raw ] ;
>>
>> # Unless <hardcode-dll-paths>true is in properties, which can
>> happen
>> # only if the user has explicitly requested it, nuke all
>> <dll-path>
>> # properties.
>> if [ $(property-set).get <hardcode-dll-paths> ] != true
>> {
>> ps-raw = [ property.change $(ps-raw) : <dll-path> ] ;
>> }
>> ...
>> }
>>
>> My question is: where does the "property-set" above originate from?
>
>>From the caller :-)

Well, not in this particular case :-)

>
>> Should
>> it be "build-property-set" instead?
>
> Yes, I've just fixed it. Thanks for noticing!

You're welcome.

/ 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