modules/gnome: replace FeatureDeprecatedKwarg with typed_kwarg

Using the deprected_message helper.
pull/9679/head
Dylan Baker 3 years ago committed by Eli Schwartz
parent 9ef36fa80b
commit 824e09159b
  1. 9
      mesonbuild/modules/gnome.py

@ -1086,12 +1086,15 @@ class GnomeModule(ExtensionModule):
self._devenv_prepend('GSETTINGS_SCHEMA_DIR', os.path.join(state.environment.get_build_dir(), state.subdir))
return ModuleReturnValue(target_g, [target_g])
@FeatureDeprecatedKwargs('gnome.yelp', '0.43.0', ['languages'],
'Use a LINGUAS file in the source directory instead')
@typed_pos_args('gnome.yelp', str, varargs=str)
@typed_kwargs(
'gnome.yelp',
KwargInfo('languages', ContainerTypeInfo(list, str), listify=True, default=[]),
KwargInfo(
'languages', ContainerTypeInfo(list, str),
listify=True, default=[],
deprecated='0.43.0',
deprecated_message='Use a LINGUAS file in the source directory instead',
),
KwargInfo('media', ContainerTypeInfo(list, str), listify=True, default=[]),
KwargInfo('sources', ContainerTypeInfo(list, str), listify=True, default=[]),
KwargInfo('symlink_media', bool, default=True),

Loading…
Cancel
Save