|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-02-16 10:28:58
On Thursday 16 February 2006 18:19, Daniel Einspanjer wrote:
> "Vladimir Prus" <ghost_at_[hidden]> wrote in message
> news:200602141114.40477.ghost_at_cs.msu.su...
>
> > On Monday 13 February 2006 20:28, Daniel Einspanjer wrote:
> >> "Vladimir Prus" <ghost_at_[hidden]> wrote in message
> >> news:200602131305.32815.ghost_at_cs.msu.su...
> >
> > Then, you'd probably have this:
> >
> > local xml = [ virtual-target.select-by-type XML : $(sources) ] ;
> > local xsl = [ virtual-target.select-by-type XSLT : $(sources) ] ;
> > for local i1 in $(xml)
> > {
> > for local i2 in $(xsl)
> > {
> > # Create action/target as needed
> > }
> > }
>
> Could you point me at any existing generators that create action/target as
> needed? I would like to study this method since it is likely I might need
> to do something along those lines in the future.
The simplest way is to look at this:
http://article.gmane.org/gmane.comp.lib.boost.build/11638/
I give a simple example of generator and explain what it does. The simple rule
you should remember is that the number of command invocation is equal to the
number of created 'action' instances. Then, you just decide what sources
should be given to each action, and what targets are produced.
- Volodya
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