aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-01-06 14:53:31 -0800
committerEli Schwartz <eschwartz93@gmail.com>2022-01-18 21:58:24 -0500
commitce5f56f266339d511305e123ba20e74e1058a745 (patch)
treeafa533bcbc61e188f4d619ff5332a057f3ef424b /mesonbuild/build.py
parent9c7ddf59fee75148153c0a05de727108b74b5ee7 (diff)
downloadmeson-ce5f56f266339d511305e123ba20e74e1058a745.zip
meson-ce5f56f266339d511305e123ba20e74e1058a745.tar.gz
meson-ce5f56f266339d511305e123ba20e74e1058a745.tar.bz2
build: Fix annotations to RunTarget and AliasTarget
RunTargets and AliasTargets may depend on RunTargets, so annotate them that way. The Gnome module relies on this internally.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index ad5d226..7cf0e3b 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -2610,7 +2610,7 @@ class RunTarget(Target, CommandBase):
def __init__(self, name: str,
command: T.Sequence[T.Union[str, File, BuildTarget, 'CustomTarget', 'CustomTargetIndex', programs.ExternalProgram]],
- dependencies: T.Sequence[T.Union[BuildTarget, 'CustomTarget']],
+ dependencies: T.Sequence[Target],
subdir: str,
subproject: str,
env: T.Optional['EnvironmentVariables'] = None):
@@ -2654,7 +2654,7 @@ class RunTarget(Target, CommandBase):
return "@run"
class AliasTarget(RunTarget):
- def __init__(self, name: str, dependencies: T.Sequence[T.Union[BuildTarget, 'CustomTarget']],
+ def __init__(self, name: str, dependencies: T.Sequence['Target'],
subdir: str, subproject: str):
super().__init__(name, [], dependencies, subdir, subproject)