Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2002-11-27 01:50:54

David Abrahams wrote:
> Rene Rivera <grafik666_at_[hidden]> writes:
>>Or even:
>>source test-src-common : source1.cpp source2.cpp ;
>>source test-src : main-gcc.cpp test-src-common : <toolset>gcc ;
>>source test-src : main-msvc.cpp test-src-common : <toolset>msvc ;
>>source test-src : main-darwin.cpp test-src-common : <toolset>darwin ;
>>exe test : test-src ;
> Ding!!
> Beautiful. I vote yes.

Ding as well! This even will be simple to implement -- much
in the same way as 'symlink' target that Rene did.

I've filed

on it, so that we do it eventually. I'd only prefer
to use more general name, something like "group", because there's
no reason why you can't use main targets together with source files.
Something like

group os-abstraction : win.cpp my_i18_lib : <os>NT ;

And BTW, I recall that Scons has a target "alias", which
allows to build a group of targets given the alias name.
I'm not sure if aliases can be used as sources, though.

- Volodya


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