|
Boost-Build : |
From: Sohail Somani (s.somani_at_[hidden])
Date: 2006-06-28 17:23:34
> -----Original Message-----
> From: boost-build-bounces_at_[hidden]
> [mailto:boost-build-bounces_at_[hidden]] On Behalf Of Reece Dunn
> Sent: Wednesday, June 28, 2006 1:06 PM
> To: Boost.Build developer's and user's list
> Subject: Re: [Boost-build] Tool generating multiple files
>
> Sohail Somani wrote:
> > I have a tool that generates multiple cpp, hpp and other text files.
> > What does my action need to do? I think I need a generator
> with a run
> > method, but I'm not sure.
> >
> > Could someone give me an example?
>
> Take a look at the midl compiler support in msvc.jam or bison
> support in
> bison.jam.
Thank you, I had taken a look at bison.jam but did not notice the "CPP
HPP" part of it until 30 seconds ago. So basically my tool will need to
have CPP HPP TXT.
Something which I had forgotten to mention was that the output file
names are dependent on the contents of the file, so I need to actually
scan the file for certain patterns. I could not find an example of this.
Anyway the input file [AB.t] will contain:
Type A : BaseA;
Type B : BaseB;
And I'll generate A.(hpp|txt|cpp) and similarly for B. I want bjam to
know about these so that --clean will remove them and so that I can do:
lib a : AB.t ;
In a Jamfile.
TIA for all your help.
Sohail
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