interpreter: use typed_kwargs for build_target.resources
This commit is contained in:
parent
1abdd9dd61
commit
d5bdcf1145
|
@ -340,6 +340,7 @@ class _BaseBuildTarget(TypedDict):
|
||||||
native: MachineChoice
|
native: MachineChoice
|
||||||
override_options: T.Dict[OptionKey, T.Union[str, int, bool, T.List[str]]]
|
override_options: T.Dict[OptionKey, T.Union[str, int, bool, T.List[str]]]
|
||||||
depend_files: NotRequired[T.List[File]]
|
depend_files: NotRequired[T.List[File]]
|
||||||
|
resources: T.List[str]
|
||||||
|
|
||||||
|
|
||||||
class _BuildTarget(_BaseBuildTarget):
|
class _BuildTarget(_BaseBuildTarget):
|
||||||
|
|
|
@ -558,6 +558,7 @@ _ALL_TARGET_KWS: T.List[KwargInfo] = [
|
||||||
INSTALL_MODE_KW,
|
INSTALL_MODE_KW,
|
||||||
KwargInfo('implicit_include_directories', bool, default=True, since='0.42.0'),
|
KwargInfo('implicit_include_directories', bool, default=True, since='0.42.0'),
|
||||||
NATIVE_KW,
|
NATIVE_KW,
|
||||||
|
KwargInfo('resources', ContainerTypeInfo(list, str), default=[], listify=True),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue