|
Boost-Build : |
From: Craig Rodrigues (rodrigc_at_[hidden])
Date: 2005-08-03 22:53:40
On Wed, Aug 03, 2005 at 09:23:59PM -0000, timgift wrote:
> Overriding the location-prefix on the library works great for some of
> the libraries, Thanks :) Still don't quite have a feeling for how the
> system ties together... Another related question, dealing with more
> sub-directories:
>
> I have something like this:
> +-root
> --+-util
> ----|-a.cc
> ----+-sub1
> ------|-a.cc
In your real environment, do you really have multiple source files
with the same name living in different directories? If you do,
then things get more complicated. However, if you have something like:
+-root
--+-util
----|-a.cc
----+-sub1
------|-b.cc
Then you can do:
(1) In root, put an empty Jamroot file (or can have other stuff you want)
(2) In the util directory, put a Jamfile which has:
project myproject : source-location . sub1 ;
lib util : a.cc b.cc ;
(3) Then go to the util directory, and type bjam
-- Craig Rodrigues rodrigc_at_[hidden]
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