|
Boost-Build : |
Subject: Re: [Boost-build] building the final library name...
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2010-01-14 10:30:25
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.
-- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org (msn) - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim,yahoo,skype,efnet,gmail
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