From: Chris Hoeppler (hoeppler_at_[hidden])
Date: 2006-02-02 03:58:06
> > Assume, I have some source files a.src and b.src. Invoking a converter with
> > all of the source files as input (i.e. "my_converter --flags
> > -doutput_directory a.src b.src") generates header and C-files a.h, a.c, b.h
> > and b.c in output_directory. From these an exe is built.
> Is there any reason why running your tool once for each .src file is not
Yes, there is. The tool I have to use needs to be passed all of the
relevant .src files in one go to be able to resolve cross-references w/in
the .src files.
> If that's not feasible, you can create your own target type, say
> "MY_CONVERTED_CPP", derived from CPP. Then you can define a custom generator
> for your type, and:
> - mark the generator as 'composing'
> - make the generator produce a pair of target for each source
What's the pair? The h- and c-Files?
> Then, Jamfile will look like:
> lib mylib : src.cpp ;
> exe myprog : my_processed mylib ;
> my_converted_cpp my_processes : a.src b.src ;
That looks good. I'll try to implement what you've sketched above.
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