|
Boost-Build : |
Subject: Re: [Boost-build] Custom generator that takes any kind of file as source
From: Samuel Debionne (samuel.debionne_at_[hidden])
Date: 2014-07-02 03:32:35
Hello Volodya,
Thank you for your help.
> if you declare a generator with the empty list of source type, it will
> accept anything.
I did not know that ! I have changed my generator registration to :
generators.register [ new embd-binary-generator embd.file-to-cpp true :
: CPP H ] ;
Now if I try to declare a target as :
obj foobar : foo.bar ;
I got the following error :
error: target { foo.bar. } has no type
That rises the following question : do all the file types have to be
registered (e.g. type.register BAR : bar ;) even if a generator is able
to handle the file and convert its source into a type that the next
generator can natively consume ?
Samuel
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