modules/qt: compeil_resources allow name to be unset

Originally name should have been set to required=True, but since then
the requirement to name CustomTargets (which compile_resources is a
wrapper around) has been dropped. As such we just need to allow the
default value of None through.

Fixes: #9698
0.60
Dylan Baker 3 years ago committed by Nirbheek Chauhan
parent 3b4ce9fe23
commit 21f2e813c7
  1. 2
      mesonbuild/modules/qt.py

@ -272,7 +272,7 @@ class QtBaseModule(ExtensionModule):
@noPosargs @noPosargs
@typed_kwargs( @typed_kwargs(
'qt.compile_resources', 'qt.compile_resources',
KwargInfo('name', str), KwargInfo('name', (str, NoneType)),
KwargInfo( KwargInfo(
'sources', 'sources',
ContainerTypeInfo(list, (File, str, build.CustomTarget, build.CustomTargetIndex, build.GeneratedList), allow_empty=False), ContainerTypeInfo(list, (File, str, build.CustomTarget, build.CustomTargetIndex, build.GeneratedList), allow_empty=False),

Loading…
Cancel
Save