From a5cb2ef9cd71ad892cb8f6d1dc5bbf1181b7073d Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 2 Feb 2024 23:04:29 +0530 Subject: [PATCH] meson: Print a useful error message when qt windowing is not found Part-of: --- subprojects/gst-plugins-good/ext/qt/meson.build | 2 +- subprojects/gst-plugins-good/ext/qt6/meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-good/ext/qt/meson.build b/subprojects/gst-plugins-good/ext/qt/meson.build index 7dc26fc5af..192a644e48 100644 --- a/subprojects/gst-plugins-good/ext/qt/meson.build +++ b/subprojects/gst-plugins-good/ext/qt/meson.build @@ -179,7 +179,7 @@ if host_system == 'ios' endif endif -if qt5_option.require(have_qt_windowing).allowed() +if qt5_option.require(have_qt_windowing, error_message: 'No windowing, enable one of the qt-* windowing options').allowed() # rpath is needed to be able to load the plugin on macOS inside the devenv qmlgl_kwargs = {} if host_system == 'darwin' diff --git a/subprojects/gst-plugins-good/ext/qt6/meson.build b/subprojects/gst-plugins-good/ext/qt6/meson.build index 152062254c..0601dfe5ee 100644 --- a/subprojects/gst-plugins-good/ext/qt6/meson.build +++ b/subprojects/gst-plugins-good/ext/qt6/meson.build @@ -160,7 +160,7 @@ if host_system == 'ios' endif endif -if qt6_option.require(have_qt_windowing).allowed() +if qt6_option.require(have_qt_windowing, error_message: 'No windowing, enable one of the qt-* windowing options').allowed() # Build it! moc_files = qt6_mod.preprocess(moc_headers : moc_headers, method: qt6_method) # TODO: dist backup qsb shaders?