Boost logo

Boost-Build :

From: timgift (timgift_at_[hidden])
Date: 2005-08-02 20:06:52


I have a c++ project which consists of a collection of 9 libraries and
4 executables. Each library is fairly small (they average around 20
files each), and the tools are typically one or two source files. I'm
currently using Perforce jam and find it very convenient to have the
complete project in a single Jamfile, which is only 300 or so lines
long. I do a fair amount of refactoring, moving files around, etc.,
and having a single Jamfile makes life a lot easier. The alternative
is 20+ Jamfiles, which seems a little overkill.

I've tried getting boost.build v2 to compile everything from a single
Jamfile, but using a single Jamfile project with multiple lib targets
is not practical because of numerous file name collisions (see
notes/relative_source_paths.txt).

A possible solution is to allow multiple projects in a Jamfile, but so
far that doesn't seem possible... does anybody know if this is
possible? I'd basically like to have a single Jamefile something like
this:

project util : source-location util ;
lib util : a.cpp b.cpp ;

project kernel : source-location kernel ;
lib kernel : a.cpp b.cpp c.cpp ;

project tool : source-location tool ;
exe tool : tool.cpp /util//util /kernel//kernel ;

Thanks!

Tim

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk