Boost logo

Boost-Build :

From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2005-03-21 23:28:07


"Rene Rivera" <grafik.list_at_[hidden]> wrote
> 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 ;

Hmmm... Does this mean it's possible to do something like this in jamfile:

---
exe my_exe
:
main.cpp
...
:
...
<vc-7_1><my_gcc_specific_variant><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
> assertions ;-)
Thanks,
Arkadiy
 

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