qt: fix mysql dependency and disable unavailable sql drivers

We don't have the needed dependencies in BR for most of the SQL drivers,
so mark those options as broken.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Peter Korsgaard 2010-07-16 23:55:30 +02:00
parent b922151c25
commit 470e9deec1
2 changed files with 10 additions and 1 deletions

View File

@ -6,24 +6,30 @@ menuconfig BR2_PACKAGE_QT_SQL_MODULE
if BR2_PACKAGE_QT_SQL_MODULE if BR2_PACKAGE_QT_SQL_MODULE
config BR2_PACKAGE_QT_MYSQL config BR2_PACKAGE_QT_MYSQL
bool "MySQL Driver" bool "MySQL Driver"
select BR2_PACKAGE_MYSQL_CLIENT
select BR2_PACKAGE_NCURSES
select BR2_PACKAGE_READLINE
help help
Build MySQL driver Build MySQL driver
If unsure, say n. If unsure, say n.
config BR2_PACKAGE_QT_IBASE config BR2_PACKAGE_QT_IBASE
bool "iBase Driver" bool "iBase Driver"
depends on BROKEN # libfbclient not in BR
help help
Build iBase driver Build iBase driver
If unsure, say n. If unsure, say n.
config BR2_PACKAGE_QT_ODBC config BR2_PACKAGE_QT_ODBC
bool "ODBC Driver" bool "ODBC Driver"
depends on BROKEN # libodbc not in BR
help help
Build ODBC driver Build ODBC driver
If unsure, say n. If unsure, say n.
config BR2_PACKAGE_QT_PSQL config BR2_PACKAGE_QT_PSQL
bool "PostgreSQL Driver" bool "PostgreSQL Driver"
depends on BROKEN # libpgsql not in BR
help help
Build PostgreSQL driver Build PostgreSQL driver
If unsure, say n. If unsure, say n.
@ -36,6 +42,7 @@ config BR2_PACKAGE_QT_SQLITE
config BR2_PACKAGE_QT_SQLITE2 config BR2_PACKAGE_QT_SQLITE2
bool "SQLite 2 Driver" bool "SQLite 2 Driver"
depends on BROKEN # sqlite2 not in BR
help help
Build SQLite 2 driver Build SQLite 2 driver
If unsure, say n. If unsure, say n.

View File

@ -273,7 +273,9 @@ ifeq ($(BR2_PACKAGE_QT_IBASE),y)
QT_CONFIGURE+= -qt-sql-ibase QT_CONFIGURE+= -qt-sql-ibase
endif endif
ifeq ($(BR2_PACKAGE_QT_MYSQL),y) ifeq ($(BR2_PACKAGE_QT_MYSQL),y)
QT_CONFIGURE+= -qt-sql-mysql QT_CONFIGURE+= -qt-sql-mysql -I $(STAGING_DIR)/usr/include/mysql -L $(STAGING_DIR)/usr/lib/mysql
QT_DEP_LIBS+=mysql_client
endif endif
ifeq ($(BR2_PACKAGE_QT_ODBC),y) ifeq ($(BR2_PACKAGE_QT_ODBC),y)
QT_CONFIGURE+= -qt-sql-odbc QT_CONFIGURE+= -qt-sql-odbc