meson: Print a useful error message when qt windowing is not found

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6040>
This commit is contained in:
Nirbheek Chauhan 2024-02-02 23:04:29 +05:30 committed by GStreamer Marge Bot
parent 3325a10f57
commit a5cb2ef9cd
2 changed files with 2 additions and 2 deletions

View file

@ -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'

View file

@ -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?