diff mbox series

[1/5] libportal: add explicit PACKAGECONFIG for gtk4 support

Message ID 20260512173702.4114193-1-ross.burton@arm.com
State New
Headers show
Series [1/5] libportal: add explicit PACKAGECONFIG for gtk4 support | expand

Commit Message

Ross Burton May 12, 2026, 5:36 p.m. UTC
Instead of using the presence of the opengl DISTRO_FEATURE to control
whether the GTK 4 integration is built, add a PACKAGECONFIG for it.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/recipes-gnome/libportal/libportal_0.9.1.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-gnome/libportal/libportal_0.9.1.bb b/meta/recipes-gnome/libportal/libportal_0.9.1.bb
index 9713f70dbb1..f4924355f93 100644
--- a/meta/recipes-gnome/libportal/libportal_0.9.1.bb
+++ b/meta/recipes-gnome/libportal/libportal_0.9.1.bb
@@ -14,6 +14,9 @@  GIDOCGEN_MESON_OPTION = 'docs'
 
 ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
 
-DEPENDS += "glib-2.0 glib-2.0-native gtk+3 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gtk4', '', d)}"
+DEPENDS += "glib-2.0 glib-2.0-native gtk+3"
+
+PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gtk4', '', d)}"
+PACKAGECONFIG[gtk4] = "-Dbackend-gtk4=enabled,-Dbackend-gtk4=disabled,gtk4"
 
 EXTRA_OEMESON = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-Dvapi=true', '-Dvapi=false', d)} -Dbackend-qt5=disabled"