Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-03-21 03:09:24

On Tuesday 21 March 2006 10:58, Gennadiy Rozental wrote:
> >> What <link>static means?
> >
> > It means that all tests there will statically link to Boost.Test
> > libraries. It
> > was this way in V1 when I was porting that file, and so I made it this
> > way in
> > V2.
> 1. Will I be able to build dynamic library using Jamfile.v2?

Yes, you can go to libs/test/build and run

   bjam --v2 link=shared

> 2. Do I need Jamfile.v2 in examples directory?

Probably so.

> 3. Some examples using dynamic library

This should not be a problem. If you add ../build/$(lib-name) to sources,
you'll link to shared library, If you add ./build/$(lib-name)/<link>static
to sources, you'll link to static library.

> 4. What commands (consider I am in oibst/test/build) I need to build:
> a) only static libraries

bjam --v2 link=static

> b) only dynamic libraries

bjam --v2 link=shared

> c) only debug libraries in combination with one of above

By default, V2 builds only debug library. To build release with one of the
above you can use:

  bjam --v2 release link=shared
  bjam --v2 release link=static

> P.S. error_handling_test still failing for vc-8_0. Either something wrong
> with tester configuration or with async exceptions support in BBv2

Well, "vc-8_0" is V1 toolset name, and I don't know about any 8.0 results with
V2 yet. Victor is running 8.0 tests with V2 right now and hopefully the
results will be available in half-a-day. I'll take a look then.

- Volodya

Vladimir Prus
Boost.Build V2:

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