Boost logo

Boost-Build :

Subject: Re: [Boost-build] install last build executable
From: Nogradi, Chris (Chris.Nogradi_at_[hidden])
Date: 2012-04-27 08:08:05

I am not sure if what you are asking is possible since you are asking for the two final targets to be the same which is nonsensical. I will have to defer to the experts. Can't you just do two commands:

bjam debug
bjam release


-----Original Message-----
From: boost-build-bounces_at_[hidden] [mailto:boost-build-bounces_at_[hidden]] On Behalf Of George Georgiev
Sent: Thursday, April 26, 2012 5:43 PM
To: Boost.Build developer's and user's list
Subject: Re: [Boost-build] install last build executable

Hi Chris,

I do not want to rename it. I want the last build application
executable to be in this exact location, so when the java build
process is executed it to pick it from there. In dev environment
whatever developers is building right now needs to go to the same
location. I need this to ensure that all the tests or debug that I
will do with the second layer will be acting over last build from the
first layer.

What I need is in case I have more than one build configuration to
skip all but one so I to avoid the collision.


On Thu, Apr 26, 2012 at 2:19 PM, Nogradi, Chris
<Chris.Nogradi_at_[hidden]> wrote:
> You could install the debug version to another dir or rename the debug version to another name.
> Use the tag rule on the application target to do the rename:
> <tag>@rename
> rule rename ( name : type ? : property-set )
> {
>    switch [ $(property-set).get <variant> ]
>    {
>        case debug : name = $(name)_dbg ;
>    }
>    return [ virtual-target.add-prefix-and-suffix $(name) : $(type) : $(property-set) ] ;
> }
> -----Original Message-----
> From: boost-build-bounces_at_[hidden] [mailto:boost-build-bounces_at_[hidden]] On Behalf Of George Georgiev
> Sent: Thursday, April 26, 2012 4:03 PM
> To: boost-build_at_[hidden]
> Subject: [Boost-build] install last build executable
> Hi,
> I have two layer application. The second one is java and it forks the
> first one. The java build process expects the executable to in a
> particular location.
> I use to do that
> install dev_output : application
>  :
>    <location>dev_output
>  ;
> Unfortunately when I build more than one application at the same time
> say debug and release jam complains for "Duplicate name of actual
> target". Which is obviously correct, but what I need is just whatever
> of the binaries to take precedence I do not care which one if they
> both are going to be the latest version.
> Ideas how I can do this?
> Thanks,
> George
> _______________________________________________
> Unsubscribe & other changes:
> This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.
> Thank you for your cooperation.
> _______________________________________________
> Unsubscribe & other changes:
Unsubscribe & other changes:

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at