interpreter: use typed_kwargs for executable(export_dynamic)

pull/12315/head
Dylan Baker 1 year ago
parent 6402f53a13
commit c84dcd309d
  1. 1
      mesonbuild/interpreter/kwargs.py
  2. 1
      mesonbuild/interpreter/type_checking.py

@ -340,6 +340,7 @@ class _LibraryMixin(TypedDict):
class Executable(_BuildTarget):
export_dynamic: bool
gui_app: T.Optional[bool]
vs_module_defs: T.Optional[T.Union[str, File, build.CustomTarget, build.CustomTargetIndex]]
win_subsystem: T.Optional[str]

@ -588,6 +588,7 @@ _DARWIN_VERSIONS_KW: KwargInfo[T.List[T.Union[str, int]]] = KwargInfo(
# Arguments exclusive to Executable. These are separated to make integrating
# them into build_target easier
_EXCLUSIVE_EXECUTABLE_KWS: T.List[KwargInfo] = [
KwargInfo('export_dynamic', bool, default=False, since='0.45.0'),
KwargInfo('gui_app', (bool, NoneType), deprecated='0.56.0', deprecated_message="Use 'win_subsystem' instead"),
KwargInfo(
'win_subsystem',

Loading…
Cancel
Save