From 908a388f68bde412175732376a8d933a5eaa7556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Wed, 11 May 2022 17:05:59 +0200 Subject: [PATCH] meson: Give up on building GL base without GL windowing We do not want to build GL-based importers when GTK GL windowing support is missing, which might happen because of missing deps or on unsupported platform --- lib/gst/plugin/importers/meson.build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/gst/plugin/importers/meson.build b/lib/gst/plugin/importers/meson.build index 5f190b54..57283588 100644 --- a/lib/gst/plugin/importers/meson.build +++ b/lib/gst/plugin/importers/meson.build @@ -46,8 +46,11 @@ if gst_gl_have_window_wayland and gst_gl_have_platform_egl endif endif -if gl_support_required and not have_gtk_gl_windowing - error('GL-based importer was enabled, but support for current GL windowing is missing') +if not have_gtk_gl_windowing + if gl_support_required + error('GL-based importer was enabled, but support for current GL windowing is missing') + endif + build_glbase = false endif if gst_gl_have_platform_egl