|
Boost-Build : |
Subject: Re: [Boost-build] staging subprojects
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2009-10-02 02:48:40
Jim Gallagher wrote:
> Johan,
>
> Sorry, took some short cuts to assemble a quick reply, and made a
> mess.
>
> OK, a stripped down project:
I can see the same problem, and stripped down the project even further to:
=============================
Jamroot:
import os ;
import feature ;
import type ;
path-constant TOP : . ;
project TEST ;
# find all the jam subprojects
JamProjects =
[ MATCH (.*)/Jamfile : [ glob-tree Jamfile ] ]
;
for local proj in $(JamProjects)
{
build-project $(proj) ;
}
alias sub-stages : $(JamProjects)//stage ;
install stage
:
sub-stages
;
===========================
sub/Jamfile:
lib a :
a.c
;
lib b :
b.c
;
lib c :
c.c
;
install stage-client
: a c
: <location>$(TOP)/stage/client
;
install stage-server
: b c
: <location>$(TOP)/stage/server
;
explicit stage stage-client stage-server ;
alias stage : stage-client stage-server ;
==================================
Judging from the output when running e.g. "bjam -q debug" message it seems
like the "<location>" in the subprojects isn't being respected/detected; it
looks like c.dll is attempted to get installed into "$(TOP)/stage" from both
of the sub-targets. I'll take another look at it when I have some spare
time.
/ Johan
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