Boost logo

Boost-Build :

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


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: http://lists.boost.org/mailman/listinfo.cgi/boost-build

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.


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