Boost logo

Boost-Build :

Subject: Re: [Boost-build] building the final library name...
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2010-01-15 12:36:03


Thomas Lehmann wrote:
> Does not work!

Could you be more specific? Are you getting errors? What names does it
install as? What names does it build as? Could you post a log of the
build, with the command output (-d+2)? Are the lack of spaces around
<toolset> and <tag> a posting problem? Or are they not there when you
try it?

> 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.

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