From 88037c43858c600d5004ede1ab01378cb110c8af Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 18 Aug 2016 20:52:22 +0530 Subject: 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 --- mesonbuild/build.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.1