Factor out extra linker search dirs into new function.

0.44
Benjamin Redelings 7 years ago committed by Nirbheek Chauhan
parent 48e32f8a4b
commit 4a79fe8d93
  1. 14
      mesonbuild/dependencies/misc.py

@ -390,14 +390,20 @@ class BoostDependency(ExternalDependency):
args += self.lib_modules['boost_' + lib]
return args
def extra_lib_dirs(self):
dirs = []
if self.boost_root:
dirs= [ os.path.join(self.boost_root, 'lib')]
elif self.libdir:
dirs = [ self.libdir ]
return dirs
def get_link_args(self):
if mesonlib.is_windows():
return self.get_win_link_args()
args = []
if self.boost_root:
args.append('-L' + os.path.join(self.boost_root, 'lib'))
elif self.libdir:
args.append('-L' + self.libdir)
for dir in self.extra_lib_dirs():
args += ['-L' + dir]
for lib in self.requested_modules:
args += self.lib_modules['boost_' + lib]
return args

Loading…
Cancel
Save