Boost logo

Boost-Build :

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


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

lib shared :

lib server :


lib client :


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.


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