Boost logo

Boost-Build :

From: Motonari Ito (motonarii_at_[hidden])
Date: 2007-05-29 12:27:19


Hi Volodya,

> > ##########################
> > # List-1
> > ##########################
> > import virtual-target : add-prefix-and-suffix ;
> >
> > rule rename ( name : type ? : property-set ) {
> > local postfix ;
> > local properties = [ $(property-set).raw ] ;
> > if <variant>debug in $(properties) { postfix += d ; }
> >
> > local result = $(name)-$(postfix:J=-) ;
> >
> > return [ add-prefix-and-suffix $(result) : $(type) :
$(property-set)
> > ] ; }
> >
> > lib bar : bar.cpp
> > : <tag>@rename
> > <link>shared
> > ;
> >
> > exe foo : foo.cpp
> > : <define>FOO_FILENAME=????
> > ;

> So, you want to pass this value at compile time? This might be tricky,
> let me think about this for a while.

Yes.

Thank you very much, Volodya.


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