interpreter: use typed_kwargs for build_target.implicit_include_directories

pull/12392/head
Dylan Baker 1 year ago
parent ca32ffc157
commit a3444d31db
  1. 2
      mesonbuild/interpreter/interpreter.py
  2. 1
      mesonbuild/interpreter/kwargs.py
  3. 1
      mesonbuild/interpreter/type_checking.py

@ -3292,7 +3292,7 @@ class Interpreter(InterpreterBase, HoldableObject):
kwargs: T.Union[kwtypes.Executable, kwtypes.StaticLibrary, kwtypes.SharedLibrary, kwtypes.SharedModule, kwtypes.Jar],
targetclass: T.Type[T.Union[build.Executable, build.StaticLibrary, build.SharedModule, build.SharedLibrary, build.Jar]]
) -> T.Union[build.Executable, build.StaticLibrary, build.SharedModule, build.SharedLibrary, build.Jar]:
@FeatureNewKwargs('build target', '0.42.0', ['build_rpath', 'implicit_include_directories'])
@FeatureNewKwargs('build target', '0.42.0', ['build_rpath'])
@FeatureNewKwargs('build target', '0.48.0', ['gnu_symbol_visibility'])
def build_target_decorator_caller(self, node, args, kwargs):
return True

@ -329,6 +329,7 @@ class _BaseBuildTarget(TypedDict):
extra_files: T.List[FileOrString]
install: bool
install_mode: FileMode
implicit_include_directories: bool
native: MachineChoice
override_options: T.Dict[OptionKey, T.Union[str, int, bool, T.List[str]]]
depend_files: NotRequired[T.List[File]]

@ -556,6 +556,7 @@ _ALL_TARGET_KWS: T.List[KwargInfo] = [
KwargInfo('extra_files', ContainerTypeInfo(list, (str, File)), default=[], listify=True),
INSTALL_KW,
INSTALL_MODE_KW,
KwargInfo('implicit_include_directories', bool, default=True, since='0.42.0'),
NATIVE_KW,
]

Loading…
Cancel
Save