Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-05-05 06:28:31


On Thursday 05 May 2005 14:17, Mikhail Glushenkov wrote:
> Hello,
>
> 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 : :
> <file>./lib/$(toolset)/libogg$(variant)$(runtime)$(threading).$(lib-file-ex
>tension)
>
> 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 : :
<file>./lib/$(toolset)/libogg$(variant)$(runtime)$(threading).
$(lib-file-ex
}
}

>
> 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.

- 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