2022-06-29 09:46:00 +00:00
|
|
|
QT += core gui
|
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
|
|
|
CONFIG += c++11
|
2023-02-03 03:50:24 +00:00
|
|
|
QMAKE_CXXFLAGS += -std=c++0x
|
2022-06-29 09:46:00 +00:00
|
|
|
# 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
|
2022-10-25 07:27:39 +00:00
|
|
|
DEFINES += QT_NO_VERSION_TAGGING
|
2022-06-29 09:46:00 +00:00
|
|
|
|
|
|
|
# OEM definition
|
|
|
|
DEFINES += OEM_HUAGAO
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2023-03-10 05:39:50 +00:00
|
|
|
if (contains(DEFINES, OEM_HANWANG) || contains(DEFINES, OEM_LISICHENG) || contains(DEFINES, OEM_CANGTIAN) || contains(DEFINES, OEM_ZHONGJING) || contains(DEFINES, OEM_ZIGUANG)) {
|
2023-02-03 06:24:43 +00:00
|
|
|
contains(DEFINES, OEM_HANWANG) {
|
|
|
|
RC_ICONS = ../../../app/scanner/image_rsc/logo/Hanvon_logo1.ico
|
|
|
|
}
|
|
|
|
contains(DEFINES, OEM_LISICHENG) {
|
|
|
|
RC_ICONS = ../../../app/scanner/image_rsc/logo/Lanxum_logo.ico
|
|
|
|
}
|
|
|
|
contains(DEFINES, OEM_CANGTIAN) {
|
|
|
|
RC_ICONS = ../../../app/scanner/image_rsc/logo/Cumtenn_logo.ico
|
|
|
|
}
|
|
|
|
contains(DEFINES, OEM_ZHONGJING) {
|
|
|
|
RC_ICONS = ../../../app/scanner/image_rsc/logo/Microtek_logo.ico
|
|
|
|
}
|
2023-03-10 05:39:50 +00:00
|
|
|
contains(DEFINES, OEM_ZIGUANG) {
|
|
|
|
RC_ICONS = ../../../app/scanner/image_rsc/logo/uniscan.ico
|
|
|
|
}
|
2023-02-03 03:50:24 +00:00
|
|
|
} else {
|
|
|
|
RC_ICONS = ../../../app/scanner/image_rsc/logo/logo.ico
|
|
|
|
}
|
2022-06-29 09:46:00 +00:00
|
|
|
|
|
|
|
win32 {
|
|
|
|
DEFINES += _CRT_SECURE_NO_WARNINGS
|
2022-08-18 09:11:25 +00:00
|
|
|
LIBS += -ladvapi32 -lpsapi
|
2022-06-29 09:46:00 +00:00
|
|
|
|
|
|
|
contains(QT_ARCH, i386) {
|
2023-02-03 03:50:24 +00:00
|
|
|
LIBS += -L../../../../sdk/lib/win/x86/Release
|
2022-06-29 09:46:00 +00:00
|
|
|
CONFIG(release, debug|release) {
|
2023-02-17 09:33:26 +00:00
|
|
|
QMAKE_LFLAGS += /MANIFESTUAC:"level='requireAdministrator' uiAccess='false'"
|
2022-06-29 09:46:00 +00:00
|
|
|
DESTDIR = ../../../../release/win/x86/Release/
|
|
|
|
}
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
}
|
|
|
|
}
|
2022-08-08 02:22:51 +00:00
|
|
|
contains(QT_ARCH, x86_64){
|
2023-02-03 03:50:24 +00:00
|
|
|
LIBS += -L../../../../sdk/lib/win/x64/Release
|
2022-06-29 09:46:00 +00:00
|
|
|
CONFIG(release, debug|release) {
|
2023-02-17 09:33:26 +00:00
|
|
|
QMAKE_LFLAGS += /MANIFESTUAC:"level='requireAdministrator' uiAccess='false'"
|
2022-06-29 09:46:00 +00:00
|
|
|
DESTDIR = ../../../../release/win/x64/Release/
|
2023-02-03 03:50:24 +00:00
|
|
|
}
|
|
|
|
CONFIG(debug, debug|release) {
|
2022-06-29 09:46:00 +00:00
|
|
|
}
|
2023-02-03 03:50:24 +00:00
|
|
|
}
|
|
|
|
|
2023-03-10 05:39:50 +00:00
|
|
|
if (contains(DEFINES, OEM_HANWANG) || contains(DEFINES, OEM_LISICHENG) || contains(DEFINES, OEM_CANGTIAN) || contains(DEFINES, OEM_ZHONGJING) || contains(DEFINES, OEM_ZIGUANG)) {
|
2023-02-03 06:24:43 +00:00
|
|
|
contains(DEFINES, OEM_HANWANG) {
|
|
|
|
LIBS += -lHWBase -lHWVersion
|
|
|
|
TARGET = HWUpgradeApp
|
|
|
|
}
|
|
|
|
contains(DEFINES, OEM_LISICHENG) {
|
|
|
|
LIBS += -lLSCBase -lLSCVersion
|
|
|
|
TARGET = LSCUpgradeApp
|
|
|
|
}
|
|
|
|
contains(DEFINES, OEM_CANGTIAN) {
|
|
|
|
LIBS += -lCTSBase -lCTSVersion
|
|
|
|
TARGET = CTSUpgradeApp
|
|
|
|
}
|
|
|
|
contains(DEFINES, OEM_ZHONGJING) {
|
|
|
|
LIBS += -lZJBase -lZJVersion
|
|
|
|
TARGET = ZJUpgradeApp
|
|
|
|
}
|
2023-03-10 05:39:50 +00:00
|
|
|
contains(DEFINES, OEM_ZIGUANG) {
|
|
|
|
LIBS += -lZGBase -lZGVersion
|
|
|
|
TARGET = ZGUpgradeApp
|
|
|
|
}
|
2023-02-03 03:50:24 +00:00
|
|
|
} else {
|
|
|
|
LIBS += -lHGBase -lHGVersion
|
|
|
|
TARGET = HGUpgradeApp
|
|
|
|
}
|
2022-06-29 09:46:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unix {
|
2023-02-03 03:50:24 +00:00
|
|
|
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
|
2022-06-29 09:46:00 +00:00
|
|
|
DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1)
|
|
|
|
message($$DISTRIBUTION)
|
|
|
|
ARCH = $$system(arch)
|
|
|
|
message($$ARCH)
|
2023-03-16 02:26:54 +00:00
|
|
|
QMAKE_LFLAGS += -Wl,-rpath=\'\$\$ORIGIN\'
|
2022-07-29 02:47:04 +00:00
|
|
|
|
2023-03-10 05:39:50 +00:00
|
|
|
if (contains(DEFINES, OEM_HANWANG) || contains(DEFINES, OEM_LISICHENG) || contains(DEFINES, OEM_CANGTIAN) || contains(DEFINES, OEM_ZHONGJING) || contains(DEFINES, OEM_ZIGUANG)) {
|
2023-02-03 06:24:43 +00:00
|
|
|
contains(DEFINES, OEM_HANWANG){
|
|
|
|
LIBS += -lHwBase -lHwVersion
|
|
|
|
TARGET = HwUpgradeApp
|
|
|
|
}
|
|
|
|
contains(DEFINES, OEM_LISICHENG){
|
|
|
|
LIBS += -lLscBase -lLscVersion
|
|
|
|
TARGET = LscUpgradeApp
|
|
|
|
}
|
|
|
|
contains(DEFINES, OEM_CANGTIAN){
|
|
|
|
LIBS += -lCtsBase -lCtsVersion
|
|
|
|
TARGET = CtsUpgradeApp
|
|
|
|
}
|
|
|
|
contains(DEFINES, OEM_ZHONGJING){
|
|
|
|
LIBS += -lZjBase -lZjVersion
|
|
|
|
TARGET = ZjUpgradeApp
|
|
|
|
}
|
2023-03-10 05:39:50 +00:00
|
|
|
contains(DEFINES, OEM_ZIGUANG){
|
|
|
|
LIBS += -lZgBase -lZgVersion
|
|
|
|
TARGET = ZgUpgradeApp
|
|
|
|
}
|
2023-02-03 03:50:24 +00:00
|
|
|
} else {
|
|
|
|
LIBS += -lHGBase -lHGVersion
|
|
|
|
TARGET = HGUpgradeApp
|
|
|
|
}
|
|
|
|
|
2022-06-29 09:46:00 +00:00
|
|
|
contains(DISTRIBUTION, UnionTech){
|
|
|
|
message('UOS')
|
2023-02-03 03:50:24 +00:00
|
|
|
|
2022-06-29 09:46:00 +00:00
|
|
|
contains(ARCH, x86_64){
|
2023-02-03 03:50:24 +00:00
|
|
|
LIBS += -L../../../../release/uos/x86_64
|
2022-06-29 09:46:00 +00:00
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
DESTDIR = ../../../../release/uos/x86_64/
|
|
|
|
}
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
contains(ARCH, aarch64){
|
2023-02-03 03:50:24 +00:00
|
|
|
LIBS += -L../../../../release/uos/aarch64
|
2022-06-29 09:46:00 +00:00
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
DESTDIR = ../../../../release/uos/aarch64/
|
|
|
|
}
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
contains(ARCH, mips64){
|
2023-02-03 03:50:24 +00:00
|
|
|
LIBS += -L../../../../release/uos/mips64
|
2022-06-29 09:46:00 +00:00
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
DESTDIR = ../../../../release/uos/mips64/
|
|
|
|
}
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
|
2022-10-14 01:52:14 +00:00
|
|
|
}
|
|
|
|
}
|
2023-02-03 03:50:24 +00:00
|
|
|
contains(ARCH, loongarch64){
|
|
|
|
LIBS += -L../../../../release/uos/loongarch64
|
2022-10-14 01:52:14 +00:00
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
DESTDIR = ../../../../release/uos/loongarch64/
|
|
|
|
}
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
|
2022-06-29 09:46:00 +00:00
|
|
|
}
|
|
|
|
}
|
2023-02-03 06:24:43 +00:00
|
|
|
} else {
|
2022-06-29 09:46:00 +00:00
|
|
|
message('KYLIN')
|
2023-02-03 03:50:24 +00:00
|
|
|
|
2022-06-29 09:46:00 +00:00
|
|
|
contains(ARCH, x86_64){
|
2023-02-03 03:50:24 +00:00
|
|
|
LIBS += -L../../../../release/kylin/x86_64
|
2022-06-29 09:46:00 +00:00
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
DESTDIR = ../../../../release/kylin/x86_64/
|
|
|
|
}
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
contains(ARCH, aarch64){
|
2023-02-03 03:50:24 +00:00
|
|
|
LIBS += -L../../../../release/kylin/aarch64
|
2022-06-29 09:46:00 +00:00
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
DESTDIR = ../../../../release/kylin/aarch64/
|
|
|
|
}
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
contains(ARCH, mips64){
|
2023-02-03 03:50:24 +00:00
|
|
|
LIBS += -L../../../../release/kylin/mips64
|
2022-06-29 09:46:00 +00:00
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
DESTDIR = ../../../../release/kylin/mips64/
|
|
|
|
}
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
|
2022-10-14 01:52:14 +00:00
|
|
|
}
|
|
|
|
}
|
2023-02-03 03:50:24 +00:00
|
|
|
contains(ARCH, loongarch64){
|
|
|
|
LIBS += -L../../../../release/kylin/loongarch64
|
2022-10-14 01:52:14 +00:00
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
DESTDIR = ../../../../release/kylin/loongarch64/
|
|
|
|
}
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
|
2022-06-29 09:46:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../app/upgrade/
|
|
|
|
INCLUDEPATH += $$PWD/../../../modules/
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
../../../app/upgrade/HGUpgrade.cpp \
|
|
|
|
../../../app/upgrade/main.cpp \
|
2022-06-30 08:42:46 +00:00
|
|
|
../../../app/upgrade/mainwindow.cpp \
|
2022-06-29 09:46:00 +00:00
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
../../../app/upgrade/HGUpgrade.h \
|
2022-06-30 08:42:46 +00:00
|
|
|
../../../app/upgrade/mainwindow.h \
|
2022-06-29 09:46:00 +00:00
|
|
|
|
|
|
|
FORMS += \
|
|
|
|
../../../app/upgrade/mainwindow.ui
|
2022-07-19 10:06:08 +00:00
|
|
|
|
|
|
|
RESOURCES += \
|
2022-11-10 01:30:52 +00:00
|
|
|
../../../app/upgrade/Upgrade_resource.qrc
|
2022-07-19 10:06:08 +00:00
|
|
|
|
|
|
|
TRANSLATIONS += \
|
|
|
|
../../../app/upgrade/Upgrade_zh_CN.ts \
|
|
|
|
|
|
|
|
DISTFILES += \
|
|
|
|
../../../app/upgrade/Upgrade_zh_CN.qm \
|