|
Boost-Build : |
Subject: Re: [Boost-build] Adding custom name decoration to libraries
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-12-01 15:10:51
AMDG
On 12/01/2011 11:57 AM, Braden Northington McDaniel wrote:
> On Dec 1, 2011, at 4:42 AM, Juergen Hunold wrote:
>
>> Hi Braden,
>>
>> 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 ;
>
In that case:
import modules ;
local MY_DECORATION =
[ modules.peek user-config : MY_DECORATION ] ;
constants are only visible in sub-projects, so
using MY_DECORATION directly broke when boostcpp
was split off from Jamroot.
In Christ,
Steven Watanabe
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