Boost logo

Boost-Build :

Subject: Re: [Boost-build] Adding custom name decoration to libraries
From: Juergen Hunold (juergen.hunold_at_[hidden])
Date: 2011-12-01 04:42:04


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) ;

Hope this helps.

Yours,

Jürgen

-- 
Dipl.-Math. Jürgen Hunold       | IVE mbH
Software-Entwickler             | Lützerodestraße 10 
Tel: +49 511 897668 33          | 30161 Hannover, Germany
Fax: +49 511 897668 29          | http://www.ivembh.de
juergen.hunold_at_[hidden]        | 
                                | Geschäftsführer:
Sitz des Unternehmens: Hannover | Univ.-Prof. Dr.-Ing. Thomas Siefer               
Amtsgericht Hannover, HRB 56965 | PD Dr.-Ing. Alfons Radtke  

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