Boost logo

Boost-Build :

Subject: Re: [Boost-build] custom generator problems
From: Michael Caisse (boost_at_[hidden])
Date: 2009-03-16 12:45:17


Alexander Sack wrote:
>
> One more note, I *think* one could glob over the target directory
> where your generated files are and then register new
> virtual-file-targets so they become managed files?? This is very
> similar to the PYTHON Example in the doc on generators (what I did for
> my protobuf example). I'm going to have look at this later today.
>
> Btw do you REALLY not know the name of them at all or could you
> actually right rules like obj <targetname> : <type that generates it>
> style lines then have your binary depend on them potentially? (I'm
> just asking)
>
Thank you for the hints. I reviewed and played with this some more
last night and hopefully will get a chance to devote more time
this week.

I actually don't know the names in advance. The code generator takes
an xml (xmi) file as input that describes a UML model. The output of
the generator is a bunch of files based on the UML model. I wrote
the code generator so I could determine what the file names are
going to be based on looking at the xml file, but I think this
is no different than glob'n over the target directory at the end.

If you have any other insight or direction I should look I would
be grateful. I started looking at all of the build/*.jam files
last night. Something that I have been trying to avoid up to now.

Michael
 

-- 
----------------------------------
Michael Caisse
Object Modeling Designs
www.objectmodelingdesigns.com

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