Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-07-30 11:16:18


Ames, Andreas (Andreas) wrote:

> Hi,
>
> thanks Volodya, that actually gets me a step further.
>
> Unfortunately I'm still not there yet ;-), see below.
>
>> -----Original Message-----
>> From: boost-users-bounces_at_[hidden]
>> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of
>> Vladimir Prus
>> Sent: Monday, July 30, 2007 12:57 PM
>> Subject: Re: [Boost-users] [Boost.Build v2] Please help
>> updating my buildprocess from v1 (1.33.1) to v2 (1.34.1)
>>
>> Ames, Andreas (Andreas) wrote:
>>
>> > BOOST_LOCAL_STAGE_DIR ?= stage ;
>>
>> Is this an environment var? Please read:
>
> No, not an environment variable, it is set on the command line
> using '-s' option. Is this still supported in v2?

It's considered

>
>> No. In V1, top-level dir had to have Jamfile+Jamrules. In V2,
>> top-level dir
>> should have Jamroot.
>
> Ok, so I've replaced Jamfile+Jamrules with the following files:
>
> <boost-build.jam>
> boost-build ../../../boost/tools/build/v2 ;
> </boost-build.jam>
>
> <Jamroot>
> using msvc : 8.0 ;
> BOOST_LOCAL_STAGE_DIR ?= stage ;
>
> rule Pseudo ( target : libname : libtype : variant )
> {
> VARIANT = $(variant) ;
> NOTFILE $(target) ;
> DEPENDS $(target) :
> $(BOOST_LOCAL_STAGE_DIR)/$(libtype)/$(libname)/$(variant) ; stage
> $(BOOST_LOCAL_STAGE_DIR)/$(libtype)/$(libname)/$(variant)

Uh, oh. I did not even notice you're using those low-level tricks. I'd suggest using:

        stage $(target)
                : <sources>
                : <location>$(BOOST_LOCAL_STAGE_DIR)/$(libtype)/$(libname)/$(variant)
                  ...........

and removing NOTFILE and DEPENDS completely.

- Volodya


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net