|
Boost-Build : |
From: Mikhail Glushenkov (bbman_at_[hidden])
Date: 2005-05-05 16:32:09
Vladimir Prus wrote:
> 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
> }
> }
Tried this with latest nightly.
After some tweaking(writing <toolset>msvc-7.1 in
requirements still does not work:-( )
I ended up with this:
for toolset in msvc-7.1 intel {
for variant in debug release
{
local suffix = "" ;
if $(variant) = debug {
suffix = D ;
}
local ext = lib ;
if $(toolset) = gcc {
ext = a ;
}
local dir = ./lib/$(toolset) ;
local ver = ;
if $(toolset) = msvc-7.1 {
toolset = msvc ;
ver = <toolset-msvc:version>7.1 ;
}
lib glew : : <file>$(dir)/glew32$(suffix).$(ext)
<variant>$(variant) <toolset>$(toolset) $(ver) ;
[and so on]
}
}
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