Boost logo

Boost-Build :

Subject: Re: [Boost-build] building the final library name...
From: Thomas Lehmann (t.lehmann_at_[hidden])
Date: 2010-01-15 04:02:46


Does not work!

Am 14.01.2010 16:30, schrieb Rene Rivera:
> Thomas Lehmann wrote:
>
>> Well, could you please be more precise?
>> I have tried some examples but I do not get the result...
>> Can you give a "hello world" example please?
>>
> Something like this might work:
>
> ===
> import common ;
>
> local HOSTNAME = [ modules.peek : HOSTNAME ] ;
>
> project dummy
> : requirements<include>.
> : build-dir ../Binaries/$(HOSTNAME)/dummy
> ;
>
> rule dummy-decorate ( name : type ? : property-set )
> {
> return [ common.format-name
> <base> <property:target-os> <property:address-model>
> : $(name) : $(type) : $(property-set) ] ;
> }
>
> exe "dummy"
> : [ glob *.cxx ]
> :<toolset>msvc<tag>@dummy-decorate
> ;
>
> exe "dummy"
> : [ glob *.cxx ]
> :<toolset>gcc<tag>@dummy-decorate
> ;
>
> install dist
> : "dummy"
> :<location>../Binaries/$(HOSTNAME)
> ;
> ===
>
> HTH.
>
>


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