[Buildroot] [git commit branch/next] package/qt6/qt6base: add support for widgets gtk backend

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Feb 8 10:51:20 UTC 2023


commit: https://git.buildroot.net/buildroot/commit/?id=889f451caf22f5b36ff8430d7927e8cb3a56681e
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next

Signed-off-by: Angelo Compagnucci <angelo at amarulasolutions.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 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



More information about the buildroot mailing list