Boost logo

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 : ;

I got the following error :

error: target { } 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 ?


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at