diff options
author | Gerion Entrup <gerion.entrup@flump.de> | 2024-03-11 11:21:56 +0100 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2024-04-05 09:36:59 -0700 |
commit | 06bc8a8d37620506ec5d176577fdc9f6ae5f011b (patch) | |
tree | 35a4c860c6b33e2948a66fb0392f000d96301cc3 /mesonbuild/backend | |
parent | 30c38e2bd69b2bab74b6e76da1c626f3c9853613 (diff) | |
download | meson-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.py | 5 |
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 |