diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-05-09 17:11:45 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-09-11 10:10:47 +0530 |
commit | 0840a908f235ac3a4df271e2cd262cad0cfc5cbd (patch) | |
tree | bc222b32b8232e714ce56fcb714c05a88caada7d /mesonbuild/backend/ninjabackend.py | |
parent | 4228a6dab6c591298b0895ce6a1ee034ba874581 (diff) | |
download | meson-0840a908f235ac3a4df271e2cd262cad0cfc5cbd.zip meson-0840a908f235ac3a4df271e2cd262cad0cfc5cbd.tar.gz meson-0840a908f235ac3a4df271e2cd262cad0cfc5cbd.tar.bz2 |
ninjabackend: Add support for installing .pdb files
.pdb files are files created by MSVC which have debug symbols. These are
created when /ZI or /Zi is passed to the compiler and /DEBUG to the
linker.
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 28667b7..e00fe2f 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -523,6 +523,13 @@ int dummy; else: # XXX: Add BuildTarget-specific install dir cases here outdir = self.environment.get_libdir() + if isinstance(t, build.SharedLibrary) or isinstance(t, build.Executable): + if t.get_debug_filename(): + # Install the debug symbols file in the same place as + # the target itself. It has no aliases, should not be + # stripped, and doesn't have an install_rpath + i = [self.get_target_debug_filename(t), outdir, [], False, ''] + d.targets.append(i) i = [self.get_target_filename(t), outdir, t.get_aliaslist(),\ should_strip, t.install_rpath] d.targets.append(i) |