Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-10-20 03:28:48

Hi Maxim,
> Is it possible to set a conditional that chooses different libraries
> on different platforms? Something like this:
> lib
> mylib1
> src.cpp src.h
> <platform>windows:<library>/my_deps//windows_deps
> <platform>linux:<library>/my_deps//linux_deps
> <include>.
> ;

Use <os>NT and <os>LINUX respectively.

> Another question: what's the right way to add library versioning, so
> that library get a name on build, but can be reffered
> just as mylib from exe targets that link to it? Should I use aliases?

You should use the <tag> feature. Take a look at Boost's top-level Jamfile.v2
It would be nice to make this more easily reusable, though.

> Why don't boost-build add a "lib" prefix to libraries on unix? For
> example: target mylib becomes

CVS version does add "lib" prefix.

- Volodya

Vladimir Prus
Boost.Build V2:

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