qt5base: add postgresql driver support
Signed-off-by: Floris Bos <bos@je-eigen-domein.nl> Reviewed-by: Fatih Aşıcı <fatih.asici@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
21a85fd02a
commit
8c8fd49864
|
@ -62,6 +62,18 @@ config BR2_PACKAGE_QT5BASE_MYSQL
|
||||||
help
|
help
|
||||||
Build MySQL plugin
|
Build MySQL plugin
|
||||||
If unsure, say n.
|
If unsure, say n.
|
||||||
|
|
||||||
|
config BR2_PACKAGE_QT5BASE_PSQL
|
||||||
|
bool "PostgreSQL Plugin"
|
||||||
|
select BR2_PACKAGE_POSTGRESQL
|
||||||
|
depends on BR2_TOOLCHAIN_USES_GLIBC
|
||||||
|
help
|
||||||
|
Build PostgreSQL plugin
|
||||||
|
If unsure, say n.
|
||||||
|
|
||||||
|
comment "PostgreSQL needs an (e)glibc toolchain"
|
||||||
|
depends on !BR2_TOOLCHAIN_USES_GLIBC
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "SQLite 3 support"
|
prompt "SQLite 3 support"
|
||||||
default BR2_PACKAGE_QT5BASE_SQLITE_NONE
|
default BR2_PACKAGE_QT5BASE_SQLITE_NONE
|
||||||
|
|
|
@ -66,6 +66,14 @@ else
|
||||||
QT5BASE_CONFIGURE_OPTS += -no-sql-mysql
|
QT5BASE_CONFIGURE_OPTS += -no-sql-mysql
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_QT5BASE_PSQL),y)
|
||||||
|
QT5BASE_CONFIGURE_OPTS += -plugin-sql-psql
|
||||||
|
QT5BASE_CONFIGURE_ENV += PSQL_LIBS=-L$(STAGING_DIR)/usr/lib
|
||||||
|
QT5BASE_DEPENDENCIES += postgresql
|
||||||
|
else
|
||||||
|
QT5BASE_CONFIGURE_OPTS += -no-sql-psql
|
||||||
|
endif
|
||||||
|
|
||||||
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_SQLITE_QT),-plugin-sql-sqlite)
|
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_SQLITE_QT),-plugin-sql-sqlite)
|
||||||
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_SQLITE_SYSTEM),-system-sqlite)
|
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_SQLITE_SYSTEM),-system-sqlite)
|
||||||
QT5BASE_DEPENDENCIES += $(if $(BR2_PACKAGE_QT5BASE_SQLITE_SYSTEM),sqlite)
|
QT5BASE_DEPENDENCIES += $(if $(BR2_PACKAGE_QT5BASE_SQLITE_SYSTEM),sqlite)
|
||||||
|
@ -170,6 +178,7 @@ define QT5BASE_CONFIGURE_CMDS
|
||||||
PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig" \
|
PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig" \
|
||||||
PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \
|
PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \
|
||||||
MAKEFLAGS="$(MAKEFLAGS) -j$(PARALLEL_JOBS)" \
|
MAKEFLAGS="$(MAKEFLAGS) -j$(PARALLEL_JOBS)" \
|
||||||
|
$(QT5BASE_CONFIGURE_ENV) \
|
||||||
./configure \
|
./configure \
|
||||||
-v \
|
-v \
|
||||||
-prefix /usr \
|
-prefix /usr \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user