Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-12-10 11:31:58


On Friday 10 December 2004 19:03, David Abrahams wrote:
> Vladimir Prus wrote:
> > I'd like to have directive like:
> >
> > global-build-dir /space/p2/build_dir ;
> >
> > which will causes all projects to be build under /space/p2/build_dir,
> > with paths like
> >
> > /space/p2/build_dir/home/ghost/Work/boost
> > /space/p2/build_dir/home/ghost/Work/boost_rc
> > /space/p2/build_dir/home/ghost/Work/nm_model
> >
> > Maybe, this will solve the "build from read only medium" issue too (if
> > global build dir can be specified from command line).
>
> Whoa there. I didn't realize you meant for this to be global for all
> users. How is it going to deduce the /home/ghost/Work part? I think
> it's enough to make people specify that part explicitly.

I mean that when you build a project with Jamroot at /home/ghost/Work/boost,
the build directory is

/space/p2/build_dir/home/ghost/Work/boost

(Simply global build dir path plus full path to Jamroot (after stripping
leading slash from Jamroot path).

And if your Jamroot is at /home/dave/boost, then it will be built to

/space/p2/build_dir/home/dave/boost

Of course, it might be possible to strip "/home/ghost".

- 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