From a161873948ec328848f9eec816d99cc52cd74631 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Wed, 15 Sep 2021 03:04:21 -0700 Subject: backend/vs: process link dependencies. Partially-Fixes: #1799 --- mesonbuild/backend/vs2010backend.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mesonbuild/backend/vs2010backend.py') diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index faeefbf..4cf6a5f 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/mesonbuild/backend/vs2010backend.py @@ -280,6 +280,16 @@ class Vs2010Backend(backends.Backend): all_deps[ldep.get_id()] = ldep.target else: all_deps[ldep.get_id()] = ldep + + for ldep in target.link_depends: + if isinstance(ldep, build.CustomTargetIndex): + all_deps[ldep.get_id()] = ldep.target + elif isinstance(ldep, File): + # Already built, no target references needed + pass + else: + all_deps[ldep.get_id()] = ldep + for obj_id, objdep in self.get_obj_target_deps(target.objects): all_deps[obj_id] = objdep else: -- cgit v1.1