Boost logo

Boost-Build :

Subject: [Boost-build] [boost-build] share requirements between projects
From: Steve Lorimer (steve.lorimer_at_[hidden])
Date: 2014-11-05 19:35:40


Hi all

We have multiple repos, each of which has their own Jamroot

We share some code between repos, so for example in a project Jamroot we'll
have

use-project /common : ../common/src ;

which pulls in common/src/Jamroot

We have a site-config.jam which configures our gcc toolchain etc, but the
issue I'm having is specifying common requirements for our various projects
Note below we have a number of repeated requirements. Is there a way to
configure this in site-config.jam or somehow share the common parts?

*common/src/Jamroot:*

project common
: requirements
<include>.
<include>third_party
<link>static
<find-shared-library>pthread
;

*porject1/Jamroot:*

project proj1
: requirements
<include>.
<include>../common/src <include>../
<include>../common/src/third_party
<link>static
<find-shared-library>pthread

;

On a final note, and somewhat related, what is the best practice for
sharing code between repos / having multiple Jamroots etc?

TIA
Steve



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