build/qt6: properly error/skip build if the qsb tool is not found

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3032

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5459>
This commit is contained in:
Matthew Waters 2023-10-12 00:27:11 +11:00 committed by GStreamer Marge Bot
parent ed29c23e86
commit 7b491f382c

View file

@ -60,6 +60,11 @@ if not qt6qml_dep.found()
subdir_done()
endif
qsb = find_program('qsb-qt6', 'qsb', required: qt6_option)
if not qsb.found()
subdir_done()
endif
optional_deps = []
qt_defines = []
have_qpa_include = false
@ -159,7 +164,6 @@ if qt6_option.require(have_qt_windowing).allowed()
# Build it!
moc_files = qt6_mod.preprocess(moc_headers : moc_headers, method: qt6_method)
# TODO: dist backup qsb shaders?
qsb = find_program('qsb-qt6', 'qsb')
shaders = []
foreach shader: shader_sources
qsb_shader = shader + '.qsb'