Boost logo

Boost-Build :

Subject: Re: [Boost-build] Custom generator that takes any kind of file as source
From: Vladimir Prus (ghost_at_[hidden])
Date: 2014-07-01 12:05:59


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


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