Subject: Re: [Boost-build] FW: Installing generated .pdb along with generated .exe
From: Ryan Gallagher (ryan.gallagher_at_[hidden])
Date: 2009-08-23 17:02:07
Michael Weber <michael.weber <at> kutano.com> writes:
> 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.
Just in case anyone else is searching for this answer, I also found
there was one more modification required in order to get pdb's to
copy from targets with modified names (such as
boost_date_time-vc90-mt-gd-1_39.pdb). Besides updating msvc.jam also
add the PDB type to the list of name-modified types in modifiers.jam
(see the __init__ rule of the name-modifier class).
This is because I purposely did not register PDB to be a LIB sub-type.
Without this change the install rule will look for the target file
with an unmodified name (e.g. boost_date_time.pdb) and thus fail for
those targets that modify their output filenames. HTH,
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