aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-11-02 14:20:22 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2018-11-06 13:17:21 +0000
commite64a9c98307a62a830aaa209612c94a7bdff9833 (patch)
tree4dcc27fa2d45d71125e330b31131e9039879b3b3 /mesonbuild
parentb17f6dae541ec9744e82c2cb6f1c31c9a76b45f5 (diff)
downloadmeson-e64a9c98307a62a830aaa209612c94a7bdff9833.zip
meson-e64a9c98307a62a830aaa209612c94a7bdff9833.tar.gz
meson-e64a9c98307a62a830aaa209612c94a7bdff9833.tar.bz2
Generate import lib even if both name_suffix and name_prefix are used
It's a (presumably unintentional) quirk of the current implementation of SharedLibrary.determine_filenames() that if both name_suffix and name_prefix are set, an import library isn't generated. Adjust test 'common/25 library versions': Make the library have exports, so an implib is generated with MSVC. Add implib to set of files expected to be installed Adjust test 'common/122 shared module': Add libnosyms implib to set of files expected to be installed, except for MSVC, where none is generated as it has no exports
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/build.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 2b6d8e9..687ab88 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -1547,13 +1547,9 @@ class SharedLibrary(BuildTarget):
prefix = ''
suffix = ''
self.filename_tpl = self.basic_filename_tpl
- # If the user already provided the prefix and suffix to us, we don't
- # need to do any filename suffix/prefix detection.
# NOTE: manual prefix/suffix override is currently only tested for C/C++
- if self.prefix is not None and self.suffix is not None:
- pass
# C# and Mono
- elif 'cs' in self.compilers:
+ if 'cs' in self.compilers:
prefix = ''
suffix = 'dll'
self.filename_tpl = '{0.prefix}{0.name}.{0.suffix}'