diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-10-20 15:51:39 -0700 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-12-17 10:27:54 -0800 |
| commit | 2488f3f4b2f192a11d62534a08e792fd36f800c0 (patch) | |
| tree | ec58c37bf3462f6f5824e19250252162d7e1157d /mesonbuild/interpreter | |
| parent | cb7431b1200871e7a70499a8e02b82dc0fa32c39 (diff) | |
| download | meson-2488f3f4b2f192a11d62534a08e792fd36f800c0.tar.gz | |
interpreter: Add type checking for BuildTarget(install_dir: )
This just puts the type checking in the frontend, there's still some
serious cleanup in the build and backend that need to happen.
Diffstat (limited to 'mesonbuild/interpreter')
| -rw-r--r-- | mesonbuild/interpreter/kwargs.py | 1 | ||||
| -rw-r--r-- | mesonbuild/interpreter/type_checking.py | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/mesonbuild/interpreter/kwargs.py b/mesonbuild/interpreter/kwargs.py index 517ccee15..c08ceb759 100644 --- a/mesonbuild/interpreter/kwargs.py +++ b/mesonbuild/interpreter/kwargs.py @@ -367,6 +367,7 @@ class _BuildTarget(_BaseBuildTarget): d_import_dirs: T.List[T.Union[str, build.IncludeDirs]] d_module_versions: T.List[T.Union[str, int]] d_unittest: bool + install_dir: T.List[T.Union[str, bool]] rust_crate_type: T.Optional[Literal['bin', 'lib', 'rlib', 'dylib', 'cdylib', 'staticlib', 'proc-macro']] rust_dependency_map: T.Dict[str, str] swift_interoperability_mode: Literal['c', 'cpp'] diff --git a/mesonbuild/interpreter/type_checking.py b/mesonbuild/interpreter/type_checking.py index 7d6b0073a..478924828 100644 --- a/mesonbuild/interpreter/type_checking.py +++ b/mesonbuild/interpreter/type_checking.py @@ -614,6 +614,12 @@ _ALL_TARGET_KWS: T.List[KwargInfo] = [ ), INSTALL_MODE_KW, INSTALL_TAG_KW, + KwargInfo( + 'install_dir', + ContainerTypeInfo(list, (str, bool)), + default=[], + listify=True, + ), KwargInfo('implicit_include_directories', bool, default=True, since='0.42.0'), NATIVE_KW, KwargInfo('resources', ContainerTypeInfo(list, str), default=[], listify=True), |
