diff mbox series

libportal: allow to build without gtk4 backend

Message ID 20230220141127.16779-1-f_l_k@t-online.de
State Accepted, archived
Commit 3678dd56f800f22c9f81aa4afe060420f19c78f9
Headers show
Series libportal: allow to build without gtk4 backend | expand

Commit Message

Markus Volk Feb. 20, 2023, 2:11 p.m. UTC
This allows to build libportal for platforms without opengl support

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 meta/recipes-gnome/libportal/libportal_0.6.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta/recipes-gnome/libportal/libportal_0.6.bb b/meta/recipes-gnome/libportal/libportal_0.6.bb
index ca58ef4138..bf38fc85fd 100644
--- a/meta/recipes-gnome/libportal/libportal_0.6.bb
+++ b/meta/recipes-gnome/libportal/libportal_0.6.bb
@@ -15,6 +15,6 @@  GIDOCGEN_MESON_OPTION = 'docs'
 
 ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
 
-DEPENDS += "glib-2.0 glib-2.0-native gtk+3 gtk4"
+DEPENDS += "glib-2.0 glib-2.0-native gtk+3 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gtk4', '', d)}"
 
-EXTRA_OEMESON = "-Dbackends=gtk3,gtk4"
+EXTRA_OEMESON = "-Dbackends=gtk3${@bb.utils.contains('DISTRO_FEATURES', 'opengl', ',gtk4', '', d)}"