Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-02-11 10:08:13


On Thursday 10 February 2005 22:20, David Abrahams wrote:
> I need to make a generator that will generate a given target from any
> (unrestricted) source type at all. I'm not sure what to pass to
> generators.register-standard in order to do that.

I think it's best to pass nothing, and override the 'run' method to
immediately call 'construct-result' on sources.

> Also I notice that generators.register-standard requires at least one
> source type, while class generator requires zero or more. Is that
> really okay? What does it mean to build a generator for no source
> types?

Generator can produce targets out o thin air. For example, you can have a
generator which produces a file by checking it out from CVS -- and there will
be no sources.

I think register-standard's signature must be fixed, will do now.

- 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