diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-08-10 16:05:29 -0700 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-09-30 21:01:38 +0200 |
commit | 3374b7c323548287f382ae195ad7db516d4dae29 (patch) | |
tree | 07f51590c54f5876af8f6df4b51f2a61c67a3fab | |
parent | a3e63a4269e6deb6653e1ba5e397a5a2322dfd88 (diff) | |
download | meson-3374b7c323548287f382ae195ad7db516d4dae29.zip meson-3374b7c323548287f382ae195ad7db516d4dae29.tar.gz meson-3374b7c323548287f382ae195ad7db516d4dae29.tar.bz2 |
interpreter/type_checking: Add DEPEND_FILES_KW
since most of the Target classes use this, let's just go ahead and add
it here instead of moving it later
-rw-r--r-- | mesonbuild/interpreter/type_checking.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/type_checking.py b/mesonbuild/interpreter/type_checking.py index db346af..1ed4b67 100644 --- a/mesonbuild/interpreter/type_checking.py +++ b/mesonbuild/interpreter/type_checking.py @@ -10,7 +10,7 @@ from ..build import EnvironmentVariables, CustomTarget, BuildTarget from ..coredata import UserFeatureOption from ..interpreterbase import TYPE_var from ..interpreterbase.decorators import KwargInfo, ContainerTypeInfo -from ..mesonlib import FileMode, MachineChoice, listify, has_path_sep +from ..mesonlib import File, FileMode, MachineChoice, listify, has_path_sep # Helper definition for type checks that are `Optional[T]` NoneType: T.Type[None] = type(None) @@ -190,3 +190,10 @@ DEPENDS_KW: KwargInfo[T.List[T.Union[BuildTarget, CustomTarget]]] = KwargInfo( listify=True, default=[], ) + +DEPEND_FILES_KW: KwargInfo[T.List[T.Union[str, File]]] = KwargInfo( + 'depend_files', + ContainerTypeInfo(list, (File, str)), + listify=True, + default=[], +) |