Boost logo

Boost-Build :

From: Phillip Seaver (phil_at_[hidden])
Date: 2006-05-12 11:59:22


Jorge Suit Perez Ronda wrote:
> Hello, I want to create a new feature called variety. And depending on
> the value of the variety I want that the output of the compilation will
> be created in its own directory. For example if 'variety' can take the
> values A, B or C then the output could be
>
[deleted tree]
> the contens of A, B or C being the same as the default build structure
> of BB2
>
> is it possible? any suggestion would be appreciated.

I do something like that. I think to get it to have the exact structure
you want, you'd have to change some of the internals of boost.build.

    import feature : feature ;

    feature variety : A B C : optional composite link-incompatible ;
    feature.compose <variety>A : <define>VARIETY_A ;
    feature.compose <variety>B : <define>VARIETY_B ;
    feature.compose <variety>C : <define>VARIETY_C ;

You'd end up with something like bin/gcc/debug/variety-a,
bin/gcc/release/variety-b, etc, though, instead of your example tree.

Phillip


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