aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend
diff options
context:
space:
mode:
authorGerion Entrup <gerion.entrup@flump.de>2024-03-11 11:21:56 +0100
committerDylan Baker <dylan@pnwbakers.com>2024-04-05 09:36:59 -0700
commit06bc8a8d37620506ec5d176577fdc9f6ae5f011b (patch)
tree35a4c860c6b33e2948a66fb0392f000d96301cc3 /mesonbuild/backend
parent30c38e2bd69b2bab74b6e76da1c626f3c9853613 (diff)
downloadmeson-06bc8a8d37620506ec5d176577fdc9f6ae5f011b.zip
meson-06bc8a8d37620506ec5d176577fdc9f6ae5f011b.tar.gz
meson-06bc8a8d37620506ec5d176577fdc9f6ae5f011b.tar.bz2
depends keyword argument: accept CustomTargetIndex
That holds for all of these meson function: run_target, generator and custom_target and additionally to the Windows and Gnome module.
Diffstat (limited to 'mesonbuild/backend')
-rw-r--r--mesonbuild/backend/vs2010backend.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py
index a2ece96..20ad266 100644
--- a/mesonbuild/backend/vs2010backend.py
+++ b/mesonbuild/backend/vs2010backend.py
@@ -324,9 +324,12 @@ class Vs2010Backend(backends.Backend):
result[o.target.get_id()] = o.target
return result.items()
- def get_target_deps(self, t: T.Dict[T.Any, build.Target], recursive=False):
+ def get_target_deps(self, t: T.Dict[T.Any, T.Union[build.Target, build.CustomTargetIndex]], recursive=False):
all_deps: T.Dict[str, build.Target] = {}
for target in t.values():
+ if isinstance(target, build.CustomTargetIndex):
+ # just transfer it to the CustomTarget code
+ target = target.target
if isinstance(target, build.CustomTarget):
for d in target.get_target_dependencies():
# FIXME: this isn't strictly correct, as the target doesn't