2024-09-10 14:38:23 +08:00
|
|
|
QT += core gui
|
|
|
|
|
2024-10-11 14:20:12 +08:00
|
|
|
#DEFINES += _USING_MYSQL_CONNECTOR_
|
|
|
|
#DEFINES += _USING_QT_MYSQL_CONNECTOR_
|
|
|
|
DEFINES += _USING_MYSQL_51_LIB_
|
|
|
|
|
|
|
|
contains(DEFINES,_USING_MYSQL_CONNECTOR_){
|
|
|
|
message('-->> using mysql connector module')
|
|
|
|
INCLUDEPATH += $$PWD/../../SDK/include/mysql
|
|
|
|
win32:LIBS += $$PWD/..\..\SDK\lib\mysql\mysqlcppconn.lib
|
|
|
|
}
|
|
|
|
|
|
|
|
contains(DEFINES,_USING_QT_MYSQL_CONNECTOR_){
|
|
|
|
message('-->> using QT sql module')
|
|
|
|
QT += sql
|
|
|
|
}
|
|
|
|
|
|
|
|
contains(DEFINES,_USING_MYSQL_51_LIB_){
|
|
|
|
message('-->> using mysql 5.1 library')
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../SDK/mysql/include
|
|
|
|
CONFIG(debug, debug|debug) {
|
|
|
|
win32:LIBS += $$PWD/..\..\SDK/mysql/lib/debug/libmysql.lib
|
|
|
|
win32:LIBS += $$PWD/..\..\SDK/mysql/lib/debug/mysqlclient.lib
|
|
|
|
}
|
|
|
|
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
win32:LIBS += $$PWD/..\..\SDK/mysql/lib/opt/libmysql.lib
|
|
|
|
win32:LIBS += $$PWD/..\..\SDK/mysql/lib/opt/mysqlclient.lib
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-09-10 14:38:23 +08:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
|
|
|
CONFIG += c++17
|
|
|
|
|
|
|
|
QMAKE_LFLAGS += /ignore:4099
|
2024-10-11 14:20:12 +08:00
|
|
|
QMAKE_LFLAGS += /NODEFAULTLIB:LIBCMTD
|
|
|
|
|
2024-09-10 14:38:23 +08:00
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -wd4100
|
|
|
|
|
|
|
|
include("$$PWD/QtSingleApplication/qtsingleapplication.pri")
|
|
|
|
|
|
|
|
DEFINES += HAVE_CONFIG_H
|
|
|
|
DEFINES += _CRT_SECURE_NO_WARNINGS
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../SDK/include
|
|
|
|
|
2024-10-11 14:20:12 +08:00
|
|
|
|
2024-09-10 14:38:23 +08:00
|
|
|
CONFIG(debug, debug|debug) {
|
|
|
|
INCLUDEPATH += "D:/Visual Leak Detector/include"
|
|
|
|
win32:LIBS += "D:/Visual Leak Detector/lib/Win64/vld.lib"
|
|
|
|
}
|
|
|
|
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
win32:LIBS += $$PWD/..\..\SDK\lib\libdesd.lib
|
|
|
|
win32:LIBS += $$PWD/..\..\SDK\lib\OpenSSL_VC\libcrypto64MDd.lib
|
|
|
|
win32:LIBS += $$PWD/..\..\SDK\lib\OpenSSL_VC\libssl64MDd.lib
|
2024-10-11 14:20:12 +08:00
|
|
|
win32:LIBS += $$PWD/..\..\SDK\lib\hvd.lib
|
|
|
|
win32:LIBS += $$PWD/..\..\SDK\lib\zlibd.lib
|
2024-09-10 14:38:23 +08:00
|
|
|
win32:LIBS += Ws2_32.lib
|
|
|
|
}else{
|
|
|
|
win32:LIBS += $$PWD/..\..\SDK\lib\libdes.lib
|
|
|
|
win32:LIBS += $$PWD/..\..\SDK\lib\OpenSSL_VC\libcrypto64MD.lib
|
|
|
|
win32:LIBS += $$PWD/..\..\SDK\lib\OpenSSL_VC\libssl64MD.lib
|
2024-10-11 14:20:12 +08:00
|
|
|
win32:LIBS += $$PWD/..\..\SDK\lib\hv.lib
|
|
|
|
win32:LIBS += $$PWD/..\..\SDK\lib\zlib.lib
|
2024-09-10 14:38:23 +08:00
|
|
|
win32:LIBS += Ws2_32.lib
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# You can make your code fail to compile if it uses deprecated APIs.
|
|
|
|
# In order to do so, uncomment the following line.
|
|
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
|
|
|
|
SOURCES += \
|
2024-09-12 16:23:44 +08:00
|
|
|
datafetcher.cpp \
|
|
|
|
devicepropertypage.cpp \
|
|
|
|
globalparameters.cpp \
|
2024-09-10 14:38:23 +08:00
|
|
|
main.cpp \
|
2024-09-10 16:55:41 +08:00
|
|
|
maindialog.cpp \
|
2024-09-12 16:23:44 +08:00
|
|
|
mainwindow.cpp \
|
2024-10-11 14:20:12 +08:00
|
|
|
mysqlutils.cpp \
|
|
|
|
mytablemodel.cpp \
|
|
|
|
ziputils.cpp
|
2024-09-10 14:38:23 +08:00
|
|
|
|
|
|
|
HEADERS += \
|
2024-09-12 16:23:44 +08:00
|
|
|
datafetcher.h \
|
|
|
|
devicepropertypage.h \
|
|
|
|
globalparameters.h \
|
2024-09-10 16:55:41 +08:00
|
|
|
maindialog.h \
|
2024-09-12 16:23:44 +08:00
|
|
|
mainwindow.h \
|
2024-10-11 14:20:12 +08:00
|
|
|
mysqlutils.h \
|
2024-09-12 16:23:44 +08:00
|
|
|
mytablemodel.h \
|
2024-10-11 14:20:12 +08:00
|
|
|
singleton.h \
|
|
|
|
ziputils.h
|
2024-09-10 14:38:23 +08:00
|
|
|
|
|
|
|
FORMS += \
|
2024-09-10 16:55:41 +08:00
|
|
|
maindialog.ui \
|
2024-09-10 14:38:23 +08:00
|
|
|
mainwindow.ui
|
|
|
|
|
|
|
|
# Default rules for deployment.
|
|
|
|
qnx: target.path = /tmp/$${TARGET}/bin
|
|
|
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
|
|
|
!isEmpty(target.path): INSTALLS += target
|
2024-09-10 16:12:38 +08:00
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
emscfgres.qrc
|
2024-10-11 14:20:12 +08:00
|
|
|
|
|
|
|
RESOURCES += qdarkstyle/dark/darkstyle.qrc
|
|
|
|
RESOURCES += qdarkstyle/light/lightstyle.qrc
|
|
|
|
RESOURCES += qdarkstyle/bingle/binglestyle.qrc
|