Subject: [Boost-build] multiple generated targets from a single source file
From: George Georgiev (george.georgiev.sf_at_[hidden])
Date: 2012-04-01 16:13:27


Hi,

I am tying to resolve something that looks a corner case for the Boost
Build system.

The end goal I want to accomplish is I to be able to use more than one
generation process for the same input file that will result in
different files.

For example if I have foo.compil I can use it to create foo.cpp and
foo.h, but also I can use the same file to create foo-proxy.h and
foo-proxy.cpp or foo-adapter.h and foo-adapter.cpp. Note the number of
output files needs to be flexible and it needs to be controlled from
the jamfile. For example I should be able to do something similar to
this:

lib shared :
    <compil-generator>impl:foo.compil
    ;

lib server :
    <compil-generator>adapter:foo.compil

    shared
    ;

lib client :
    <compil-generator>proxy:foo.compil

    shared
    ;

What will be the right way to go here - generator that accept
arguments, multiple generators for single extension or something else.
If you can point me to example for something similar already done it
will be perfect.

Thanks,
George