diff options
author | Benjamin Redelings <benjamin.redelings@gmail.com> | 2018-02-07 22:01:54 -0500 |
---|---|---|
committer | Benjamin Redelings <benjamin.redelings@gmail.com> | 2018-02-07 22:03:02 -0500 |
commit | f62a8aa41308c48c68bedbd108bbf64708e04909 (patch) | |
tree | 43c5f66182ea77d71102bd3d33bc9cb4fa9ae0da | |
parent | c54af27cd16351c627623180bd7b999b42241447 (diff) | |
download | meson-f62a8aa41308c48c68bedbd108bbf64708e04909.zip meson-f62a8aa41308c48c68bedbd108bbf64708e04909.tar.gz meson-f62a8aa41308c48c68bedbd108bbf64708e04909.tar.bz2 |
Remove old code and debug messages since abi tags now work.
-rw-r--r-- | mesonbuild/dependencies/misc.py | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py index 1e59f14..0b26e65 100644 --- a/mesonbuild/dependencies/misc.py +++ b/mesonbuild/dependencies/misc.py @@ -375,15 +375,8 @@ class BoostDependency(ExternalDependency): return for name in self.need_static_link: - libname = "lib{}".format(name) + '-' + compiler - if self.is_multithreading: - libname = libname + '-mt' - if self.is_debug: - libname = libname + '-gd' - libname = libname + "-{}.lib".format(self.version.replace('.', '_')) - mlog.log("original libname: '{}'".format(libname)) + # FIXME - why are we only looking for *.lib? Mingw provides *.dll.a and *.a libname = 'lib' + name + self.abi_tag() + '.lib' - mlog.log("abi-tag libname: '{}'".format(libname)) if os.path.isfile(os.path.join(self.libdir, libname)): self.lib_modules[self.modname_from_filename(libname)] = [libname] else: @@ -394,20 +387,14 @@ class BoostDependency(ExternalDependency): # globber1 applies to a layout=system installation # globber2 applies to a layout=versioned installation globber1 = 'libboost_*' if self.static else 'boost_*' - globber2 = globber1 + '-' + compiler - if self.is_multithreading: - globber2 = globber2 + '-mt' - if self.is_debug: - globber2 = globber2 + '-gd' - globber2 = globber2 + '-{}'.format(self.version.replace('.', '_')) - mlog.log("original globber2: '{}'".format(globber2)) globber2 = globber1 + self.abi_tag() - mlog.log("abi-tag globber2: '{}'".format(globber2)) + # FIXME - why are we only looking for *.lib? Mingw provides *.dll.a and *.a globber2_matches = glob.glob(os.path.join(self.libdir, globber2 + '.lib')) for entry in globber2_matches: fname = os.path.basename(entry) self.lib_modules[self.modname_from_filename(fname)] = [fname] if len(globber2_matches) == 0: + # FIXME - why are we only looking for *.lib? Mingw provides *.dll.a and *.a for entry in glob.glob(os.path.join(self.libdir, globber1 + '.lib')): if self.static: fname = os.path.basename(entry) |