From 889f451caf22f5b36ff8430d7927e8cb3a56681e Mon Sep 17 00:00:00 2001 From: Angelo Compagnucci Date: Tue, 7 Feb 2023 18:17:13 +0100 Subject: [PATCH] package/qt6/qt6base: add support for widgets gtk backend Signed-off-by: Angelo Compagnucci Signed-off-by: Thomas Petazzoni --- package/qt6/qt6base/qt6base.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package/qt6/qt6base/qt6base.mk b/package/qt6/qt6base/qt6base.mk index 2a0afa6d27..911375aa6d 100644 --- a/package/qt6/qt6base/qt6base.mk +++ b/package/qt6/qt6base/qt6base.mk @@ -217,6 +217,15 @@ endif ifeq ($(BR2_PACKAGE_QT6BASE_WIDGETS),y) QT6BASE_CONF_OPTS += -DFEATURE_widgets=ON + +# only enable gtk support if libgtk3 X11 backend is enabled +ifeq ($(BR2_PACKAGE_LIBGTK3)$(BR2_PACKAGE_LIBGTK3_X11),yy) +QT6BASE_CONF_OPTS += -DFEATURE_gtk3=ON +QT6BASE_DEPENDENCIES += libgtk3 +else +QT6BASE_CONF_OPTS += -DFEATURE_gtk3=OFF +endif + else QT6BASE_CONF_OPTS += -DFEATURE_widgets=OFF endif