Boost logo

Boost-Build :

Subject: Re: [Boost-build] FW: Installing generated .pdb along with generated .exe
From: Michael Weber (michael.weber_at_[hidden])
Date: 2009-07-17 19:34:07


Lin -- to get this behavour, I defined a PDB file type and then added it to
the list of generated artifacts in the lines that register the linker and
archiver in msvc.jam. By declaring it this way, it automatically gets copied
with the exe by the stage / install rules.
One drawback is that if you build with <debug-store>object then the stage
rules fails because no pdb is generated. To get around this, I used a
$(TOUCH_FILE) hack in the link action to generate a dummy file.

regards
Michael

On Sat, Jul 11, 2009 at 3:01 AM, Lin Luo <chris.luolin_at_[hidden]> wrote:

>
>
>
>
> *From:* Lin Luo [mailto:chris.luolin_at_[hidden]]
> *Posted At:* Tuesday, July 07, 2009 12:29 PM
> *Posted To:* boost
> *Conversation:* Installing generated .pdb along with generated .exe
> *Subject:* Installing generated .pdb along with generated .exe
>
>
>
> Hi there,
>
>
>
> I did a brief search and didn’t seem to find an exact answer to my
> question:
>
>
>
> What is the recommended way to let the install rule to install generated
> .pdb file along with the generated .exe file to the same destination
> directory for later packaging?
>
>
>
> Say I have the directory structure like below: (the output directories are
> using boost build default settings)
>
>
>
> +ProjectRoot
>
> +bin
>
> -MyApplication.exe
>
> +include
>
> +src
>
> +bin
>
> +profile
>
>
> +link-static
>
>
> +thread-multi
>
>
> -MyApplication.exe
>
>
> -MyApplication.pdb
>
>
>
> By using the install rule, I am able to install the executable (only) to
> the ‘bin’ directory right below my ProjectRoot for easy packaging without
> worrying about all the boost build default output directory settings for
> different targets (lin-static/thread-multi/etc.), but how would I normally
> install the generated .pdb file together with the .exe file to the top level
> bin directory without resorting to hard code all the intermediate boost
> build directories?
>
>
>
> The Boost Build documentation for <install-type> and <install-dependencies>
> don’t seem to be the proper choice, or am I missing anything?
>
>
>
> Thanks!
>
>
>
> Lin
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
>



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