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

182 lines
7.2 KiB
Prolog

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
TARGET = HuaGoScanUpgrade
win32 {
DEFINES += _CRT_SECURE_NO_WARNINGS
DEFINES += CURL_STATICLIB
INCLUDEPATH += $$PWD/../../../third_party/libcurl/windows/include
LIBS += -lIphlpapi -lwldap32 -lws2_32
contains(QT_ARCH, i386) {
CONFIG(release, debug|release) {
LIBS += -L../../../third_party/libcurl/windows/lib/x86 -llibcurl
DESTDIR = ../../../../release/win/x86/Release/
}
CONFIG(debug, debug|release) {
LIBS += -L../../../third_party/libcurl/windows/lib/x86 -llibcurld
}
}
else {
CONFIG(release, debug|release) {
LIBS += -L../../../third_party/libcurl/windows/lib/x64 -llibcurl
DESTDIR = ../../../../release/win/x64/Release/
}
CONFIG(debug, debug|release) {
LIBS += -L../../../third_party/libcurl/windows/lib/x64 -llibcurld
}
}
}
unix {
DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1)
message($$DISTRIBUTION)
ARCH = $$system(arch)
message($$ARCH)
LIBS += -ldl -lpthread
contains(DISTRIBUTION, UnionTech){
message('UOS')
DEFINES += UOS
contains(ARCH, x86_64){
INCLUDEPATH += $$PWD/../../../third_party/libcurl/uos/amd64/include
INCLUDEPATH += $$PWD/../../../third_party/libuuid/uos/amd64/include
LIBS += -L../../../third_party/libcurl/uos/amd64/lib -lcurl
LIBS += -L../../../third_party/zlib/uos/amd64/lib -lz
LIBS += -L../../../third_party/libuuid/uos/amd64/lib -luuid
CONFIG(release, debug|release) {
DESTDIR = ../../../../release/uos/x86_64/
}
CONFIG(debug, debug|release) {
}
}
contains(ARCH, aarch64){
INCLUDEPATH += $$PWD/../../../third_party/libcurl/uos/aarch64/include
INCLUDEPATH += $$PWD/../../../third_party/libuuid/uos/aarch64/include
LIBS += -L../../../third_party/libcurl/uos/aarch64/lib -lcurl
LIBS += -L../../../third_party/zlib/uos/aarch64/lib -lz
LIBS += -L../../../third_party/libuuid/uos/aarch64/lib -luuid
CONFIG(release, debug|release) {
DESTDIR = ../../../../release/uos/aarch64/
}
CONFIG(debug, debug|release) {
}
}
contains(ARCH, mips64){
INCLUDEPATH += $$PWD/../../../third_party/libcurl/uos/mips64/include
INCLUDEPATH += $$PWD/../../../third_party/libuuid/uos/mips64/include
LIBS += -L../../../third_party/libcurl/uos/mips64/lib -lcurl
LIBS += -L../../../third_party/zlib/uos/mips64/lib -lz
LIBS += -L../../../third_party/libuuid/uos/mips64/lib -luuid
CONFIG(release, debug|release) {
DESTDIR = ../../../../release/uos/mips64/
}
CONFIG(debug, debug|release) {
}
}
}else{
message('KYLIN')
DEFINES += KYLIN
contains(ARCH, x86_64){
INCLUDEPATH += $$PWD/../../../third_party/libcurl/kylin/amd64/include
INCLUDEPATH += $$PWD/../../../third_party/libuuid/kylin/amd64/include
LIBS += -L../../../third_party/libcurl/kylin/amd64/lib -lcurl
LIBS += -L../../../third_party/zlib/kylin/amd64/lib -lz
LIBS += -L../../../third_party/libuuid/kylin/amd64/lib -luuid
CONFIG(release, debug|release) {
DESTDIR = ../../../../release/kylin/x86_64/
}
CONFIG(debug, debug|release) {
}
}
contains(ARCH, aarch64){
INCLUDEPATH += $$PWD/../../../third_party/libcurl/kylin/aarch64/include
INCLUDEPATH += $$PWD/../../../third_party/libuuid/kylin/aarch64/include
LIBS += -L../../../third_party/libcurl/kylin/aarch64/lib -lcurl
LIBS += -L../../../third_party/zlib/kylin/aarch64/lib -lz
LIBS += -L../../../third_party/libuuid/kylin/aarch64/lib -luuid
CONFIG(release, debug|release) {
DESTDIR = ../../../../release/kylin/aarch64/
}
CONFIG(debug, debug|release) {
}
}
contains(ARCH, mips64){
INCLUDEPATH += $$PWD/../../../third_party/libcurl/kylin/mips64/include
INCLUDEPATH += $$PWD/../../../third_party/libuuid/kylin/mips64/include
LIBS += -L../../../third_party/libcurl/kylin/mips64/lib -lcurl
LIBS += -L../../../third_party/zlib/kylin/mips64/lib -lz
LIBS += -L../../../third_party/libuuid/kylin/mips64/lib -luuid
CONFIG(release, debug|release) {
DESTDIR = ../../../../release/kylin/mips64/
}
CONFIG(debug, debug|release) {
}
}
}
}
INCLUDEPATH += $$PWD/../../../app/upgrade/
INCLUDEPATH += $$PWD/../../../utility/
INCLUDEPATH += $$PWD/../../../modules/
SOURCES += \
../../../app/upgrade/HGUpgrade.cpp \
../../../app/upgrade/main.cpp \
../../../app/upgrade/mainwindow.cpp \
../../../modules/base/HGMd5.cpp \
../../../modules/base/HGUtility.cpp \
../../../modules/base/HGThread.cpp \
../../../utility/HGString.cpp
HEADERS += \
../../../app/upgrade/HGUpgrade.h \
../../../app/upgrade/mainwindow.h \
../../../modules/base/HGMd5.h \
../../../modules/base/HGUtility.h \
../../../modules/base/HGThread.h \
../../../utility/HGString.h
FORMS += \
../../../app/upgrade/mainwindow.ui