Boost logo

Boost-Build :

Subject: Re: [Boost-build] easy way to stage not built with boost build
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-05-19 13:54:23


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

In Christ,
Steven Watanabe

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at