Boost logo

Boost-Build :

From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2006-07-03 18:24:16


"Roland Schwarz" <roland.schwarz_at_[hidden]> skrev i meddelandet
news:44A9830F.7060603_at_chello.at...
> Johan Nilsson wrote:
>> Have you tried using conditional requirements (at the bottom of
>> http://boost.sourceforge.net/boost-build2/doc/html/bbv2/advanced/targets.html)?
>> You'll have your own method called with the current properties, which
>> could
>> then be used to form the decorated target names. Just an idea.
>
> I am afraid I don't understand how your suggestion relates to my question.
>
> Could you please be a little more explicit?

Sorry, I was just throwing out the idea (don't even know if a indirect
conditional requirement solution is viable, I only wanted to point you in
that direction). This attempt might not be much better as it's right past
midnight here now and I don't have Boost.Build available from this machine:

exe myexe
 : # requirements
main.cpp
<conditional>@decorated-boost-libs
;

constant boost-libs : regex thread ;
constant boost-version : 1.35 ;

rule decorated-boost-libs ( properties * )
{
    local decorated-libs ;
    local toolset = [ regex.find <toolset>(\S+) : properties ] ; # Surely
invalid statement, but you'll get the idea
    for local l in $(boost-libs)
    {
        # ... decorate lib name and add to decorated-libs as
<find-library>"decorated_name"
    }

    return $(decorated-libs) ;
}

// Johan


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