package/qt6/qt6base: add blind option to enable Sql support on host

We need host qt6base with Sql support for host-qt6tools to generate the
qhelpgenerator host tool. qt6tools will fail to build if qhelpgenerator is not
available.

Signed-off-by: Roy Kollen Svendsen <roykollensvendsen@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Roy Kollen Svendsen
2024-06-25 23:18:29 +02:00
committed by Thomas Petazzoni
parent bab745cb97
commit 663c9ead3c
2 changed files with 14 additions and 1 deletions

View File

@@ -12,3 +12,8 @@ config BR2_PACKAGE_HOST_QT6BASE_NETWORK
# (e.g. qmltestrunner).
config BR2_PACKAGE_HOST_QT6BASE_TEST
bool
# Select this if you need host qt6 tools that require the Qt::Sql module
# (e.g. qhelpgenerator).
config BR2_PACKAGE_HOST_QT6BASE_SQL
bool

View File

@@ -86,7 +86,6 @@ HOST_QT6BASE_DEPENDENCIES = \
HOST_QT6BASE_CONF_OPTS = \
-DFEATURE_concurrent=OFF \
-DFEATURE_xml=ON \
-DFEATURE_sql=OFF \
-DFEATURE_dbus=OFF \
-DFEATURE_icu=OFF \
-DFEATURE_glib=OFF \
@@ -128,6 +127,15 @@ else
HOST_QT6BASE_CONF_OPTS += -DFEATURE_network=OFF
endif
# We need host qt6base with Sql support for host-qt6tools to generate the
# qhelpgenerator host tool. qt6tools will fail to build if qhelpgenerator is not
# available.
ifeq ($(BR2_PACKAGE_HOST_QT6BASE_SQL),y)
HOST_QT6BASE_CONF_OPTS += -DFEATURE_sql=ON
else
HOST_QT6BASE_CONF_OPTS += -DFEATURE_sql=OFF
endif
# We need host-qt6base with Testlib support when building host-qt6declarative
# with QuickTest support. QuickTest support is further required for building the
# qmltestrunner host tool. qt6declarative will fail to build if qmltestrunner is