[prev in list] [next in list] [prev in thread] [next in thread]
List: boost-build
Subject: Re: [Boost-build] Custom generator that takes any kind of file as source
From: Vladimir Prus <ghost () cs ! msu ! su>
Date: 2014-07-01 16:05:59
Message-ID: 53B2DC67.2010809 () cs ! msu ! su
[Download RAW message or body]
On 07/01/2014 05:37 PM, Samuel Debionne wrote:
> Hello all,
> Is it possible to write a custom generator that would take any kind of
> file and generate, say a single source file ?
> So far I have a custom generator working with (a lot of) registered
> types. Note that all this generation work happens at leaves of the
> dependency tree.
Hi Samuel,
if you declare a generator with the empty list of source type, it will accept anything.
As for leaves, typically top-level generators, such as for EXE type, are composing - they
can accept multiple sources of any types, and they work by trying to convert each source
into a type they natively can consume - e.g. into OBJ. If you generator can do this
for a specific source, directly or indirectly, it should be invoked.
HTH,
Volodya
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic