Boost logo

Boost-Build :

From: Phillip Seaver (phil_at_[hidden])
Date: 2006-01-11 09:12:37


I'd like to be able to automatically add projects when their directories
exist. The reason is that we'd like to be able to not require having
our entire source tree in order to build any project. What I tried is:

local sub_dirs = [ sequence.transform path.parent : [ path.glob * :
Jamfile ] ] ;
for local d in $(sub_dirs) {
    use-project /$(d) : $(d) ;
}

If I've got a tree like:
    libs
       a
       b

and the Jamfile in "a" has:
    project x ;
    lib y : y.c ;

I put the above code (with "sub_dirs" in it) into the Jamfile in "libs"
and tried "exe z : z.c /a//y" in "b" but it said that it couldn't find
"/a//y".

What am I doing wrong? Is there a better way to do it?

Thanks,

Phillip Seaver


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