From: John Reid (j.reid_at_[hidden])
Date: 2007-02-26 05:25:22
I guess boost.build just isn't set up to do this sort of thing then.
John Reid wrote:
> Suppose I have a tool that compiles files of type .g into .cpp .hpp and
> .txt files. The names of these generated files can not be determined
> from the filename of the source .g file.
> I can register the .g type and create a rule and an action to run the
> tool. I am having problems using custom generators to tell boost.build
> which files the tool will generate.
> I've looked at the documentation:
> and I figured the quickest and easiest way to do this is to define
> features that are set on each .g source file and then inspect them in
> the generated-targets rule of the custom generator. Does this sound
> Given the above I've struggled to work out how to return appropriate
> values from the custom generator rule. The documentation does not seem
> to cover this at all. Could someone provide me with example code to
> extract a filename from a feature and build a suitable return value for
> the generated-targets rule from it?
> 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