Boost logo

Boost-Build :

Subject: Re: [Boost-build] Dealing with action/rule sources
From: Roman Matsybora (matsic_at_[hidden])
Date: 2015-09-30 06:41:21


('binary' encoding is not supported, stored as-is) And how to setup VAR on target then inside this rule?

 
 --- Исходное сообщение ---
 ÐžÑ‚ кого: "Vladimir Prus" <vladimir.prus_at_[hidden]>
 Ð”ата: 29 сентября 2015, 22:21:12
  

> On 29-Sep-15 6:45 PM, Roman Matsybora wrote:
> > Yes if I write generator or use rule generate it cab be done.
> > But what if I use rule make?
>
> There are no very good was in that case. Possibly the best one would be
>
> import modules ;
>
> rule whatever ( targets * : sources * : property-set * )
> {
> # Grab raw source we care about
> local raw-source = $(sources[1]) ;
>
> local source = [ modules.peek virtual-target : .actual.$(raw-source) ] ;
>
> local path = [ $(source).path ] ;
> }
>
> But it's basically looking at implementation details for some modules. (And I did not
> test that code). generators and the 'generate' metatarget are really recommended way
> if you do anything non-trivial. Make is for really simple things.
>
> - Volodya
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
 
 


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