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

Even though Qt6 support using a bundled sqlite, in Buildroot, we
always prefer to use non-bundled libraries when possible.

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:54 +02:00 committed by Thomas Petazzoni
parent 8d8afc7a06
commit c84f8742be
2 changed files with 14 additions and 0 deletions

View File

@ -72,6 +72,13 @@ comment "PostgreSQL plugin can't be built with optimize for fast"
depends on BR2_USE_MMU
depends on BR2_OPTIMIZE_FAST
config BR2_PACKAGE_QT6BASE_SQLITE
bool "SQLite plugin"
select BR2_PACKAGE_SQLITE
select BR2_PACKAGE_SQLITE_ENABLE_COLUMN_METADATA
help
Build SQLite plugin
endif
config BR2_PACKAGE_QT6BASE_SYSLOG

View File

@ -172,6 +172,13 @@ else
QT6BASE_CONF_OPTS += -DFEATURE_sql_psql=OFF
endif
ifeq ($(BR2_PACKAGE_QT6BASE_SQLITE),y)
QT6BASE_CONF_OPTS += -DFEATURE_sql_sqlite=ON -DFEATURE_system_sqlite=ON
QT6BASE_DEPENDENCIES += sqlite
else
QT6BASE_CONF_OPTS += -DFEATURE_sql_sqlite=OFF
endif
else
QT6BASE_CONF_OPTS += -DFEATURE_sql=OFF
endif