Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-02-11 10:21:55


On Friday 11 February 2005 08:42, Sara Collins wrote:
> This might be a silly question, but I only know how to
> use an "AND" operator, for example
>
> <toolset>gcc,<variant>debug:<include>foo
>
> Is OR conditional available in BB? How about NOT?

Nope, neither are possible in conditional requirements.

> What I'm trying to do here is:
>
> if (!<toolset>foo)
> {
> build /lib//lib1
> build /lib//lib2
> ...
> }

Can be approximated with:

alias build_others : : <toolset>foo ; # do-nothing alternative
alias build_others : /lib//lib1 /lib//lib2 ;
# used for all other toolsets, builds what you listed.

> Or
>
> if (<toolset>foo || <toolset>bar)
> {
> build /lib//lib1
> build /lib//lib2
> ...
> }

Can be approximated with

alias others : /libs//lib1 /libs//lib2 ;
explicit others ;
alias build_others : others : <toolset>foo ;
alias build_others : others : <toolset>bar ;
alias build_others ; # catch-all do-nothing alternative

- Volodya

>
> Thanks a lot.
> Sara
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.
> http://promotions.yahoo.com/new_mail
>
>
>
> Yahoo! Groups Links
>
>
>

 


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