Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-08-17 00:53:56


On Tuesday 16 August 2005 18:19, Andrey Melnikov wrote:
> Vladimir Prus wrote:
> > On Tuesday 16 August 2005 00:08, David Abrahams wrote:
> >>Also, is it possible to set up a general build-dir in my user-config.jam?
> >
> > No, I don't think so. We talked about defining some rule in
> > user-config.jam that would compute build directories for all project
> > roots, but it was not implemented. As a workaround, you can poke
> > "--build-dir=whatever" to ARGV in your boost-build.jam. No, I don't think
> > that's nice.
>
> In VC IDE projects I use something like
> $(TEMP)vc++/$(SolutionName)$(ProjectName) for my intermediate folders.
>
> Is this rule going to implement basically the same thing?

I thought the rule will be passed the location of Jamroot and the name of
project defined there, and will return the build dir. Writing the rule like
this:

rule build-dir ( jamroot-location : project-name )
{
return $(TEMP)vc++/$(project-name) ;
}

will achieve similar effect.

- Volodya

-- 
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