Boost logo

Boost Users :

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


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-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net