Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-11-25 13:51:10

On Monday 20 November 2006 21:50, Denis N. Kononenko wrote:
> 2006/11/20, Vladimir Prus <ghost_at_[hidden]>:
> > On Saturday 18 November 2006 23:25, Denis N. Kononenko wrote:
> > > Would you enlighten me on another question? Is it possible to write a
> > > custom generator with variable number of output files depending on
> > > features? Currently I use a long list of all possible generated types
> > > and touch files that may not be generated.
> >
> > Yes, it's possible but you have to define a new generator class. If you
> > tell me more details about your generator, I can create a quick-n-dirty
> > and not working example, add it to examples directory and then you can
> > make it work for your specific use case.
> I can send you full version of my gsoap.jam. But I'm afraid that it's
> too complicated module in order to be an example. :)

Ah, OK. I've put together an example of how one can write a custom generator
class -- it's example/generator directory on CVS HEAD.

> The problem lay in the three usage scenarios of 3rd party tool. The
> tool can generate C++ proxies either for client or server
> implementation depending on command line options. E.g. if we specify
> option '-C' the tool will generate a %Client.cpp file, in case of
> option '-S' a file %Server.cpp will be generated. For both
> configurations the tool generates common files, these are %ó.cpp, %H.h
> and %Stub.h. If we don't specify any of above options then all files
> will be generated.

You can adjust that example to our case -- just create as many or as few
targets are needed, depending on features.

Let me know if you have further questions.

- Volodya

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