From 440424bdaae63865521bfbbe7ccac5bce6283e03 Mon Sep 17 00:00:00 2001 From: luoliangyi <87842688@qq.com> Date: Thu, 5 May 2022 13:42:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80HGScanner.pro?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build-qt/HGSolution/HGScanner.pro | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/build-qt/HGSolution/HGScanner.pro b/build-qt/HGSolution/HGScanner.pro index aca6e49d..e316f8aa 100644 --- a/build-qt/HGSolution/HGScanner.pro +++ b/build-qt/HGSolution/HGScanner.pro @@ -12,9 +12,6 @@ DEFINES += QT_DEPRECATED_WARNINGS 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. # 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. @@ -44,8 +41,13 @@ win32 { } unix { + DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1) + message($$DISTRIBUTION) + ARCH = $$system(arch) + message($$ARCH) + 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 CONFIG(release, debug|release) { 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 CONFIG(release, debug|release) { 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 CONFIG(release, debug|release) { DESTDIR = ../../../release/uos/mips64/