Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-10-04 15:43:05


On Sunday 01 July 2007 15:17:57 Avery Fay wrote:
> Hi,

Hi,
late reply but anyway:

>
> I'm trying to replace my current build system with Boost.build. Very simply,
> my directory structure looks like this:
>
> /Jamroot
> /src
> /src/Jamfile
> /src/project1
> /src/project1/Jamfile
> /src/project1/*.cpp
> /src/project2
> /src/project2/Jamfile
> /src/project2/*.cpp
>
> Now, project1 and project2 share some external libraries. So, according to
> the manual I should add them to site-config.jam like so:
>
> import project ;
> project.initialize $(__name__) ;

Those two lines are not necessary in Milestone 12.

> project site-config ;
> lib whatever : : <name>whatever : : <include>/usr/local/include/whatever ;
>
> I put this site-config.jam in the same directory as Jamroot.

This is wrong. Please see the docs for the table of where site-config.jam
will be found.

> I also tried using a path-constant to refer to the top level directory. So,
> in Jamroot I have:
>
> path-constant TOP : . ;
>
> and in /src/project1/Jamfile:
>
> exe project1 : project1.cpp TOP/site-config//whatever ;

Also note that to access variables, you have to use $(TOP), not TOP.

- Volodya


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