aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/kwargs.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-06-30 13:03:54 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-06-30 16:28:14 -0700
commitbc4201a7f1e93d6afb62caa8ce81bb1b0211b70c (patch)
treee630b202d1e35803a87cb1306517f79d91dbe0de /mesonbuild/interpreter/kwargs.py
parent4a0a6a80837af1b75db3b3b57a5b8f41386e5c0b (diff)
downloadmeson-bc4201a7f1e93d6afb62caa8ce81bb1b0211b70c.zip
meson-bc4201a7f1e93d6afb62caa8ce81bb1b0211b70c.tar.gz
meson-bc4201a7f1e93d6afb62caa8ce81bb1b0211b70c.tar.bz2
interpreter: add required and disabled to import
This is useful both from the perspective of optional functionality that requires a module, and also as I continue to progress with Meson++, which will probably not implement all of the modules that Meson itself does.
Diffstat (limited to 'mesonbuild/interpreter/kwargs.py')
-rw-r--r--mesonbuild/interpreter/kwargs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/interpreter/kwargs.py b/mesonbuild/interpreter/kwargs.py
index 3c3ecf6..b92b66f 100644
--- a/mesonbuild/interpreter/kwargs.py
+++ b/mesonbuild/interpreter/kwargs.py
@@ -132,3 +132,8 @@ class FuncInstallMan(TypedDict):
install_dir: T.Optional[str]
install_mode: FileMode
locale: T.Optional[str]
+
+
+class FuncImportModule(ExtractRequired):
+
+ disabler: bool