From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-03-20 13:55:58
Arkadiy Vertleyb wrote:
> Hi all,
> I am trying to define a default build, that would consist of one variant for
> vc-7_1 and gcc, and one more variant for gcc only, such as:
> debug -- vc-7_1, gcc
> my_variant -- gcc only
> Furthermore, my_variant doesn't make sence for vc-7_1.
> Is it possible to describe all this, an if yes then how? I am using
> Boost.Build version 1.
Not totally sure I understand your questions.. But here's a possible
answer. It prevents builds with anything but gcc for my_variant.
rule only-gcc ( toolset variant : subvariant-path properties * )
local no-build = <build>no ;
if [ MATCH .*(gcc).* : $(toolset) ]
no-build = ;
return $(subvariant-path) [ impose-requirements $(properties) :
$(no-build) ] ;
variant my_variant : : only-gcc ;
This is untested, so syntax, and actual operation may vary from my
-- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq
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