[Buildroot] [git commit] package/qt6/qt6base: add support for sql module w/ sqlite

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Sep 20 06:09:24 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=c84f8742be47141639c32436927a624c1690f6b2
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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 at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 package/qt6/qt6base/Config.in  | 7 +++++++
 package/qt6/qt6base/qt6base.mk | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/package/qt6/qt6base/Config.in b/package/qt6/qt6base/Config.in
index 7d1233752c..e8357a675c 100644
--- a/package/qt6/qt6base/Config.in
+++ b/package/qt6/qt6base/Config.in
@@ -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
diff --git a/package/qt6/qt6base/qt6base.mk b/package/qt6/qt6base/qt6base.mk
index f29a52f543..b7ee6037f3 100644
--- a/package/qt6/qt6base/qt6base.mk
+++ b/package/qt6/qt6base/qt6base.mk
@@ -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



More information about the buildroot mailing list