forked from sialan-labs/kaqaz
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Papyrus.pro
241 lines (221 loc) · 6.53 KB
/
Papyrus.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
contains(BUILD_MODE,ubuntutouch) {
DESTDIR = land.aseman.papyrus
}
folder_01.source = files/fonts
folder_01.target = $$DESTDIR/.
folder_02.source = files/translations
folder_02.target = $$DESTDIR/files
folder_03.source = files/KFaenza
folder_03.target = $$DESTDIR/files/icons/
DEPLOYMENTFOLDERS += folder_01 folder_02 folder_03
QT += sql positioning qml quick xml
contains(BUILD_MODE,free) {
DEFINES += FREE_BUILD
}
contains(BUILD_MODE,trial) {
DEFINES += FREE_BUILD
DEFINES += TRIAL_BUILD
}
contains(BUILD_MODE,superdebug) {
DEFINES += SUPER_DEBUG
}
ios {
QT += multimedia
QTPLUGIN += qsqlite
QMAKE_INFO_PLIST = iOS/info.plist
folder_04.source = iOS/splash/[email protected]
folder_04.target = .
folder_05.source = iOS/icons
folder_05.target = files
DEPLOYMENTFOLDERS += folder_04 folder_05
} else:android {
QT += multimedia
contains(DEFINES,FREE_BUILD) {
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android/free
} else {
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android/pro
}
} else:contains(BUILD_MODE,ubuntutouch) {
folder_04.source = ubuntutouch/papyrus.desktop
folder_04.target = $$DESTDIR
folder_05.source = ubuntutouch/papyrus.json
folder_05.target = $$DESTDIR
folder_06.source = ubuntutouch/manifest.json
folder_06.target = $$DESTDIR
folder_07.source = ubuntutouch/icons
folder_07.target = $$DESTDIR
DEPLOYMENTFOLDERS += folder_04 folder_05 folder_06 folder_07
} else {
QT += widgets
HEADERS += \
iconprovider.h \
desktop/papyrusdesktop.h \
desktop/categoriesmodel.h \
desktop/panelbox.h \
desktop/datesmodel.h \
desktop/papersview.h \
desktop/paperviewdelegate.h \
desktop/papersmodel.h \
desktop/editorview.h \
desktop/editorviewmanager.h \
desktop/searchpanel.h \
desktop/groupbutton.h \
desktop/addgroupdialog.h \
desktop/paperconfigure.h \
desktop/mapwidget.h \
desktop/datewidget.h \
desktop/configurepage.h \
desktop/aboutdialog.h \
desktop/simage.h \
desktop/paperfilesview.h \
desktop/paperfilesmodel.h \
desktop/todopapers.h \
desktop/scolor.h \
desktop/papertextarea.h \
desktop/todopapersitem.h \
desktop/uiselectordialog.h
SOURCES += \
iconprovider.cpp \
desktop/papyrusdesktop.cpp \
desktop/categoriesmodel.cpp \
desktop/panelbox.cpp \
desktop/datesmodel.cpp \
desktop/papersview.cpp \
desktop/paperviewdelegate.cpp \
desktop/papersmodel.cpp \
desktop/editorview.cpp \
desktop/editorviewmanager.cpp \
desktop/searchpanel.cpp \
desktop/groupbutton.cpp \
desktop/addgroupdialog.cpp \
desktop/paperconfigure.cpp \
desktop/mapwidget.cpp \
desktop/datewidget.cpp \
desktop/configurepage.cpp \
desktop/aboutdialog.cpp \
desktop/simage.cpp \
desktop/paperfilesview.cpp \
desktop/paperfilesmodel.cpp \
desktop/todopapers.cpp \
desktop/scolor.cpp \
desktop/papertextarea.cpp \
desktop/todopapersitem.cpp \
desktop/uiselectordialog.cpp
FORMS += \
desktop/paperconfigure.ui \
desktop/configurepage.ui \
desktop/aboutdialog.ui\
desktop/uiselectordialog.ui
win32 {
QT += winextras
RC_FILE = files/papyrus.rc
}
}
SOURCES += main.cpp \
papyrus.cpp \
papermanager.cpp \
repository.cpp \
resourcemanager.cpp \
papyrussync.cpp \
backuper.cpp \
database.cpp \
papyrusdropbox.cpp \
smartiodbox.cpp \
smartiodboxsingle.cpp \
searchhighlighter.cpp \
databasedatatypes.cpp \
translationmodel.cpp \
weathermodel.cpp \
papyruslabelsmodel.cpp \
papyrushistorymodel.cpp \
papyrussidebarmodel.cpp \
papyruspaperfilesmodel.cpp \
papyrustodolistmodel.cpp \
papercoreobject.cpp \
papyrusabstractpaper.cpp \
papyruspaperdragarea.cpp
HEADERS += \
papyrus.h \
papermanager.h \
repository.h \
resourcemanager.h \
papyrussync.h \
backuper.h \
papyrusmacros.h \
database.h \
databasedatatypes.h \
papyrusdropbox.h \
asemandeveloper_macros.h \
smartiodbox.h \
smartiodboxsingle.h \
searchhighlighter.h \
translationmodel.h \
weathermodel.h \
papyruslabelsmodel.h \
papyrushistorymodel.h \
papyrussidebarmodel.h \
papyruspaperfilesmodel.h \
papyrustodolistmodel.h \
papercoreobject.h \
papyrusabstractpaper.h \
papyruspaperdragarea.h
TRANSLATIONS += \
files/translations/lang-en.qm \
files/translations/lang-fa.qm
FONTS += \
files/fonts/DroidKaqazSans.ttf \
files/fonts/DroidSansMono.ttf
OTHER_FILES += \
android/pro/AndroidManifest.xml \
android/free/AndroidManifest.xml \
android-build/src/org/aseman/android/AsemanActivity.java \
android-build/src/org/aseman/android/AsemanApplication.java \
android-build/src/org/aseman/android/AsemanJavaLayer.java \
iOS/Info.plist \
files/database/database.sqlite
RESOURCES += \
resource.qrc
include(qmake/qtcAddDeployment.pri)
include(qtdropbox/qtdropbox.pri)
include(asemantools/asemantools.pri)
include(asemantools/qmake/clickPkg.pri)
include(qmapcontrol/qmapcontrol.pri)
include(simpleqtcryptor/simpleqtcryptor.pri)
qtcAddDeployment()
isEmpty(PREFIX) {
PREFIX = /usr
}
contains(BUILD_MODE,opt) {
BIN_PATH = $$PREFIX/
SHARES_PATH = $$PREFIX/
APPDESK_PATH = /usr/
APPDESK_SRC = files/shortcuts/opt/
} else {
BIN_PATH = $$PREFIX/bin
SHARES_PATH = $$PREFIX/share/papyrus/
APPDESK_PATH = $$PREFIX/
APPDESK_SRC = files/shortcuts/normal/
}
android {
} else:contains(BUILD_MODE,ubuntutouch) {
CONFIG(debug, debug|release) {
} else {
buildClickPkg()
}
} else:linux|openbsd {
target = $$TARGET
target.path = $$BIN_PATH
translations.files = $$TRANSLATIONS
translations.path = $$SHARES_PATH/files/translations
fonts.files = $$FONTS
fonts.path = $$SHARES_PATH/fonts/
icons.files = files/icons/papyrus.png
icons.path = $$SHARES_PATH/icons/
faenza.files = files/KFaenza
faenza.path = $$SHARES_PATH/files/icons/
desktopFile.files = $$APPDESK_SRC/Papyrus.desktop
desktopFile.path = $$APPDESK_PATH/share/applications
desktopTouchFile.files = $$APPDESK_SRC/Papyrus-touch.desktop
desktopTouchFile.path = $$APPDESK_PATH/share/applications
INSTALLS = target fonts translations icons desktopFile desktopTouchFile faenza
}