Boost logo

Boost-Build :

From: Johannes Brunen (JBrunen_at_[hidden])
Date: 2004-11-09 05:15:48


Hi,

I have some questions about the proper configuration of my jam files using BBv2.

Let me first sketch my build tree.

root
big-tree
A
B
C

another-big-tree
a
a1
src
inc
a2
src
inc

b
b1
src
inc

b2
src
inc

Questions:
1. In order to build a1,a2,b1,... I always need include pathes to A,B,C from big-tree. However, I do not have to build big-tree's A,B,C.
What is the appropriate (most convenient) method to resolve the dependencies? What I'm trying to avoid is to write each include
path into the requirements of the root's project declaration.
Is it possible and advisable to do the following?
root/big-tree/jamfile:
project big-tree : usage-requirements <include>./A <include>./B <include>./C ;

root/jamfile:
project root ;
build-project big-tree/ ;
build-project another-big-tree/a/a1 ;
build-project another-big-tree/a/a2 ;
build-project another-big-tree/b/b1 ;
build-project another-big-tree/b/b2 ;

root/another-big-tree/a/a1/jamfile:
use-project /big-tree : ../../../big-tree ;
project a1
: source-location src
: usage-requirements <include>./inc ;
lib a1 : a1.cxx /big-tree : <include>inc ;

2. Generally, is it possible to write the use-project statements into the root jamfile? Otherwise I have to write them into each subproject's jamfile.
Can I create a usage-requirment for a1 and use it in a2,b1,b2,... and only write it once?
I have the situation that a2 depends on a1; b1 depends on a1,a2; b2 depends on a1,a2,b1; ... I'm looking for the simplest (best) way to express
such a configuration.

3. What is the proper way to build all projects (a1,a2,b1,b2,...) with the microsoft VC++ Zi flag? I tried the following:
root/another-big-tree/a/a1/jamfile:
project a1
: requirements <link>static <variant>debug:<debug-store>database
: source-location src
: usage-requirements <include>./inc ;

Sorry for boring but the first stebs are always the hardest.

With best regards

Johannes

____________
Virus checked by G DATA AntiVirusKit
Version: AVK 15.0.921 from 09.11.2004
Virus news: www.antiviruslab.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