115 lines
2.9 KiB
Prolog
115 lines
2.9 KiB
Prolog
QT += core gui
|
|
|
|
#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
|
|
}
|
|
}
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
CONFIG += c++17
|
|
|
|
QMAKE_LFLAGS += /ignore:4099
|
|
QMAKE_LFLAGS += /NODEFAULTLIB:LIBCMTD
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -wd4100
|
|
|
|
include("$$PWD/QtSingleApplication/qtsingleapplication.pri")
|
|
|
|
DEFINES += HAVE_CONFIG_H
|
|
DEFINES += _CRT_SECURE_NO_WARNINGS
|
|
|
|
INCLUDEPATH += $$PWD/../../SDK/include
|
|
|
|
|
|
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
|
|
win32:LIBS += $$PWD/..\..\SDK\lib\hvd.lib
|
|
win32:LIBS += $$PWD/..\..\SDK\lib\zlibd.lib
|
|
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
|
|
win32:LIBS += $$PWD/..\..\SDK\lib\hv.lib
|
|
win32:LIBS += $$PWD/..\..\SDK\lib\zlib.lib
|
|
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 += \
|
|
datafetcher.cpp \
|
|
devicepropertypage.cpp \
|
|
globalparameters.cpp \
|
|
kutilities.cpp \
|
|
main.cpp \
|
|
maindialog.cpp \
|
|
mainwindow.cpp \
|
|
mysqlutils.cpp \
|
|
mytablemodel.cpp \
|
|
ziputils.cpp
|
|
|
|
HEADERS += \
|
|
datafetcher.h \
|
|
devicepropertypage.h \
|
|
globalparameters.h \
|
|
kutilities.h \
|
|
maindialog.h \
|
|
mainwindow.h \
|
|
mysqlutils.h \
|
|
mytablemodel.h \
|
|
singleton.h \
|
|
ziputils.h
|
|
|
|
FORMS += \
|
|
maindialog.ui \
|
|
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
|
|
|
|
RESOURCES += \
|
|
emscfgres.qrc
|
|
|
|
RESOURCES += qdarkstyle/dark/darkstyle.qrc
|
|
RESOURCES += qdarkstyle/light/lightstyle.qrc
|
|
RESOURCES += qdarkstyle/bingle/binglestyle.qrc
|