Boost logo

Boost-Build :

Subject: Re: [Boost-build] easy way to stage not built with boost build
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2010-05-19 14:41:03


On 5/19/2010 12:54 PM, Steven Watanabe wrote:
> AMDG
>
> Jim Gallagher wrote:
>> Our project uses a number of open source libraries, which are defined
>> in our Jamroot. Each library was built using the makefile that came
>> with its source. For example:
>>
>> constant ZLIB : zlib124 ;
>>
>> lib zlib124 : : <target-os>windows
>> <search>$(THIRD_PARTY_LIBS)/zlib/1.2.4-msvc8.0 <name>zlib
>> : : <include>$(THIRD_PARTY_LIBS)/zlib/1.2.4-msvc8.0 ;
>> lib zlib124 : : <target-os>hpux
>> <search>$(THIRD_PARTY_LIBS)/zlib/1.2.4-acc <name>z
>> : : <include>$(THIRD_PARTY_LIBS)/zlib/1.2.4-acc ;
>>
>> $(THIRD_PARTY_LIBS) is not below our project root.
>>
>> We use "install stage" targets to copy our libraries and executables
>> to a staging directory. Given the example above, is there an easy way
>> to define a staging target that copies the appropriate zlib? I tried
>> this, but "bjam stagelibs" did not do anything that I could see:
>>
>> install stagelibs : $(ZLIB) : <location>c:/stagetest ;
>
> This happens because BB treats a searched lib as a combination
> of -L and -l switches instead of as a real file. You can probably
> make this work by using alias and listing the exact file.
>
> alias zlib : $(THIRD_PARTY_LIBS)/zlib/1.2.4-msvc8.0/zlib.lib :
> <target-os>windows ;
>
> (Warning, I haven't actually tried this, and there
> might be a better way).

You will also likely need to add installing dependencies as mentioned in
the docs
<http://www.boost.org/doc/tools/build/doc/html/bbv2/tasks/installing.html>.

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