Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-07-04 08:02:41


On Tuesday 04 July 2006 02:24, Johan Nilsson wrote:
> "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) ;
> }

FWIW, I think this approach should work. Roland, if you don't have the time to
implement it now, can you please add a feature request to the issue tracker?

Thanks,
Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2

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