Subject: Re: [Boost-build] Dealing with action/rule sources
From: Roman Matsybora (matsic_at_[hidden])
Date: 2015-09-30 06:41:21
--- ÐÑÑ Ð¾Ð´Ð½Ð¾Ðµ ÑÐ¾Ð¾Ð±ÑÐµÐ½Ð¸Ðµ ---
ÐÑ ÐºÐ¾Ð³Ð¾: "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) ;
> 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