code_app/build-qt/HGSolution/HGUpgrade/HGUpgrade.pro

144 lines
4.8 KiB
Prolog
Raw Normal View History

2022-06-29 09:46:00 +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
# OEM definition
DEFINES += OEM_HUAGAO
RC_ICONS = ../../../app/scanner/image_rsc/logo/logo.ico
# 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
2022-07-20 08:05:38 +00:00
TARGET = HGUpgradeApp
2022-06-29 09:46:00 +00:00
win32 {
DEFINES += _CRT_SECURE_NO_WARNINGS
LIBS += -ladvapi32 -lpsapi
2022-06-29 09:46:00 +00:00
contains(QT_ARCH, i386) {
LIBS += -L../../../../sdk/lib/win/x86/Release -lHGBase -lHGVersion
2022-06-29 09:46:00 +00:00
CONFIG(release, debug|release) {
DESTDIR = ../../../../release/win/x86/Release/
}
CONFIG(debug, debug|release) {
2022-06-29 09:46:00 +00:00
}
}
2022-08-08 02:22:51 +00:00
contains(QT_ARCH, x86_64){
LIBS += -L../../../../sdk/lib/win/x64/Release -lHGBase -lHGVersion
2022-06-29 09:46:00 +00:00
CONFIG(release, debug|release) {
DESTDIR = ../../../../release/win/x64/Release/
}
CONFIG(debug, debug|release) {
2022-06-29 09:46:00 +00:00
}
}
}
unix {
2022-08-05 10:03:53 +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)
2022-07-29 02:47:04 +00:00
QMAKE_LFLAGS += -Wl,-rpath=.
2022-06-29 09:46:00 +00:00
contains(DISTRIBUTION, UnionTech){
message('UOS')
DEFINES += UOS
contains(ARCH, x86_64){
LIBS += -L../../../../release/uos/x86_64 -lHGBase -lHGVersion
2022-06-29 09:46:00 +00:00
CONFIG(release, debug|release) {
DESTDIR = ../../../../release/uos/x86_64/
}
CONFIG(debug, debug|release) {
}
}
contains(ARCH, aarch64){
LIBS += -L../../../../release/uos/aarch64 -lHGBase -lHGVersion
2022-06-29 09:46:00 +00:00
CONFIG(release, debug|release) {
DESTDIR = ../../../../release/uos/aarch64/
}
CONFIG(debug, debug|release) {
}
}
contains(ARCH, mips64){
LIBS += -L../../../../release/uos/mips64 -lHGBase -lHGVersion
2022-06-29 09:46:00 +00:00
CONFIG(release, debug|release) {
DESTDIR = ../../../../release/uos/mips64/
}
CONFIG(debug, debug|release) {
}
}
}else{
message('KYLIN')
DEFINES += KYLIN
contains(ARCH, x86_64){
LIBS += -L../../../../release/kylin/x86_64 -lHGBase -lHGVersion
2022-06-29 09:46:00 +00:00
CONFIG(release, debug|release) {
DESTDIR = ../../../../release/kylin/x86_64/
}
CONFIG(debug, debug|release) {
}
}
contains(ARCH, aarch64){
LIBS += -L../../../../release/kylin/aarch64 -lHGBase -lHGVersion
2022-06-29 09:46:00 +00:00
CONFIG(release, debug|release) {
DESTDIR = ../../../../release/kylin/aarch64/
}
CONFIG(debug, debug|release) {
}
}
contains(ARCH, mips64){
LIBS += -L../../../../release/kylin/mips64 -lHGBase -lHGVersion
2022-06-29 09:46:00 +00:00
CONFIG(release, debug|release) {
DESTDIR = ../../../../release/kylin/mips64/
}
CONFIG(debug, debug|release) {
}
}
}
}
INCLUDEPATH += $$PWD/../../../app/upgrade/
INCLUDEPATH += $$PWD/../../../modules/
SOURCES += \
../../../app/upgrade/HGUpgrade.cpp \
../../../app/upgrade/main.cpp \
../../../app/upgrade/mainwindow.cpp \
2022-06-29 09:46:00 +00:00
HEADERS += \
../../../app/upgrade/HGUpgrade.h \
../../../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 += \
../../../app/scanner/Scanner_resource.qrc
TRANSLATIONS += \
../../../app/upgrade/Upgrade_zh_CN.ts \
DISTFILES += \
../../../app/upgrade/Upgrade_zh_CN.qm \