|
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 mylib.1.3.so 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 libmylib.so
CVS version does add "lib" prefix.
- Volodya
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build V2: http://boost.org/boost-build2
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