aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/kwargs.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-06-23 01:00:59 +0300
committerGitHub <noreply@github.com>2021-06-23 01:00:59 +0300
commit6e0a0fd1da979acb25c1b0d7397e378d613953ba (patch)
treebbbfe309e7ee2987f3634e91a151891da0e057cd /mesonbuild/interpreter/kwargs.py
parent0e5f88baf4d08c98a8d140829dbe3f7db626ca8a (diff)
parent132420a05901deb8be5524c17fde7031d5d9b8a1 (diff)
downloadmeson-6e0a0fd1da979acb25c1b0d7397e378d613953ba.zip
meson-6e0a0fd1da979acb25c1b0d7397e378d613953ba.tar.gz
meson-6e0a0fd1da979acb25c1b0d7397e378d613953ba.tar.bz2
Merge pull request #8884 from dcbaker/submit/type-and-annotate-install-functions
Add annotations for the various install_* functions
Diffstat (limited to 'mesonbuild/interpreter/kwargs.py')
-rw-r--r--mesonbuild/interpreter/kwargs.py34
1 files changed, 32 insertions, 2 deletions
diff --git a/mesonbuild/interpreter/kwargs.py b/mesonbuild/interpreter/kwargs.py
index 1cc2082..3c3ecf6 100644
--- a/mesonbuild/interpreter/kwargs.py
+++ b/mesonbuild/interpreter/kwargs.py
@@ -4,13 +4,13 @@
"""Keyword Argument type annotations."""
-from mesonbuild import coredata
import typing as T
from typing_extensions import TypedDict, Literal
from .. import build
-from ..mesonlib import MachineChoice, File
+from .. import coredata
+from ..mesonlib import MachineChoice, File, FileMode, FileOrString
from .interpreterobjects import EnvironmentVariablesObject
@@ -102,3 +102,33 @@ class DependencyMethodPartialDependency(TypedDict):
class BuildTargeMethodExtractAllObjects(TypedDict):
recursive: bool
+
+class FuncInstallSubdir(TypedDict):
+
+ install_dir: str
+ strip_directory: bool
+ exclude_files: T.List[str]
+ exclude_directories: T.List[str]
+ install_mode: FileMode
+
+
+class FuncInstallData(TypedDict):
+
+ install_dir: str
+ sources: T.List[FileOrString]
+ rename: T.List[str]
+ install_mode: FileMode
+
+
+class FuncInstallHeaders(TypedDict):
+
+ install_dir: T.Optional[str]
+ install_mode: FileMode
+ subdir: T.Optional[str]
+
+
+class FuncInstallMan(TypedDict):
+
+ install_dir: T.Optional[str]
+ install_mode: FileMode
+ locale: T.Optional[str]