[Buildroot] [git commit] package/qt6/qt6base: add support for sql module w/ postgresql
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Tue Sep 20 06:09:23 UTC 2022
commit: https://git.buildroot.net/buildroot/commit/?id=8d8afc7a06abdb54a92768433dd69da5a44a5e7c
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
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 | 18 ++++++++++++++++++
package/qt6/qt6base/qt6base.mk | 7 +++++++
2 files changed, 25 insertions(+)
diff --git a/package/qt6/qt6base/Config.in b/package/qt6/qt6base/Config.in
index c2a08a3b5b..7d1233752c 100644
--- a/package/qt6/qt6base/Config.in
+++ b/package/qt6/qt6base/Config.in
@@ -54,6 +54,24 @@ comment "MySQL plugin needs a toolchain w/ C++, threads"
depends on BR2_USE_MMU
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
+config BR2_PACKAGE_QT6BASE_PSQL
+ bool "PostgreSQL Plugin"
+ depends on BR2_USE_MMU
+ depends on !BR2_STATIC_LIBS
+ depends on BR2_USE_WCHAR
+ depends on !BR2_OPTIMIZE_FAST
+ select BR2_PACKAGE_POSTGRESQL
+ help
+ Build PostgreSQL plugin
+
+comment "PostgreSQL plugin needs a toolchain w/ wchar, dynamic library"
+ depends on BR2_USE_MMU
+ depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR
+
+comment "PostgreSQL plugin can't be built with optimize for fast"
+ depends on BR2_USE_MMU
+ depends on BR2_OPTIMIZE_FAST
+
endif
config BR2_PACKAGE_QT6BASE_SYSLOG
diff --git a/package/qt6/qt6base/qt6base.mk b/package/qt6/qt6base/qt6base.mk
index 3d07cefe92..f29a52f543 100644
--- a/package/qt6/qt6base/qt6base.mk
+++ b/package/qt6/qt6base/qt6base.mk
@@ -165,6 +165,13 @@ else
QT6BASE_CONF_OPTS += -DFEATURE_sql_mysql=OFF
endif
+ifeq ($(BR2_PACKAGE_QT6BASE_PSQL),y)
+QT6BASE_CONF_OPTS += -DFEATURE_sql_psql=ON
+QT6BASE_DEPENDENCIES += postgresql
+else
+QT6BASE_CONF_OPTS += -DFEATURE_sql_psql=OFF
+endif
+
else
QT6BASE_CONF_OPTS += -DFEATURE_sql=OFF
endif
More information about the buildroot
mailing list