mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
qt: 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
8c8fd49864
commit
5c46aabad7
@ -30,11 +30,15 @@ config BR2_PACKAGE_QT_ODBC
|
|||||||
|
|
||||||
config BR2_PACKAGE_QT_PSQL
|
config BR2_PACKAGE_QT_PSQL
|
||||||
bool "PostgreSQL Driver"
|
bool "PostgreSQL Driver"
|
||||||
depends on BROKEN # libpgsql not in BR
|
select BR2_PACKAGE_POSTGRESQL
|
||||||
|
depends on BR2_TOOLCHAIN_USES_GLIBC
|
||||||
help
|
help
|
||||||
Build PostgreSQL driver
|
Build PostgreSQL driver
|
||||||
If unsure, say n.
|
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_QT_SQLITE_NONE
|
default BR2_PACKAGE_QT_SQLITE_NONE
|
||||||
|
@ -343,6 +343,8 @@ QT_CONFIGURE_OPTS += -qt-sql-odbc
|
|||||||
endif
|
endif
|
||||||
ifeq ($(BR2_PACKAGE_QT_PSQL),y)
|
ifeq ($(BR2_PACKAGE_QT_PSQL),y)
|
||||||
QT_CONFIGURE_OPTS += -qt-sql-psql
|
QT_CONFIGURE_OPTS += -qt-sql-psql
|
||||||
|
QT_CONFIGURE_ENV += PSQL_LIBS=-L$(STAGING_DIR)/usr/lib
|
||||||
|
QT_DEPENDENCIES += postgresql
|
||||||
endif
|
endif
|
||||||
ifeq ($(BR2_PACKAGE_QT_SQLITE_QT),y)
|
ifeq ($(BR2_PACKAGE_QT_SQLITE_QT),y)
|
||||||
QT_CONFIGURE_OPTS += -qt-sql-sqlite
|
QT_CONFIGURE_OPTS += -qt-sql-sqlite
|
||||||
@ -503,6 +505,7 @@ define QT_CONFIGURE_CMDS
|
|||||||
PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \
|
PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \
|
||||||
PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
|
PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
|
||||||
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig:$(PKG_CONFIG_PATH)" \
|
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig:$(PKG_CONFIG_PATH)" \
|
||||||
|
$(QT_CONFIGURE_ENV) \
|
||||||
MAKEFLAGS="$(MAKEFLAGS) -j$(PARALLEL_JOBS)" ./configure \
|
MAKEFLAGS="$(MAKEFLAGS) -j$(PARALLEL_JOBS)" ./configure \
|
||||||
$(if $(VERBOSE),-verbose,-silent) \
|
$(if $(VERBOSE),-verbose,-silent) \
|
||||||
-force-pkg-config \
|
-force-pkg-config \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user