Subject: Re: [Boost-build] easy way to stage not built with boost build
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2010-05-19 19:23:13
On 5/19/2010 6:07 PM, Jim Gallagher wrote:
>>> 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
> OK, thanks for pointing me in the right direction. This appears to do what
> I want (with one wart):
> In Jamroot:
> constant ZLIB : zlib124 ;
> lib zlib124 : :
> : :
> <library>$(THIRD_PARTY_LIBS)/zlib/1.2.4-msvc8.0/zlib1.dll ;
> In Jamfile:
> exe example :
> install stage
> : example
> explicit stage ;
> The wart is that I have to use both the import and dll in the lib definition,
> and "install stage" copies both to the staging area. If I can get around this,
> it would be perfect! If I use just the .lib, my exe links, but stage
> does not copy the .dll.
Use <install-type>SHARED_LIB instead of <install-type>LIB. The reason is
that LIB is a super-set of SHARED_LIB and STATIC_LIB.
-- -- 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