From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-05-05 06:28:31
On Thursday 05 May 2005 14:17, Mikhail Glushenkov wrote:
> In my project, I use a lot of prebuilt libraries
> and also compile it with three different
> compilers, so I end up with something like this
> in my thirdparty_libs/Jamfile:
> lib ogg : : <file>./lib/msvc-7.1/liboggD.lib
> <variant>debug <toolset>msvc
> <toolset-msvc:version>7.1 ;
> lib ogg : : <file>./lib/msvc-7.1/libogg.lib
> And if you throw in various standard library and
> threading types it becomes even worse.
> It would be great if I could write something
> like this:
> lib ogg : :
> where $(lib-file-extension) is .a for gcc and
> .lib otherwise.
You probably can get aways with a loop
for toolset in gcc msvc
for variant in "" D
# More loops
lib ogg : :
> It's also not very cool that you have to write
> <toolset>msvc <toolset-msvc:version>6.0 instead
> of just <toolset>msvc-6.0.
<toolset>msvc-6.0 should work in current CVS.
-- 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