1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
CONFIG += dll
TARGET = te_mysql
include (../config.pri)
# Path definitions
# ----------------------------------------------------------
MSQLSRCPATH = $${TERRALIBPATH}/src/terralib/drivers/MySQL
MSQLDEPPATH = $${TERRALIBPATH}/dependencies
unix:MSQLDEPPATH = $${MSQLDEPPATH}/linux
win32:MSQLDEPPATH = $${MSQLDEPPATH}/win32
MSQLDEPPATH = $${MSQLDEPPATH}/MySQL
# ----------------------------------------------------------
DEFINES += TLMYSQL_AS_DLL
LIBS += -lterralib
win32 {
!win32-g++ {
QMAKE_LIBDIR += $${MSQLDEPPATH}/lib/ms
LIBS += -llibmysql
}
else:LIBS += -L$${MSQLDEPPATH}/lib/mingw -lmysql_mingw
}
unix:LIBS += -L$${MSQLDEPPATH}/lib \
-lmysqlclient
INCLUDEPATH += $${TERRALIBPATH}/src/terralib/drivers/MySQL \
$${TERRALIBPATH}/src/terralib/drivers/MySQL/include
HEADERS += $${MSQLSRCPATH}/TeMySQL.h \
$${MSQLSRCPATH}/TeMySQLDefines.h
SOURCES += $${MSQLSRCPATH}/TeMySQL.cpp
include (../install_cfg.pri)
CONFIG(copy_dir_files) {
msql.path = $${DEPLOY_DIR}/include/MySQL/include
msql.files = $${MSQLSRCPATH}/include/*.h
include.path = $${DEPLOY_DIR}/include/MySQL
include.files = $${MSQLSRCPATH}/*.h
INSTALLS += msql include
}
win32 {
bin.files = $${MSQLDEPPATH}/bin/*.dll
bin.path = $${DEPLOY_DIR}/bin
INSTALLS += bin
}
|