aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-12-04 19:58:12 -0800
committerDylan Baker <dylan@pnwbakers.com>2021-12-05 08:33:32 -0800
commit4f0c5af3908241228f042184cdbd2b8fc286712e (patch)
tree104ef6b247ba4111969a7071be2f5456a038912a /mesonbuild
parentc88bfdbefc2f79ac2dfa9bff5847c350de5f5db8 (diff)
downloadmeson-4f0c5af3908241228f042184cdbd2b8fc286712e.zip
meson-4f0c5af3908241228f042184cdbd2b8fc286712e.tar.gz
meson-4f0c5af3908241228f042184cdbd2b8fc286712e.tar.bz2
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
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/modules/qt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/qt.py b/mesonbuild/modules/qt.py
index 9360e4a..cf97368 100644
--- a/mesonbuild/modules/qt.py
+++ b/mesonbuild/modules/qt.py
@@ -277,7 +277,7 @@ class QtBaseModule(ExtensionModule):
@noPosargs
@typed_kwargs(
'qt.compile_resources',
- KwargInfo('name', str),
+ KwargInfo('name', (str, NoneType)),
KwargInfo(
'sources',
ContainerTypeInfo(list, (File, str, build.CustomTarget, build.CustomTargetIndex, build.GeneratedList), allow_empty=False),