|
Boost-Build : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-01-08 15:20:20
Vladimir Prus <ghost_at_[hidden]> writes:
> David Abrahams wrote:
>> David Abrahams <dave_at_[hidden]> writes:
>>
>>
>>>>- we'd need some flags inheritance as we've discussed
>>>
>>>Not done yet.
>>
>>
>> Having looked at this some more, I'm not convinced that we have any
>> good idea for the interface, and I also don't know how to approach
>> implementing it. We'll need some more discussion.
>
> What we need is some concrete use cases of toolset inheritance.
> Well, to begin with, it's possible to have some common.jam, with
>
> toolset.flags common.compile DEFINES <define> ;
>
> then gcc.jam would say
>
> tolset.inherit-flags common ;
>
> to reuse the first flags declaration. Looking at the V1 cwpro8-tools.jam, it
> seems like in V2 it would contain:
>
> toolset.inherit-flags metrowerks ;
>
> In the second case we'd also need to inherit the rules/actions. Maybe, there
> should be
>
> toolset.inherit metrowerks ;
>
> which would bring everything (rules + actions + flags)?
Sure, that could work.
However, I don't have any idea how to make it work. I don't know how
the actions get hooked up to targets anymore, and generators.jam
contains some (no offense, but) obscenely large functions that I'm
afraid to try analyzing.
-- David Abrahams dave_at_[hidden] * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution
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