Re: Generator with specific types

Steven Watanabe via Boost-build <[email protected]> Mon, 26 Aug 2019 05:22:36 -0600
Newsgroups gmane.comp.lib.boost.build
Organization Providere Consulting, Inc.
Message-ID <[email protected]>
AMDG

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
an example.

In Christ,
Steven Watanabe
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build