-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathqt-box-editor.pro
114 lines (101 loc) · 2.75 KB
/
qt-box-editor.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
TEMPLATE = app
QTB_VERSION = "1.13.0"
TARGET = qt-box-editor-$${QTB_VERSION}
DEFINES += APP_VERSION=\\\"$${QTB_VERSION}\\\"
DESTDIR = .
DEPENDPATH += ./ \
resource/images \
resource
INCLUDEPATH += ./ \
dialogs \
src/include \
src
QT += network svg
INSTALLS += target
target.path = $$PREFIX/bin
CONFIG(debug, debug|release) {
CONFIG += debug warn_on
DESTDIR = debug
QT += testlib
OBJECTS_DIR += build/debug
MOC_DIR += build/debug
UI_DIR += build/debug
RCC_DIR += build/debug
} else {
CONFIG += release warn_off
DESTDIR = release
OBJECTS_DIR += build/release
MOC_DIR += build/release
UI_DIR += build/release
RCC_DIR += build/release
}
FORMS += \
dialogs/ShortCutDialog.ui \
dialogs/GetRowIDDialog.ui \
dialogs/SettingsDialog.ui \
dialogs/FindDialog.ui \
dialogs/DrawRectangle.ui
SOURCES += src/main.cpp \
src/MainWindow.cpp \
src/ChildWidget.cpp \
src/DelegateEditors.cpp \
src/TessTools.cpp \
dialogs/SettingsDialog.cpp \
dialogs/GetRowIDDialog.cpp \
dialogs/ShortCutsDialog.cpp \
dialogs/FindDialog.cpp \
dialogs/DrawRectangle.cpp
HEADERS += src/MainWindow.h \
src/ChildWidget.h \
src/Settings.h \
src/TessTools.h \
src/DelegateEditors.h \
dialogs/SettingsDialog.h \
dialogs/GetRowIDDialog.h \
dialogs/ShortCutsDialog.h \
dialogs/FindDialog.h \
dialogs/DrawRectangle.h
RESOURCES = resources/application.qrc \
resources/QBE-GNOME.qrc \
resources/QBE-Faenza.qrc \
resources/QBE-Oxygen.qrc \
resources/QBE-Tango.qrc
win32 {
DESTDIR = ./win32
CONFIG += embed_manifest_exe
TMAKE_CXXFLAGS += -DQT_NODLL
TMAKE_CXXFLAGS += -fno-exceptions -fno-rtti -static
#QTPLUGIN += qsvg # image formats
DEFINES += WINDOWS
#QMAKE_LFLAGS.gcc += -static-libgcc # -static
RC_FILE = resources/win.rc
INCLUDEPATH += $$PWD/win32-external/include/
LIBS += -lws2_32 -L$$PWD/win32-external/lib
CONFIG(debug, debug|release) {
TARGET = $$join(TARGET,,,d)
LIBS += -lltesseract54d -lleptonica-1.84.1d
} else {
LIBS += -ltesseract54 -lleptonica-1.84.1
}
}
unix:!macx {
# qt-5 or later
greaterThan(QT_MAJOR_VERSION, 4) {
message(Qt $$[QT_VERSION] was detected.)
QT += widgets
QMAKE_CXXFLAGS += -std=c++17
CONFIG += c++17
}
INCLUDEPATH += /opt/include/
LIBS += -L/opt/lib -ltesseract -lleptonica
}
# Libraries may be installed this way on macOS:
# brew install --with-training-tools --with-all-languages tesseract
#
# TESSDATA_PREFIX in the Settings of the App is: /usr/local/share/
macx {
message(Starting OSX build...)
QT += widgets
INCLUDEPATH += /usr/local/include/
LIBS += -L/usr/local/lib -ltesseract -lleptonica
}