统一HGScanner.pro

This commit is contained in:
luoliangyi 2022-05-05 13:42:30 +08:00
parent b98c9f7fb2
commit 440424bdaa
1 changed files with 8 additions and 6 deletions

View File

@ -12,9 +12,6 @@ DEFINES += QT_DEPRECATED_WARNINGS
RC_ICONS = ../../app/scanner/image_rsc/logo/logo.ico RC_ICONS = ../../app/scanner/image_rsc/logo/logo.ico
DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1)
message($$DISTRIBUTION)
# You can also make your code fail to compile if it uses deprecated APIs. # You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line. # 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. # You can also select to disable deprecated APIs only up to a certain version of Qt.
@ -44,8 +41,13 @@ win32 {
} }
unix { unix {
DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1)
message($$DISTRIBUTION)
ARCH = $$system(arch)
message($$ARCH)
contains(DISTRIBUTION, UnionTech){ contains(DISTRIBUTION, UnionTech){
contains(QMAKE_HOST.arch, x86_64){ contains(ARCH, x86_64){
LIBS += -L../../../release/uos/x86_64 -lHGBase -lHGImgFmt -lHGImgProc -lpdf -lmupdf -lhgdriver -lsane-hgsane LIBS += -L../../../release/uos/x86_64 -lHGBase -lHGImgFmt -lHGImgProc -lpdf -lmupdf -lhgdriver -lsane-hgsane
CONFIG(release, debug|release) { CONFIG(release, debug|release) {
DESTDIR = ../../../release/uos/x86_64/ DESTDIR = ../../../release/uos/x86_64/
@ -54,7 +56,7 @@ unix {
} }
} }
contains(QMAKE_HOST.arch, aarch64){ contains(ARCH, aarch64){
LIBS += -L../../../release/uos/aarch64 -lHGBase -lHGImgFmt -lHGImgProc -lpdf -lmupdf -lhgdriver -lsane-hgsane LIBS += -L../../../release/uos/aarch64 -lHGBase -lHGImgFmt -lHGImgProc -lpdf -lmupdf -lhgdriver -lsane-hgsane
CONFIG(release, debug|release) { CONFIG(release, debug|release) {
DESTDIR = ../../../release/uos/aarch64/ DESTDIR = ../../../release/uos/aarch64/
@ -63,7 +65,7 @@ unix {
} }
} }
contains(QMAKE_HOST.arch, mips64){ contains(ARCH, mips64){
LIBS += -L../../../release/uos/mips64 -lHGBase -lHGImgFmt -lHGImgProc -lpdf -lmupdf -lhgdriver -lsane-hgsane LIBS += -L../../../release/uos/mips64 -lHGBase -lHGImgFmt -lHGImgProc -lpdf -lmupdf -lhgdriver -lsane-hgsane
CONFIG(release, debug|release) { CONFIG(release, debug|release) {
DESTDIR = ../../../release/uos/mips64/ DESTDIR = ../../../release/uos/mips64/