aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/interpreter.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-12-07 09:36:09 -0800
committerEli Schwartz <eschwartz93@gmail.com>2021-12-07 16:12:23 -0500
commite97f5a01c9c360b7dc5051bb2f39b2ba1664c3d7 (patch)
treec0d72587e89c7c67fa50f19f7b060a15e6edcddf /mesonbuild/interpreter/interpreter.py
parentf49c9c67fdc372dd6dc6c44db2c89b199caeba21 (diff)
downloadmeson-e97f5a01c9c360b7dc5051bb2f39b2ba1664c3d7.zip
meson-e97f5a01c9c360b7dc5051bb2f39b2ba1664c3d7.tar.gz
meson-e97f5a01c9c360b7dc5051bb2f39b2ba1664c3d7.tar.bz2
interpreter: use common DEPENDS_KW
Diffstat (limited to 'mesonbuild/interpreter/interpreter.py')
-rw-r--r--mesonbuild/interpreter/interpreter.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 8b8297c..1a8d0ae 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -209,11 +209,10 @@ TEST_KWARGS: T.List[KwargInfo] = [
default='exitcode',
validator=in_set_validator({'exitcode', 'tap', 'gtest', 'rust'}),
since_values={'gtest': '0.55.0', 'rust': '0.57.0'}),
- KwargInfo('depends', ContainerTypeInfo(list, (build.CustomTarget, build.BuildTarget)),
- listify=True, default=[], since='0.46.0'),
KwargInfo('priority', int, default=0, since='0.52.0'),
# TODO: env needs reworks of the way the environment variable holder itself works probably
ENV_KW,
+ DEPENDS_KW.evolve(since='0.46.0'),
KwargInfo('suite', ContainerTypeInfo(list, str), listify=True, default=['']), # yes, a list of empty string
]
@@ -1822,8 +1821,8 @@ This will become a hard error in the future.''', location=node)
KwargInfo('arguments', ContainerTypeInfo(list, str, allow_empty=False), required=True, listify=True),
KwargInfo('output', ContainerTypeInfo(list, str, allow_empty=False), required=True, listify=True),
DEPFILE_KW,
+ DEPENDS_KW,
KwargInfo('capture', bool, default=False, since='0.43.0'),
- KwargInfo('depends', ContainerTypeInfo(list, (build.BuildTarget, build.CustomTarget)), default=[], listify=True),
)
def func_generator(self, node: mparser.FunctionNode,
args: T.Tuple[T.Union[build.Executable, ExternalProgram]],