279 lines
12 KiB
Prolog
279 lines
12 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 = HuaGoScan
|
|
|
|
win32 {
|
|
DEFINES += _CRT_SECURE_NO_WARNINGS
|
|
DEFINES += CURL_STATICLIB
|
|
|
|
INCLUDEPATH += $$PWD/../../../third_party/libcurl/windows/include
|
|
LIBS += -ladvapi32 -lIphlpapi -lwldap32 -lws2_32 -ldbghelp
|
|
|
|
contains(QT_ARCH, i386) {
|
|
LIBS += -L../../../../sdk/lib/win/x86/Release -lHGBase -lHGImgFmt -lHGImgProc -lsane
|
|
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 {
|
|
LIBS += -L../../../../sdk/lib/win/x64/Release -lHGBase -lHGImgFmt -lHGImgProc -lsane
|
|
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)
|
|
|
|
contains(DISTRIBUTION, UnionTech){
|
|
message('UOS')
|
|
DEFINES += UOS
|
|
contains(ARCH, x86_64){
|
|
INCLUDEPATH += $$PWD/../../../third_party/libcurl/uos/amd64/include
|
|
LIBS += -L../../../third_party/libcurl/uos/amd64/lib -lcurl
|
|
LIBS += -L../../../third_party/zlib/uos/amd64/lib -lz
|
|
LIBS += -L../../../../release/uos/x86_64 -lHGBase -lHGImgFmt -lHGImgProc -lsane-hgsane -lhgdriver
|
|
CONFIG(release, debug|release) {
|
|
DESTDIR = ../../../../release/uos/x86_64/
|
|
}
|
|
CONFIG(debug, debug|release) {
|
|
|
|
}
|
|
}
|
|
contains(ARCH, aarch64){
|
|
INCLUDEPATH += $$PWD/../../../third_party/libcurl/uos/aarch64/include
|
|
LIBS += -L../../../third_party/libcurl/uos/aarch64/lib -lcurl
|
|
LIBS += -L../../../third_party/zlib/uos/aarch64/lib -lz
|
|
LIBS += -L../../../../release/uos/aarch64 -lHGBase -lHGImgFmt -lHGImgProc -lsane-hgsane -lhgdriver
|
|
CONFIG(release, debug|release) {
|
|
DESTDIR = ../../../../release/uos/aarch64/
|
|
}
|
|
CONFIG(debug, debug|release) {
|
|
|
|
}
|
|
}
|
|
contains(ARCH, mips64){
|
|
INCLUDEPATH += $$PWD/../../../third_party/libcurl/uos/mips64/include
|
|
LIBS += -L../../../third_party/libcurl/uos/mips64/lib -lcurl
|
|
LIBS += -L../../../third_party/zlib/uos/mips64/lib -lz
|
|
LIBS += -L../../../../release/uos/mips64 -lHGBase -lHGImgFmt -lHGImgProc -lsane-hgsane -lhgdriver
|
|
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
|
|
LIBS += -L../../../third_party/libcurl/kylin/amd64/lib -lcurl
|
|
LIBS += -L../../../third_party/zlib/kylin/amd64/lib -lz
|
|
LIBS += -L../../../../release/kylin/x86_64 -lHGBase -lHGImgFmt -lHGImgProc -lsane-hgsane -lhgdriver
|
|
CONFIG(release, debug|release) {
|
|
DESTDIR = ../../../../release/kylin/x86_64/
|
|
}
|
|
CONFIG(debug, debug|release) {
|
|
|
|
}
|
|
}
|
|
contains(ARCH, aarch64){
|
|
INCLUDEPATH += $$PWD/../../../third_party/libcurl/kylin/aarch64/include
|
|
LIBS += -L../../../third_party/libcurl/kylin/aarch64/lib -lcurl
|
|
LIBS += -L../../../third_party/zlib/kylin/aarch64/lib -lz
|
|
LIBS += -L../../../../release/kylin/aarch64 -lHGBase -lHGImgFmt -lHGImgProc -lsane-hgsane -lhgdriver
|
|
CONFIG(release, debug|release) {
|
|
DESTDIR = ../../../../release/kylin/aarch64/
|
|
}
|
|
CONFIG(debug, debug|release) {
|
|
|
|
}
|
|
}
|
|
contains(ARCH, mips64){
|
|
INCLUDEPATH += $$PWD/../../../third_party/libcurl/kylin/mips64/include
|
|
LIBS += -L../../../third_party/libcurl/kylin/mips64/lib -lcurl
|
|
LIBS += -L../../../third_party/zlib/kylin/mips64/lib -lz
|
|
LIBS += -L../../../../release/kylin/mips64 -lHGBase -lHGImgFmt -lHGImgProc -lsane-hgsane -lhgdriver
|
|
CONFIG(release, debug|release) {
|
|
DESTDIR = ../../../../release/kylin/mips64/
|
|
}
|
|
CONFIG(debug, debug|release) {
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
INCLUDEPATH += $$PWD/../../../app/scanner/
|
|
INCLUDEPATH += $$PWD/../../../utility/
|
|
INCLUDEPATH += $$PWD/../../../modules/
|
|
INCLUDEPATH += $$PWD/../../../../sdk/include/
|
|
|
|
SOURCES += \
|
|
../../../app/scanner/HGVersion.cpp \
|
|
../../../app/scanner/app_cfg.cpp \
|
|
../../../app/scanner/cutdialog.cpp \
|
|
../../../app/scanner/cutpapertool.cpp \
|
|
../../../app/scanner/device_menu.cpp \
|
|
../../../app/scanner/dialog_aquireinto.cpp \
|
|
../../../app/scanner/dialog_clrcache.cpp \
|
|
../../../app/scanner/dialog_export.cpp \
|
|
../../../app/scanner/dialog_exportimagefile.cpp \
|
|
../../../app/scanner/dialog_fullscreen.cpp \
|
|
../../../app/scanner/dialog_imageeditor.cpp \
|
|
../../../app/scanner/dialog_imageinfo.cpp \
|
|
../../../app/scanner/dialog_imgproc_adjust.cpp \
|
|
../../../app/scanner/dialog_imgproc_autocrop.cpp \
|
|
../../../app/scanner/dialog_insertindex.cpp \
|
|
../../../app/scanner/dialog_logmanager.cpp \
|
|
../../../app/scanner/dialog_moveto.cpp \
|
|
../../../app/scanner/dialog_multirotate.cpp \
|
|
../../../app/scanner/dialog_multirotateimagefile.cpp \
|
|
../../../app/scanner/dialog_openimageindex.cpp \
|
|
../../../app/scanner/dialog_passwordchange.cpp \
|
|
../../../app/scanner/dialog_saveas.cpp \
|
|
../../../app/scanner/dialog_writesettings.cpp \
|
|
../../../app/scanner/gaosixy.cpp \
|
|
../../../app/scanner/graphicsscene.cpp \
|
|
../../../app/scanner/hg_settingdialog.cpp \
|
|
../../../app/scanner/main.cpp \
|
|
../../../app/scanner/mainwindow.cpp \
|
|
../../../app/scanner/sane_device.cpp \
|
|
../../../app/scanner/setpicclrtool.cpp \
|
|
../../../app/scanner/widget.cpp \
|
|
../../../app/scanner/widget_imgproc_base.cpp \
|
|
../../../app/scanner/widget_statusbar.cpp \
|
|
../../../app/scanner/dialog_admin.cpp \
|
|
../../../app/scanner/dialog_log.cpp \
|
|
../../../app/scanner/config.cpp \
|
|
../../../app/scanner/json.cpp \
|
|
../../../app/scanner/cJSON.c \
|
|
../../../app/scanner/HGImgThumb.cpp \
|
|
../../../app/scanner/HGImgView.cpp \
|
|
../../../app/scanner/HGUIGlobal.cpp \
|
|
../../../utility/HGString.cpp \
|
|
../../../app/scanner/dialog_input.cpp\
|
|
../../../app/scanner/dialog_updateprogress.cpp
|
|
|
|
HEADERS += \
|
|
../../../app/scanner/HGVersion.h \
|
|
../../../app/scanner/app_cfg.h \
|
|
../../../app/scanner/cutdialog.h \
|
|
../../../app/scanner/cutpapertool.h \
|
|
../../../app/scanner/device_menu.h \
|
|
../../../app/scanner/dialog_aquireinto.h \
|
|
../../../app/scanner/dialog_clrcache.h \
|
|
../../../app/scanner/dialog_export.h \
|
|
../../../app/scanner/dialog_exportimagefile.h \
|
|
../../../app/scanner/dialog_fullscreen.h \
|
|
../../../app/scanner/dialog_imageeditor.h \
|
|
../../../app/scanner/dialog_imageinfo.h \
|
|
../../../app/scanner/dialog_imgproc_adjust.h \
|
|
../../../app/scanner/dialog_imgproc_autocrop.h \
|
|
../../../app/scanner/dialog_insertindex.h \
|
|
../../../app/scanner/dialog_logmanager.h \
|
|
../../../app/scanner/dialog_moveto.h \
|
|
../../../app/scanner/dialog_multirotate.h \
|
|
../../../app/scanner/dialog_multirotateimagefile.h \
|
|
../../../app/scanner/dialog_openimageindex.h \
|
|
../../../app/scanner/dialog_passwordchange.h \
|
|
../../../app/scanner/dialog_saveas.h \
|
|
../../../app/scanner/dialog_writesettings.h \
|
|
../../../app/scanner/gaosixy.h \
|
|
../../../app/scanner/graphicsscene.h \
|
|
../../../app/scanner/hg_settingdialog.h \
|
|
../../../app/scanner/mainwindow.h \
|
|
../../../app/scanner/sane_device.h \
|
|
../../../app/scanner/setpicclrtool.h \
|
|
../../../app/scanner/widget.h \
|
|
../../../app/scanner/widget_imgproc_base.h \
|
|
../../../app/scanner/widget_statusbar.h \
|
|
../../../app/scanner/dialog_admin.h \
|
|
../../../app/scanner/dialog_log.h \
|
|
../../../app/scanner/config.h \
|
|
../../../app/scanner/json.h \
|
|
../../../app/scanner/cJSON.h \
|
|
../../../app/scanner/HGImgThumb.h \
|
|
../../../app/scanner/HGImgView.h \
|
|
../../../app/scanner/HGUIGlobal.h \
|
|
../../../utility/HGString.h \
|
|
../../../app/scanner/dialog_input.h \
|
|
../../../app/scanner/custom_file_dialog.h\
|
|
../../../app/scanner/dialog_updateprogress.h
|
|
|
|
FORMS += \
|
|
../../../app/scanner/cutdialog.ui \
|
|
../../../app/scanner/cutpapertool.ui \
|
|
../../../app/scanner/dialog_admin.ui \
|
|
../../../app/scanner/dialog_aquireinto.ui \
|
|
../../../app/scanner/dialog_clrcache.ui \
|
|
../../../app/scanner/dialog_export.ui \
|
|
../../../app/scanner/dialog_exportimagefile.ui \
|
|
../../../app/scanner/dialog_fullscreen.ui \
|
|
../../../app/scanner/dialog_imageeditor.ui \
|
|
../../../app/scanner/dialog_imageinfo.ui \
|
|
../../../app/scanner/dialog_imgproc_adjust.ui \
|
|
../../../app/scanner/dialog_imgproc_autocrop.ui \
|
|
../../../app/scanner/dialog_insertindex.ui \
|
|
../../../app/scanner/dialog_logmanager.ui \
|
|
../../../app/scanner/dialog_moveto.ui \
|
|
../../../app/scanner/dialog_multirotate.ui \
|
|
../../../app/scanner/dialog_multirotateimagefile.ui \
|
|
../../../app/scanner/dialog_openimageindex.ui \
|
|
../../../app/scanner/dialog_passwordchange.ui \
|
|
../../../app/scanner/dialog_saveas.ui \
|
|
../../../app/scanner/dialog_writesettings.ui \
|
|
../../../app/scanner/mainwindow.ui \
|
|
../../../app/scanner/setpicclrtool.ui \
|
|
../../../app/scanner/widget.ui \
|
|
../../../app/scanner/widget_imgproc_base.ui \
|
|
../../../app/scanner/widget_statusbar.ui \
|
|
../../../app/scanner/dialog_log.ui \
|
|
../../../app/scanner/dialog_input.ui \
|
|
../../../app/scanner/dialog_updateprogress.ui
|
|
|
|
TRANSLATIONS += \
|
|
../../../app/scanner/Scanner_zh_CN.ts \
|
|
../../../app/scanner/qt_zh_CN.ts
|
|
|
|
RESOURCES += \
|
|
../../../app/scanner/Scanner_resource.qrc
|
|
|
|
DISTFILES += \
|
|
../../../app/scanner/Scanner_zh_CN.qm \
|
|
../../../app/scanner/qt_zh_CN.qm
|