Boost logo

Boost-Build :

From: Jared W. Robinson (jared.robinson_at_[hidden])
Date: 2006-09-26 17:35:37


Hello. I would like to be able to do something like the following:

build-project moduleAtest : <variant>ProductA ;
build-project moduleBtest : <variant>ProductB ;

How can I make this work?

I've tried the following, without success:

  rule moduletest {
    # myvariant doesn't get defined:
    myvariant = [ MATCH "Product(B)$" : feature.get-values <variant> ] ;
    if $(myvariant) = B {
      return [ build-project moduleBtest ] ;
    }
    return [ build-project moduleAtest ] ; # always returned
  }

  moduletest ;

Thank you,

Jared Robinson


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