diff --git a/subprojects/gst-plugins-good/ext/qt/meson.build b/subprojects/gst-plugins-good/ext/qt/meson.build index 192a644e48..cc40b36a7b 100644 --- a/subprojects/gst-plugins-good/ext/qt/meson.build +++ b/subprojects/gst-plugins-good/ext/qt/meson.build @@ -42,7 +42,12 @@ if not add_languages('cpp', native: false, required: qt5_option) endif qt5_mod = import('qt5') -if not qt5_mod.has_tools(method: qt5_method) +if meson.version().version_compare('>=1.6') + have_tools = qt5_mod.has_tools(method: qt5_method, tools: ['moc', 'uic', 'rcc']) +else + have_tools = qt5_mod.has_tools(method: qt5_method) +endif +if not have_tools if qt5_option.enabled() error('qt5 qmlglsink plugin is enabled, but qt specific tools were not found') endif diff --git a/subprojects/gst-plugins-good/ext/qt6/meson.build b/subprojects/gst-plugins-good/ext/qt6/meson.build index dc7abe0a66..d98ab1861b 100644 --- a/subprojects/gst-plugins-good/ext/qt6/meson.build +++ b/subprojects/gst-plugins-good/ext/qt6/meson.build @@ -48,7 +48,12 @@ if not add_languages('cpp', native: false, required: qt6_option) endif qt6_mod = import('qt6') -if not qt6_mod.has_tools(method: qt6_method) +if meson.version().version_compare('>=1.6') + have_tools = qt6_mod.has_tools(method: qt6_method, tools: ['moc', 'uic', 'rcc']) +else + have_tools = qt6_mod.has_tools(method: qt6_method) +endif +if not have_tools if qt6_option.enabled() error('qt6 qmlglsink plugin is enabled, but qt specific tools were not found') endif