diff mbox series

[2/2] gnome-desktop: add PACKAGECONFIGs for gtk3/gtk4 libraries

Message ID 20241113124111.2042331-2-ross.burton@arm.com
State New
Headers show
Series [1/2] gnome-desktop: remove X11 dependencies | expand

Commit Message

Ross Burton Nov. 13, 2024, 12:41 p.m. UTC
Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 .../recipes-gnome/gnome-desktop/gnome-desktop_44.1.bb       | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-gnome/recipes-gnome/gnome-desktop/gnome-desktop_44.1.bb b/meta-gnome/recipes-gnome/gnome-desktop/gnome-desktop_44.1.bb
index 994dfabf3c..629fe929a1 100644
--- a/meta-gnome/recipes-gnome/gnome-desktop/gnome-desktop_44.1.bb
+++ b/meta-gnome/recipes-gnome/gnome-desktop/gnome-desktop_44.1.bb
@@ -21,8 +21,6 @@  DEPENDS += " \
     gdk-pixbuf \
     glib-2.0 \
     gsettings-desktop-schemas \
-    gtk+3 \
-    gtk4 \
     iso-codes \
     libseccomp \
     libxkbcommon \
@@ -34,6 +32,10 @@  DEPENDS:remove:riscv32 = "libseccomp"
 GTKDOC_MESON_OPTION = "gtk_doc"
 EXTRA_OEMESON = "-Ddesktop_docs=false"
 
+PACKAGECONFIG ??= "gtk4 legacy"
+PACKAGECONFIG[gtk4] = "-Dbuild_gtk4=true,-Dbuild_gtk4=false,gtk4"
+PACKAGECONFIG[legacy] = "-Dlegacy_library=true,-Dlegacy_library=false,gtk+3"
+
 PACKAGES =+ "libgnome-desktop"
 RDEPENDS:${PN} += "libgnome-desktop"
 FILES:libgnome-desktop = " \