Boost logo

Boost-Build :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2002-10-17 08:35:46


Vladimir Prus wrote:
> Markus Schöpflin wrote:
>
>> User defined features would be a nice thing, I think. Something
>> like
>>
>> exe foo : foo.cpp : <oracle-link>static ;
>>
>> and <oracle-link> is a feature defined by me somewhere else.
>
> Even now, users can define new features, for example
>
> feature.feature oracle-link : static shared ;
> feature.rule oracle-link : oracle-link-properties ;
>
> rule oracle-link-properties ( p )
> {
> # return 15 additional features, depenging on the property
> # passed
> }
>
> Here, 'oracle-link-properties' will be called either with
> <oracle-link>static or <oracle-link>dynamic and can add extra
> properties for building main target, depending on that.

This looks great. Now if you give user defined features the
possibility to directly manipulate LDFLAGS (or CFLAGS or CPPFLAGS or
whatever) for the current target it could do whatever is needed to
achieve the desired goal.

Markus

 


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