From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-07-04 09:30:12
On Friday 01 July 2005 20:10, Andrey Melnikov wrote:
> I used to have "output" and "intermediate" directories (in terms of
> msvc) for all projects in a solution grouped together (see my folder
> layout below).
> How can I have similar folder layout with boost? I don't want boost to
> puts binaries inside of src/ like it does now.
You can use 'build-dir' attribute on top-level Jamfile:
project yours : build-dir "build" ;
OTOH, it's not currently possible to use the "plain" target dir structure, or
to separate .obj and .exe targets.
The first issue can be solved by introducing "build-dir" rule that will be
called in context of Jamfile to determine build dir for that project. Writing
your own custom "build-dir" rule in top-level Jamfile will allow to use any
build tree layout.
Separating .obj and .exe targets is harder. Basically, I never though about
it, so have no idea what it will take. I need this to move around in my head
for a while, or if you have any suggestions -- I'm all ears.
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build V2: http://boost.org/boost-build2
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