0
|
1 |
TARGET = qsqlmysql
|
|
2 |
|
|
3 |
HEADERS = ../../../sql/drivers/mysql/qsql_mysql.h
|
|
4 |
SOURCES = main.cpp \
|
|
5 |
../../../sql/drivers/mysql/qsql_mysql.cpp
|
|
6 |
|
|
7 |
unix: {
|
|
8 |
isEmpty(QT_LFLAGS_MYSQL) {
|
|
9 |
!contains(LIBS, .*mysqlclient.*):!contains(LIBS, .*mysqld.*) {
|
|
10 |
use_libmysqlclient_r:LIBS *= -lmysqlclient_r
|
|
11 |
else:LIBS *= -lmysqlclient
|
|
12 |
}
|
|
13 |
} else {
|
|
14 |
LIBS *= $$QT_LFLAGS_MYSQL
|
|
15 |
QMAKE_CXXFLAGS *= $$QT_CFLAGS_MYSQL
|
|
16 |
}
|
|
17 |
}
|
|
18 |
|
|
19 |
win32:!contains(LIBS, .*mysql.*):!contains(LIBS, .*mysqld.*) {
|
|
20 |
LIBS *= -llibmysql
|
|
21 |
}
|
|
22 |
|
|
23 |
include(../qsqldriverbase.pri)
|