interpreter: use typed_kwargs for build_target.link_depends

pull/12392/head
Dylan Baker 1 year ago
parent d38bf5fbb0
commit 4386419a86
  1. 1
      mesonbuild/interpreter/kwargs.py
  2. 6
      mesonbuild/interpreter/type_checking.py

@ -333,6 +333,7 @@ class _BaseBuildTarget(TypedDict):
install_mode: FileMode
install_rpath: str
implicit_include_directories: bool
link_depends: T.List[T.Union[str, File, build.CustomTarget, build.CustomTargetIndex, build.BuildTarget]]
link_language: T.Optional[str]
native: MachineChoice
override_options: T.Dict[OptionKey, T.Union[str, int, bool, T.List[str]]]

@ -585,6 +585,12 @@ _BUILD_TARGET_KWS: T.List[KwargInfo] = [
since='0.48.0',
),
KwargInfo('install_rpath', str, default=''),
KwargInfo(
'link_depends',
ContainerTypeInfo(list, (str, File, CustomTarget, CustomTargetIndex, BuildTarget)),
default=[],
listify=True,
),
KwargInfo(
'link_language',
(str, NoneType),

Loading…
Cancel
Save