QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++11 QMAKE_CXXFLAGS += -std=c++0x # 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 DEFINES += QT_NO_VERSION_TAGGING # 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 if (contains(DEFINES, OEM_HANWANG) || contains(DEFINES, OEM_LISICHENG) || contains(DEFINES, OEM_CANGTIAN) || contains(DEFINES, OEM_ZHONGJING)) { 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 } } else { RC_ICONS = ../../../app/scanner/image_rsc/logo/logo.ico } win32 { DEFINES += _CRT_SECURE_NO_WARNINGS QMAKE_LFLAGS += /MANIFESTUAC:"level='requireAdministrator' uiAccess='false'" LIBS += -ladvapi32 -lpsapi contains(QT_ARCH, i386) { LIBS += -L../../../../sdk/lib/win/x86/Release CONFIG(release, debug|release) { DESTDIR = ../../../../release/win/x86/Release/ } CONFIG(debug, debug|release) { } } contains(QT_ARCH, x86_64){ LIBS += -L../../../../sdk/lib/win/x64/Release CONFIG(release, debug|release) { DESTDIR = ../../../../release/win/x64/Release/ } CONFIG(debug, debug|release) { } } if (contains(DEFINES, OEM_HANWANG) || contains(DEFINES, OEM_LISICHENG) || contains(DEFINES, OEM_CANGTIAN) || contains(DEFINES, OEM_ZHONGJING)) { 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 } } else { LIBS += -lHGBase -lHGVersion TARGET = HGUpgradeApp } } unix { QMAKE_LFLAGS += -static-libstdc++ -static-libgcc DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1) message($$DISTRIBUTION) ARCH = $$system(arch) message($$ARCH) QMAKE_LFLAGS += -Wl,-rpath=. if (contains(DEFINES, OEM_HANWANG) || contains(DEFINES, OEM_LISICHENG) || contains(DEFINES, OEM_CANGTIAN) || contains(DEFINES, OEM_ZHONGJING)) { 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 } } else { LIBS += -lHGBase -lHGVersion TARGET = HGUpgradeApp } contains(DISTRIBUTION, UnionTech){ message('UOS') DEFINES += UOS contains(ARCH, x86_64){ LIBS += -L../../../../release/uos/x86_64 CONFIG(release, debug|release) { DESTDIR = ../../../../release/uos/x86_64/ } CONFIG(debug, debug|release) { } } contains(ARCH, aarch64){ LIBS += -L../../../../release/uos/aarch64 CONFIG(release, debug|release) { DESTDIR = ../../../../release/uos/aarch64/ } CONFIG(debug, debug|release) { } } contains(ARCH, mips64){ LIBS += -L../../../../release/uos/mips64 CONFIG(release, debug|release) { DESTDIR = ../../../../release/uos/mips64/ } CONFIG(debug, debug|release) { } } contains(ARCH, loongarch64){ LIBS += -L../../../../release/uos/loongarch64 CONFIG(release, debug|release) { DESTDIR = ../../../../release/uos/loongarch64/ } CONFIG(debug, debug|release) { } } } else { message('KYLIN') DEFINES += KYLIN contains(ARCH, x86_64){ LIBS += -L../../../../release/kylin/x86_64 CONFIG(release, debug|release) { DESTDIR = ../../../../release/kylin/x86_64/ } CONFIG(debug, debug|release) { } } contains(ARCH, aarch64){ LIBS += -L../../../../release/kylin/aarch64 CONFIG(release, debug|release) { DESTDIR = ../../../../release/kylin/aarch64/ } CONFIG(debug, debug|release) { } } contains(ARCH, mips64){ LIBS += -L../../../../release/kylin/mips64 CONFIG(release, debug|release) { DESTDIR = ../../../../release/kylin/mips64/ } CONFIG(debug, debug|release) { } } contains(ARCH, loongarch64){ LIBS += -L../../../../release/kylin/loongarch64 CONFIG(release, debug|release) { DESTDIR = ../../../../release/kylin/loongarch64/ } CONFIG(debug, debug|release) { } } } } INCLUDEPATH += $$PWD/../../../app/upgrade/ INCLUDEPATH += $$PWD/../../../modules/ SOURCES += \ ../../../app/upgrade/HGUpgrade.cpp \ ../../../app/upgrade/main.cpp \ ../../../app/upgrade/mainwindow.cpp \ HEADERS += \ ../../../app/upgrade/HGUpgrade.h \ ../../../app/upgrade/mainwindow.h \ FORMS += \ ../../../app/upgrade/mainwindow.ui RESOURCES += \ ../../../app/upgrade/Upgrade_resource.qrc TRANSLATIONS += \ ../../../app/upgrade/Upgrade_zh_CN.ts \ DISTFILES += \ ../../../app/upgrade/Upgrade_zh_CN.qm \