2024-03-04 09:57:20 +00:00
|
|
|
QT += core gui
|
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
|
|
|
CONFIG += c++11
|
|
|
|
|
|
|
|
# The following define makes your compiler emit warnings if you use
|
|
|
|
# any Qt feature that has been marked deprecated (the exact warnings
|
|
|
|
# depend on your compiler). Please consult the documentation of the
|
|
|
|
# deprecated API in order to know how to port your code away from it.
|
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
|
|
|
|
# You can also make your code fail to compile if it uses deprecated APIs.
|
|
|
|
# In order to do so, uncomment the following line.
|
|
|
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
|
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
|
|
|
|
TARGET = HGPdtJsonTool
|
|
|
|
|
|
|
|
RC_ICONS = image_rsc/logo/logo.ico
|
|
|
|
|
2024-03-05 07:24:42 +00:00
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
MY_CONFIGURE = Debug
|
|
|
|
}
|
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
MY_CONFIGURE = Release
|
|
|
|
}
|
|
|
|
|
|
|
|
MY_OS = windows
|
|
|
|
OEM_NAME = huagao
|
|
|
|
OEM_PREFIX = HG
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
|
|
|
|
contains(QT_ARCH, i386) {
|
|
|
|
MY_ARCH = x86
|
|
|
|
}
|
|
|
|
contains(QT_ARCH, x86_64) {
|
|
|
|
MY_ARCH = x64
|
|
|
|
}
|
2024-03-06 11:03:18 +00:00
|
|
|
|
|
|
|
LIBS += -L$$PWD/../../../code_app/build2/build/$${MY_OS}/$${OEM_NAME}/$${MY_ARCH}/$${MY_CONFIGURE} -l$${OEM_PREFIX}Base
|
2024-03-05 07:24:42 +00:00
|
|
|
}
|
|
|
|
|
2024-03-06 11:03:18 +00:00
|
|
|
INCLUDEPATH += $$PWD/../../../code_app/modules
|
2024-03-05 07:24:42 +00:00
|
|
|
DESTDIR = $$PWD/../../../code_app/build2/build/$${MY_OS}/$${OEM_NAME}/$${MY_ARCH}/$${MY_CONFIGURE}
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
|
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
DESTEXE_PATH = $${PWD}/../../../release/win/$${MY_ARCH}/$${MY_CONFIGURE}/
|
|
|
|
DESTEXE_PATH = $$replace(DESTEXE_PATH, /, \\)
|
|
|
|
message(DESTEXE_PATH: $$DESTEXE_PATH)
|
|
|
|
|
|
|
|
SRCEXE_FILE = $${DESTDIR}/$${TARGET}.exe
|
|
|
|
SRCEXE_FILE = $$replace(SRCEXE_FILE, /, \\)
|
|
|
|
message(SRCEXE_FILE: $$SRCEXE_FILE)
|
|
|
|
SRCPDB_FILE = $${DESTDIR}/$${TARGET}.pdb
|
|
|
|
SRCPDB_FILE = $$replace(SRCPDB_FILE, /, \\)
|
|
|
|
message(SRCPDB_FILE: $$SRCPDB_FILE)
|
|
|
|
|
|
|
|
QMAKE_POST_LINK += xcopy /y $$SRCEXE_FILE $$DESTEXE_PATH && xcopy /y $$SRCPDB_FILE $$DESTEXE_PATH
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-04 09:57:20 +00:00
|
|
|
SOURCES += \
|
2024-03-06 11:03:18 +00:00
|
|
|
dialog_mymessagebox.cpp \
|
2024-03-04 09:57:20 +00:00
|
|
|
main.cpp \
|
|
|
|
mainwindow.cpp \
|
|
|
|
analysisjson.cpp
|
|
|
|
|
|
|
|
HEADERS += \
|
2024-03-06 11:03:18 +00:00
|
|
|
dialog_mymessagebox.h \
|
2024-03-04 09:57:20 +00:00
|
|
|
mainwindow.h \
|
|
|
|
analysisjson.h
|
|
|
|
|
|
|
|
FORMS += \
|
2024-03-06 11:03:18 +00:00
|
|
|
dialog_mymessagebox.ui \
|
2024-03-04 09:57:20 +00:00
|
|
|
mainwindow.ui
|
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
HGPdtJsonTool_resource.qrc
|
|
|
|
|
|
|
|
TRANSLATIONS += \
|
|
|
|
HGPdtJsonTool_zh_CN.ts
|
|
|
|
|
|
|
|
DISTFILES += \
|
|
|
|
HGPdtJsonTool_zh_CN.qm
|