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

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

View File

@ -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

View File

@ -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