package/qt6/qt6base: add support for sql module w/ mysql

Signed-off-by: Jesse Van Gavere <jesseevg@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Jesse Van Gavere 2022-08-26 15:54:52 +02:00 committed by Thomas Petazzoni
parent ce4b87be82
commit f446cfc5cd
2 changed files with 37 additions and 0 deletions

View File

@ -35,6 +35,27 @@ config BR2_PACKAGE_QT6BASE_NETWORK
help
This options enables the Qt6Network library.
config BR2_PACKAGE_QT6BASE_SQL
bool "sql module"
help
This options enables the Qt6Sql library.
if BR2_PACKAGE_QT6BASE_SQL
config BR2_PACKAGE_QT6BASE_MYSQL
bool "MySQL Plugin"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_USE_MMU
depends on BR2_TOOLCHAIN_HAS_THREADS
select BR2_PACKAGE_MYSQL
help
Build MySQL plugin
comment "MySQL plugin needs a toolchain w/ C++, threads"
depends on BR2_USE_MMU
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
endif
config BR2_PACKAGE_QT6BASE_SYSLOG
bool "syslog support"
help

View File

@ -153,6 +153,22 @@ else
QT6BASE_CONF_OPTS += -DFEATURE_network=OFF
endif
# Qt6 SQL Plugins
ifeq ($(BR2_PACKAGE_QT6BASE_SQL),y)
QT6BASE_CONF_OPTS += -DFEATURE_sql=ON
QT6BASE_CONF_OPTS += -DFEATURE_sql_db2=OFF -DFEATURE_sql_ibase=OFF -DFEATURE_sql_oci=OFF -DFEATURE_sql_odbc=OFF
ifeq ($(BR2_PACKAGE_QT6BASE_MYSQL),y)
QT6BASE_CONF_OPTS += -DFEATURE_sql_mysql=ON
QT6BASE_DEPENDENCIES += mysql
else
QT6BASE_CONF_OPTS += -DFEATURE_sql_mysql=OFF
endif
else
QT6BASE_CONF_OPTS += -DFEATURE_sql=OFF
endif
ifeq ($(BR2_PACKAGE_QT6BASE_SYSLOG),y)
QT6BASE_CONF_OPTS += -DFEATURE_syslog=ON
else