[Buildroot] [PATCH v6 03/14] package/qt6/qt6base: add blind option to enable Network support on host
Roy Kollen Svendsen
roykollensvendsen at gmail.com
Mon Jun 3 11:51:46 UTC 2024
The Network module is explicitly required by qt6tools.
Signed-off-by: Roy Kollen Svendsen <roy.kollen.svendsen at akersolutions.com>
---
Changes v5 -> v6:
- Add explanation to commit message (suggested by Yann)
- Add explanation to qt6base blind host network option
package/qt6/qt6base/Config.in.host | 5 +++++
package/qt6/qt6base/qt6base.mk | 8 +++++++-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/package/qt6/qt6base/Config.in.host b/package/qt6/qt6base/Config.in.host
index 326c06278e..286da0ff03 100644
--- a/package/qt6/qt6base/Config.in.host
+++ b/package/qt6/qt6base/Config.in.host
@@ -2,3 +2,8 @@
# Qt Shader Baker(qsb)).
config BR2_PACKAGE_HOST_QT6BASE_GUI
bool
+
+# Select this if you need host qt6 tools that require the Qt::Network module
+# (e.g. Qt Tools).
+config BR2_PACKAGE_HOST_QT6BASE_NETWORK
+ bool
diff --git a/package/qt6/qt6base/qt6base.mk b/package/qt6/qt6base/qt6base.mk
index 5b9ddc4d77..6d2d3ef377 100644
--- a/package/qt6/qt6base/qt6base.mk
+++ b/package/qt6/qt6base/qt6base.mk
@@ -87,7 +87,6 @@ HOST_QT6BASE_CONF_OPTS = \
-DFEATURE_xml=ON \
-DFEATURE_sql=OFF \
-DFEATURE_testlib=OFF \
- -DFEATURE_network=OFF \
-DFEATURE_dbus=OFF \
-DFEATURE_icu=OFF \
-DFEATURE_glib=OFF \
@@ -110,6 +109,13 @@ else
HOST_QT6BASE_CONF_OPTS += -DFEATURE_gui=OFF
endif
+# The Network module is explicitly required by qt6tools.
+ifeq ($(BR2_PACKAGE_HOST_QT6BASE_NETWORK),y)
+HOST_QT6BASE_CONF_OPTS += -DFEATURE_network=ON
+else
+HOST_QT6BASE_CONF_OPTS += -DFEATURE_network=OFF
+endif
+
# Conditional blocks below are ordered by alphabetic ordering of the
# BR2_PACKAGE_* option.
--
2.45.1
More information about the buildroot
mailing list