Boost logo

Boost-Build :

From: Denis N. Kononenko (denisn.kononenko_at_[hidden])
Date: 2006-11-27 07:13:12

25.11.06, Vladimir Prus<ghost_at_[hidden]> wrote:
> Ah, OK. I've put together an example of how one can write a custom generator
> class -- it's example/generator directory on CVS HEAD.

Thank you.

> You can adjust that example to our case -- just create as many or as few
> targets are needed, depending on features.
> Let me know if you have further questions.

Yes, I have one. :)
This example works fine if we already have a source of type GCI and no
conversion from another type is required. Imagine that we have a
source of type X and two generators: the first performs conversion
from X to GCI and the second -- from GCI to CPP. I have incomplete
notion how bjam composes a chain of spawned generators but I'm sure
that the generator from GCI to CPP will always fail because it has no
idea about sources of type X.
I have solved this problem by using the rule
generator.convert-to-consumable-types but I thought the easiest way to
write a custom generator is to override the rule
generator.generated-targets only. Am I on the right road? :)


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at