|
Boost-Build : |
Subject: Re: [Boost-build] Adding custom name decoration to libraries
From: Braden Northington McDaniel (braden_at_[hidden])
Date: 2011-12-01 14:57:21
On Dec 1, 2011, at 4:42 AM, Juergen Hunold wrote:
> Hi Braden,
>
> On Thursday, 1. December 2011 06:46:46 Braden Northington McDaniel wrote:
>> I'm trying to add some custom name decoration to Boost library names. This
>> was working using a previous version of Boost with this sort of
>> modification in the boostcpp.tag rule:
>>
>> else if $(layout) = system
>> {
>> result = [ common.format-name
>> <base> -$(MY_DECORATION)
>> -$(BUILD_ID)
>>
>> : $(name) : $(type) : $(property-set) ] ;
>>
>> }
>>
>> However, it's not working with 1.48.0. I've been staring at this code as
>> well as common.format-name; but much of Jam syntax remains mysterious to me
>> and I'm not sure why my addition isn't being picked up the way it used to
>> be.
>>
>> Can someone tell me why this doesn't work? Or perhaps there's a better way
>> of accomplishing what I want? (Succinctly, I'd like to avoid entirely
>> Boost's own name decoration and substitute my own pulled from environment
>> variables.)
>
> You may need to import your environment variables now.
>
> For HOME this is:
>
> import os ;
> local HOME = [ os.environ HOME ] ;
> echo home $(HOME) ;
Thanks, but unfortunately I misspoke. MY_DECORATION is not an environment variable; it's a constant defined in user-config.jam:
constant MY_DECORATION : foo ;
-- Braden McDaniel e-mail/Jabber IM: braden_at_[hidden] http://endoframe.com
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