2023-03-30 07:23:07 +00:00
|
|
|
QT += core gui
|
|
|
|
|
2023-03-31 01:16:26 +00:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
2023-03-30 07:23:07 +00:00
|
|
|
|
|
|
|
TEMPLATE = app
|
|
|
|
DEFINES += UNTITLED_LIBRARY
|
|
|
|
|
|
|
|
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
|
|
|
|
DEFINES += QT_NO_VERSION_TAGGING
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2023-04-12 03:52:54 +00:00
|
|
|
include($$PWD/../HGOEM.pri)
|
2023-03-30 07:23:07 +00:00
|
|
|
|
2023-04-12 03:52:54 +00:00
|
|
|
if (contains(DEFINES, OEM_HANWANG)) {
|
|
|
|
RC_ICONS = ../../../app/demo/image_rsc/logo/Hanvon_logo1.ico
|
2023-03-30 07:23:07 +00:00
|
|
|
} else {
|
2023-04-12 03:52:54 +00:00
|
|
|
if (contains(DEFINES, OEM_LISICHENG)) {
|
|
|
|
RC_ICONS = ../../../app/demo/image_rsc/logo/Lanxum_logo.ico
|
|
|
|
} else {
|
|
|
|
if (contains(DEFINES, OEM_CANGTIAN)) {
|
|
|
|
RC_ICONS = ../../../app/demo/image_rsc/logo/Cumtenn_logo.ico
|
|
|
|
} else {
|
|
|
|
if (contains(DEFINES, OEM_ZHONGJING)) {
|
|
|
|
RC_ICONS = ../../../app/demo/image_rsc/logo/Microtek_logo.ico
|
|
|
|
} else {
|
|
|
|
if (contains(DEFINES, OEM_ZIGUANG)) {
|
|
|
|
RC_ICONS = ../../../app/demo/image_rsc/logo/uniscan.ico
|
|
|
|
} else {
|
|
|
|
RC_ICONS = ../../../app/demo/image_rsc/logo/logo.ico
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-03-30 07:23:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
MY_CONFIGURE = Debug
|
|
|
|
}
|
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
MY_CONFIGURE = Release
|
|
|
|
}
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
|
|
|
|
MY_OS = windows
|
|
|
|
TARGET = $${OEM_PREFIX}Demo
|
|
|
|
|
|
|
|
contains(QT_ARCH, i386) {
|
|
|
|
MY_ARCH = x86
|
|
|
|
}
|
|
|
|
contains(QT_ARCH, x86_64) {
|
|
|
|
MY_ARCH = x64
|
|
|
|
}
|
|
|
|
|
2023-03-30 14:28:53 +00:00
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
QMAKE_LFLAGS_RELEASE += /MAP
|
|
|
|
QMAKE_CFLAGS_RELEASE += /Zi
|
|
|
|
QMAKE_LFLAGS_RELEASE += /debug /opt:ref
|
|
|
|
}
|
|
|
|
|
2023-03-30 07:23:07 +00:00
|
|
|
LIBS += -lgdi32 -lgdiplus -ldbghelp -luser32
|
|
|
|
LIBS += -L$$PWD/../../build/$${MY_OS}/$${OEM_NAME}/$${MY_ARCH}/$${MY_CONFIGURE} -l$${OEM_PREFIX}Base -l$${OEM_PREFIX}ImgFmt -l$${OEM_PREFIX}ImgProc \
|
2023-04-03 09:21:14 +00:00
|
|
|
-l$${OEM_PREFIX}TwainUser
|
2023-04-03 03:06:14 +00:00
|
|
|
LIBS += -L$$PWD/../../../../sdk/lib/win/$${MY_ARCH}/OEM/$${OEM_NAME} -llang
|
2023-03-31 04:20:54 +00:00
|
|
|
|
|
|
|
# sane.dll
|
|
|
|
LIBS += -L$$PWD/../../../../release/win/$${MY_ARCH}/OEM/$${OEM_NAME}
|
2023-03-30 07:23:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unix {
|
|
|
|
|
|
|
|
DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1)
|
|
|
|
contains(DISTRIBUTION, UnionTech) {
|
|
|
|
MY_OS = uos
|
|
|
|
} else {
|
|
|
|
MY_OS = kylin
|
|
|
|
}
|
|
|
|
TARGET = $${OEM_PREFIX2}Demo
|
|
|
|
|
|
|
|
contains(QT_ARCH, x86_64) {
|
|
|
|
MY_ARCH = amd64
|
2023-04-03 06:13:15 +00:00
|
|
|
MY_ARCH2 = x86_64
|
2023-03-30 07:23:07 +00:00
|
|
|
}
|
|
|
|
contains(QT_ARCH, arm64) {
|
|
|
|
MY_ARCH = aarch64
|
2023-04-03 06:13:15 +00:00
|
|
|
MY_ARCH2 = aarch64
|
2023-03-30 07:23:07 +00:00
|
|
|
}
|
|
|
|
contains(QT_ARCH, mips64) {
|
|
|
|
MY_ARCH = mips64
|
2023-04-03 06:13:15 +00:00
|
|
|
MY_ARCH2 = mips64
|
2023-03-30 07:23:07 +00:00
|
|
|
}
|
|
|
|
contains(QT_ARCH, loongarch64) {
|
|
|
|
MY_ARCH = loongarch64
|
2023-04-03 06:13:15 +00:00
|
|
|
MY_ARCH2 = loongarch64
|
2023-03-30 07:23:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CONFIG += unversioned_libname unversioned_soname
|
|
|
|
QMAKE_CXXFLAGS += -fvisibility=hidden
|
|
|
|
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
|
|
|
|
QMAKE_LFLAGS += -Wl,-rpath,\'\$\$ORIGIN\' -Wl,--exclude-libs,ALL
|
|
|
|
QMAKE_LFLAGS += -z defs -B direct
|
|
|
|
|
|
|
|
LIBS += -lpthread -ldl
|
|
|
|
LIBS += -L$$PWD/../../build/$${MY_OS}/$${OEM_NAME}/$${MY_ARCH}/$${MY_CONFIGURE} -l$${OEM_PREFIX2}Base -l$${OEM_PREFIX2}ImgFmt -l$${OEM_PREFIX2}ImgProc \
|
2023-04-03 09:21:14 +00:00
|
|
|
-l$${OEM_PREFIX2}SaneUI -l$${OEM_PREFIX2}SaneUser
|
2023-03-31 04:20:54 +00:00
|
|
|
|
2023-04-03 03:06:14 +00:00
|
|
|
LIBS += -L$$PWD/../../../../release/$${MY_OS}/$${MY_ARCH2} -llang
|
2023-03-30 07:23:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../../modules
|
2023-04-03 03:06:14 +00:00
|
|
|
INCLUDEPATH += $$PWD/../../../../sdk/include
|
2023-03-30 07:23:07 +00:00
|
|
|
|
|
|
|
DESTDIR = $$PWD/../../build/$${MY_OS}/$${OEM_NAME}/$${MY_ARCH}/$${MY_CONFIGURE}
|
|
|
|
UI_DIR = $$PWD/../../temp/$${MY_OS}/$${OEM_NAME}/$${MY_ARCH}/$${MY_CONFIGURE}/$${TARGET}
|
|
|
|
MOC_DIR = $$PWD/../../temp/$${MY_OS}/$${OEM_NAME}/$${MY_ARCH}/$${MY_CONFIGURE}/$${TARGET}
|
|
|
|
OBJECTS_DIR = $$PWD/../../temp/$${MY_OS}/$${OEM_NAME}/$${MY_ARCH}/$${MY_CONFIGURE}/$${TARGET}
|
|
|
|
RCC_DIR = $$PWD/../../temp/$${MY_OS}/$${OEM_NAME}/$${MY_ARCH}/$${MY_CONFIGURE}/$${TARGET}
|
|
|
|
|
|
|
|
message(MY_OS: $$MY_OS)
|
|
|
|
message(MY_ARCH: $$MY_ARCH)
|
|
|
|
message(OEM_PREFIX: $$OEM_PREFIX)
|
|
|
|
message(OEM_PREFIX2: $$OEM_PREFIX2)
|
|
|
|
message(OEM_NAME: $$OEM_NAME)
|
|
|
|
message(MY_CONFIGURE: $$MY_CONFIGURE)
|
|
|
|
message(TARGET: $$TARGET)
|
|
|
|
message(DESTDIR: $$DESTDIR)
|
|
|
|
message(UI_DIR: $$UI_DIR)
|
|
|
|
message(MOC_DIR: $$MOC_DIR)
|
|
|
|
message(OBJECTS_DIR: $$OBJECTS_DIR)
|
|
|
|
message(RCC_DIR: $$RCC_DIR)
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
../../../app/demo/device_user.cpp \
|
|
|
|
../../../app/demo/main.cpp \
|
|
|
|
../../../app/demo/mainwindow.cpp
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
../../../app/demo/device_user.h \
|
|
|
|
../../../app/demo/mainwindow.h
|
|
|
|
|
|
|
|
FORMS += \
|
|
|
|
../../../app/demo/mainwindow.ui
|
2023-04-03 03:06:14 +00:00
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
../../../app/demo/Demo_resource.qrc
|
|
|
|
|
|
|
|
TRANSLATIONS += \
|
|
|
|
../../../app/demo/Demo_zh_CN.ts \
|
|
|
|
../../../app/demo/Demo_zh_EN.ts \
|
|
|
|
../../../app/demo/qt_zh_CN.ts
|