diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2022-01-28 12:16:55 -0800 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-03-01 15:17:59 -0500 |
commit | 23f666b497a79fe8e4187754ebfe2cd9d53d183c (patch) | |
tree | 29a3f6eb66ced7c2ebd1124d3740045013655df5 /mesonbuild/interpreter/kwargs.py | |
parent | 272308ff055f73828ac3d0d76d20d6c0b83aeb75 (diff) | |
download | meson-23f666b497a79fe8e4187754ebfe2cd9d53d183c.zip meson-23f666b497a79fe8e4187754ebfe2cd9d53d183c.tar.gz meson-23f666b497a79fe8e4187754ebfe2cd9d53d183c.tar.bz2 |
interpreter: use typed_kwargs for configure_file
Diffstat (limited to 'mesonbuild/interpreter/kwargs.py')
-rw-r--r-- | mesonbuild/interpreter/kwargs.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mesonbuild/interpreter/kwargs.py b/mesonbuild/interpreter/kwargs.py index dff9e12..981f50d 100644 --- a/mesonbuild/interpreter/kwargs.py +++ b/mesonbuild/interpreter/kwargs.py @@ -10,6 +10,7 @@ from typing_extensions import TypedDict, Literal, Protocol from .. import build from .. import coredata +from ..compilers import Compiler from ..mesonlib import MachineChoice, File, FileMode, FileOrString, OptionKey from ..programs import ExternalProgram @@ -275,3 +276,20 @@ class VcsTag(TypedDict): build.ExtractedObjects, build.GeneratedList, ExternalProgram, File]] output: T.List[str] replace_string: str + + +class ConfigureFile(TypedDict): + + output: str + capture: bool + format: T.Literal['meson', 'cmake', 'cmake@'] + output_format: T.Literal['c', 'nasm'] + depfile: T.Optional[str] + install: T.Optional[bool] + install_dir: T.Union[str, T.Literal[False]] + install_mode: FileMode + install_tag: T.Optional[str] + encoding: str + command: T.Optional[T.List[T.Union[build.Executable, ExternalProgram, Compiler, File, str]]] + input: T.List[FileOrString] + configuration: T.Optional[T.Union[T.Dict[str, T.Union[str, int, bool]], build.ConfigurationData]] |