$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
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