From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2019-08-26 11:22:36
On 8/21/19 8:39 PM, Felipe Magno de Almeida via Boost-build wrote:
> I have a generator which generates from xml to header C++ files. But,
> I'd like to avoid creating a generic XML -> HPP generator, because
> that is way too broad and could conflict with other generators.
> So, I created a type.register WAYLAND_XML : : XML ; type and a
> generator of the type:
> generators.register-standard wayland-generator.generate : WAYLAND_XML : HPP ;
> However, I don't know how to say, when instancing a typed-target,
> explicitly which types are my sources.
Use the cast rule (only works for sources, not generated files).
> Also, how do I get the path to a built executable so I can use it in
> the generation action?
Pass it along as a dependency property. See quickbook for
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