|
Boost-Build : |
From: Ilya Sokolov (fal_delivery_at_[hidden])
Date: 2008-07-01 10:06:59
Vladimir Prus wrote:
> On Tuesday 01 July 2008 10:35:49 Ilya Sokolov wrote:
>> \quote
>> It should be possible to use type of main target inside conditonal
>> requirements, like:
>> <main-target-type>PYTHON_EXTENSION:<library>/whatever
>> We already have <main-target-type>, but it's added *after* conditional
>> requirements are processed.
>> \end
>
> I think we can switch to adding this feature much earlier. There's issue
> with type inheritance. If you have a check for LIB type, and the actual
> type is SHARED_LIB, should condition involving LIB work? I think so,
> which means we get to add <main-target-base-type> feature for the specific
> type of target, and for the base types as well.
Agreed.
> Maybe, we can simplify the spelling, though:
>
> - Add <type> features for the type and all bases thereof
> - Add <specific-type> for the exact type of the target
Sounds good to me.
> This naming assumes that most of the type, we want derived types to
> work as-if base types -- which might be true or false, I don't actually
> know.
I don't know also, but in case we don't want to, we should not use the
words 'base' and 'derived' ;-)
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