Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2003-06-23 06:52:20


The following message is a courtesy copy of an article
that has been posted to gmane.comp.lib.boost.user as well.

Hi Jonathan,

It's probably better to post your Boost.Build questions on the
jamboost list (cc:'d here).

Jonathan de Halleux <dehalleux_at_[hidden]> writes:

> Hy all,
>
> I want to use bjam as build tool for my application. Therefore I have some
> specific questions about jam and bjam:
>
> 1) Suppose I want to compile all .cpp files in a particular directory, how
> do I tell bjam to do it ?

There's a built-in rule called GLOB which can, well, glob. Putting

[ GLOB $(directory) : *.cpp ]

in your list of sources should work.

> Here are three question closely related:
> 2) Is there a way to modify the output tree hierarchy created by
> bjam ?

You can set ALL_LOCATE_TARGET to change the root. Otherwise, no.

> 3) Is there a way to modify the output filename format. For example,
> bjam adds a "lib" to the lib projects. Is this customizable ?

Rene? I think you're the one to address this...

> 4) Is it possible to tell bjam to compile projects and "centralize"
> binaries and lib in one single directory ?

You can use the 'stage' rule. See
http://www.boost.org/tools/build/build_system.htm#stage_targets.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
 

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