-
Notifications
You must be signed in to change notification settings - Fork 15
/
paperman.pro
267 lines (239 loc) · 5.27 KB
/
paperman.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
TEMPLATE = app
LANGUAGE = C++
QT += widgets
QT += printsupport
QT += testlib
unix:target.path = usr/bin
target.files = paperman
INSTALLS += target
message ("Type 'make' to build paperman")
# To build with testing: qmake CONFIG+=test
OCRINCPATH = /usr/local/include/nuance-omnipage-csdk-15.5
OCRLIBPATH = /usr/local/lib/nuance-omnipage-csdk-15.5
CONFIG += qt warn_on debug
#QMAKE_LFLAGS += -static
equals(QT_MAJOR_VERSION, 5) {
LIBS += -lpoppler-qt5
INCLUDEPATH += /usr/include/poppler/qt5
}
equals(QT_MAJOR_VERSION, 4) {
LIBS += -lpoppler-qt4
INCLUDEPATH += /usr/include/poppler/qt4
}
# libraries for omnipage
#LIBS += -lkernelapi -Wl,-rpath-link,$$OCRLIBPATH,-rpath,$$OCRLIBPATH
LIBS += -lpodofo
LIBS += -ltiff -lsane -ljpeg -lz
INCLUDEPATH += qi /usr/local/lib
INCLUDEPATH += $$OCRINCPATH
#LIBPATH += $$OCRLIBPATH
QMAKE_LIBDIR += $$OCRLIBPATH
INCLUDEPATH += /usr/include/podofo
#QMAKE_EXTRA_UNIX_TARGETS += dox
QMAKE_EXTRA_TARGETS += dox
RESOURCES = maxview.qrc
TRANSLATIONS = maxview_en.ts
HEADERS += desktopwidget.h \
folderlist.h \
foldersel.h \
mainwidget.h \
desk.h \
measure.h \
pagewidget.h \
qscannersetupdlg.h \
qscanner.h \
qxmlconfig.h \
saneconfig.h \
qsanestatusmessage.h \
qscandialog.h \
qi/qcombooption.h \
qi/previewwidget.h \
qi/qbooloption.h \
qi/qbuttonoption.h \
qi/qdevicesettings.h \
qi/qextensionwidget.h \
qi/qlistviewitemext.h \
qi/qoptionscrollview.h \
qi/qreadonlyoption.h \
qi/qsaneoption.h \
qi/qscrollbaroption.h \
qi/qstringoption.h \
qi/qwordarrayoption.h \
qi/qwordcombooption.h \
qi/sanefixedoption.h \
qi/saneintoption.h \
qi/sanewidgetholder.h \
qi/scanarea.h \
qi/checklistitemext.h \
qi/previewupdatewidget.h \
qi/ruler.h \
qi/scanareacanvas.h \
qi/imagebuffer.h \
qi/imageiosupporter.h \
qi/imagedetection.h \
qi/scanareatemplate.h \
qi/qdoublespinbox.h \
qi/qcurvewidget.h \
qi/canvasrubberrectangle.h \
qi/sanefixedspinbox.h \
qi/qqualitydialog.h \
qi/qimageioext.h \
qi/qsplinearray.h \
paperstack.h \
err.h \
mem.h \
op.h \
qi/sliderspin.h \
desktopmodel.h \
epeglite.h \
options.h \
pscan.h \
mainwindow.h \
pagetools.h \
dirmodel.h \
dirview.h \
desktopview.h \
desktopdelegate.h \
desktopundo.h \
printopt.h \
pagemodel.h \
pageview.h \
pagedelegate.h \
utils.h \
ocr.h \
file.h \
filemax.h \
filepdf.h \
fileother.h \
pdfio.h \
ocrtess.h \
ocromni.h \
zip.h \
zip_p.h \
zipentry_p.h \
senddialog.h \
transfer.h \
filejpeg.h \
qlistwidgetitemiterator.h
SOURCES += desktopwidget.cpp \
folderlist.cpp \
mainwidget.cpp \
desk.cpp \
maxview.cpp \
measure.cpp \
pagewidget.cpp \
md5.c \
qscannersetupdlg.cpp \
qscanner.cpp \
qxmlconfig.cpp \
saneconfig.cpp \
qsanestatusmessage.cpp \
qscandialog.cpp \
qi/qcombooption.cpp \
qi/previewwidget.cpp \
qi/qbooloption.cpp \
qi/qbuttonoption.cpp \
qi/qdevicesettings.cpp \
qi/qextensionwidget.cpp \
qi/qlistviewitemext.cpp \
qi/qoptionscrollview.cpp \
qi/qreadonlyoption.cpp \
qi/qsaneoption.cpp \
qi/qscrollbaroption.cpp \
qi/qstringoption.cpp \
qi/qwordarrayoption.cpp \
qi/qwordcombooption.cpp \
qi/sanefixedoption.cpp \
qi/saneintoption.cpp \
qi/sanewidgetholder.cpp \
qi/scanarea.cpp \
qi/checklistitemext.cpp \
qi/previewupdatewidget.cpp \
qi/ruler.cpp \
qi/scanareacanvas.cpp \
qi/imagebuffer.cpp \
qi/imageiosupporter.cpp \
qi/imagedetection.cpp \
qi/scanareatemplate.cpp \
qi/qdoublespinbox.cpp \
qi/qcurvewidget.cpp \
qi/canvasrubberrectangle.cpp \
qi/sanefixedspinbox.cpp \
qi/qqualitydialog.cpp \
qi/qimageioext.cpp \
qi/qsplinearray.cpp \
paperstack.cpp \
err.cpp \
mem.cpp \
op.cpp \
qi/sliderspin.cpp \
desktopmodel.cpp \
epeglite.cpp \
options.cpp \
pscan.cpp \
mainwindow.cpp \
pagetools.cpp \
dirmodel.cpp \
dirview.cpp \
desktopview.cpp \
desktopdelegate.cpp \
desktopundo.cpp \
printopt.cpp \
pagemodel.cpp \
pageview.cpp \
pagedelegate.cpp \
utils.cpp \
ocr.cpp \
dmop.cpp \
dmuserop.cpp \
file.cpp \
filemax.cpp \
filepdf.cpp \
fileother.cpp \
pdfio.cpp \
ocrtess.cpp \
ocromni.cpp \
zip.cpp \
senddialog.cpp \
transfer.cpp \
filejpeg.cpp \
qlistwidgetitemiterator.cpp
# add qtcreator debug macros if we are debugging
#SOURCES += /usr/share/qtcreator/gdbmacros/gdbmacros.cpp
FORMS = mainwindow.ui \
move.ui \
presetadd.ui \
pscan.ui \
about.ui \
options.ui \
printopt.ui \
pagetools.ui \
pageattr.ui \
ocrbar.ui send.ui \
search.ui \
toolbar.ui
test {
SOURCES += test/test_utils.cpp \
test/test.cpp \
test/suite.cpp \
test/test_ops.cpp
HEADERS += test/suite.h \
test/test_ops.h \
test/test_utils.h
QMAKE_CXXFLAGS += -DENABLE_TEST
}
# tif_fax3sm.c - causes tifflib to break
#CONFIG += qt warn_on release static
#release
unix {
UI_DIR = .ui
MOC_DIR = .moc
OBJECTS_DIR = .obj
}
QT += xml
# custom target 'doc' in *.pro file
dox.target = doc
dox.commands = doxygen Doxyfile; \
test -d doxydoc/html/images || mkdir doxydoc/html/images; \
cp documentation/images/* doxydoc/html/images
dox.depends =