Boost logo

Boost-Build :

Subject: Re: [Boost-build] easy way to stage not built with boost build
From: Jim Gallagher (jim_at_[hidden])
Date: 2010-05-19 19:07:11

>> 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
   : <location>$(STAGE_SERVER)

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.


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