aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-08-18 20:52:22 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-08-18 20:53:34 +0530
commit88037c43858c600d5004ede1ab01378cb110c8af (patch)
treef229113686f686a1c02ee6a98cf870ce266af104
parent58359c8fac09ecd06af1d389bfad8cd65e831e2a (diff)
downloadmeson-88037c43858c600d5004ede1ab01378cb110c8af.zip
meson-88037c43858c600d5004ede1ab01378cb110c8af.tar.gz
meson-88037c43858c600d5004ede1ab01378cb110c8af.tar.bz2
shared_library: Add vs_module_defs to link_depends
With this, if the module definitions file is edited, the shared library and all reverse-dependencies will be re-linked. Fixes #643
-rw-r--r--mesonbuild/build.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 61dace7..0922dfb 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -876,6 +876,8 @@ class SharedLibrary(BuildTarget):
self.vs_module_defs = File.from_absolute_file(path)
else:
self.vs_module_defs = File.from_source_file(environment.source_dir, self.subdir, path)
+ # link_depends can be an absolute path or relative to self.subdir
+ self.link_depends.append(path)
def check_unknown_kwargs(self, kwargs):
self.check_unknown_kwargs_int(kwargs, known_shlib_kwargs)