1 set(HELP_ID ${PROJECT_NAME})
3 set(HELP_FIGURES_DIR figures)
6 ${HELP_FIGURES_DIR}/color-000000.png
7 ${HELP_FIGURES_DIR}/color-204a87.png
8 ${HELP_FIGURES_DIR}/color-2e3436.png
9 ${HELP_FIGURES_DIR}/color-4e9a06.png
10 ${HELP_FIGURES_DIR}/color-5c3566.png
11 ${HELP_FIGURES_DIR}/color-8f5902.png
12 ${HELP_FIGURES_DIR}/color-a40000.png
13 ${HELP_FIGURES_DIR}/color-c4a000.png
14 ${HELP_FIGURES_DIR}/color-ce5c00.png
15 ${HELP_FIGURES_DIR}/evolutionlogo.png
16 ${HELP_FIGURES_DIR}/html-composer-insert-image.png
17 ${HELP_FIGURES_DIR}/html-composer-insert-link.png
18 ${HELP_FIGURES_DIR}/html-composer-insert-rule.png
19 ${HELP_FIGURES_DIR}/html-composer-insert-table.png
20 ${HELP_FIGURES_DIR}/minus-icon.png
21 ${HELP_FIGURES_DIR}/new-mail-notification.png
22 ${HELP_FIGURES_DIR}/new-mail-switcher.png
23 ${HELP_FIGURES_DIR}/plus-icon.png
24 ${HELP_FIGURES_DIR}/search-icon.png
25 ${HELP_FIGURES_DIR}/window-overview-layers.png
30 calendar-alarms-and-reminders.page
32 calendar-classifications.page
33 calendar-free-busy.page
35 calendar-layout-appointment-display.page
36 calendar-layout-general-formatting.page
38 calendar-layout-views.page
40 calendar-marcus-bains-line.page
41 calendar-meetings-delegating.page
42 calendar-meetings.page
43 calendar-meetings-replying-to-invitation.page
44 calendar-meetings-sending-invitation.page
45 calendar-organizing.page
46 calendar-publishing.page
47 calendar-recurrence.page
48 calendar-searching.page
49 calendar-sharing-information.page
50 calendar-timezones.page
51 calendar-usage-add-appointment.page
52 calendar-usage-delete-appointment.page
53 calendar-usage-edit-appointment.page
55 calendar-using-several-calendars.page
58 contacts-add-automatically.page
59 contacts-autocompletion.page
62 contacts-libreoffice.page
64 contacts-organizing.page
65 contacts-searching.page
66 contacts-usage-add-contact.page
67 contacts-usage-delete-contact.page
68 contacts-usage-edit-contact.page
70 contacts-using-contact-lists.page
71 contacts-using-several-addressbooks.page
73 customize-ui-items.page
76 deleting-appointments.page
78 deleting-to-free-disk-space.page
79 exporting-data-calendar.page
80 exporting-data-contacts.page
81 exporting-data-mail.page
84 import-apps-mozilla.page
85 import-apps-outlook.page
87 import-single-files.page
88 import-supported-file-formats.page
90 intro-application.page
92 intro-keyboard-shortcuts.page
93 intro-main-window.page
95 mail-access-gmail-imap-account.page
96 mail-access-gmail-pop-account.page
97 mail-account-manage-imap-plus.page
98 mail-account-manage-local-delivery.page
99 mail-account-manage-maildir-format-directories.page
100 mail-account-management.page
101 mail-account-manage-mh-format-directories.page
102 mail-account-manage-microsoft-exchange-evo-ews.page
103 mail-account-manage-microsoft-exchange-evo-mapi.page
104 mail-account-manage-microsoft-exchange.page
105 mail-account-manage-pop.page
106 mail-account-manage-unix-mbox-spool-directory.page
107 mail-account-manage-unix-mbox-spool-file.page
108 mail-account-manage-usenet-news.page
109 mail-attachments.page
110 mail-attachments-received.page
111 mail-attachments-sending.page
112 mail-calendar-sending-invitations.page
114 mail-change-columns-in-message-list.page
115 mail-change-time-format.page
116 mail-composer-change-quotation-string.page
117 mail-composer-custom-header-lines.page
118 mail-composer-enable-html-format.page
119 mail-composer-external-editor.page
120 mail-composer-forward.page
121 mail-composer-forward-as-attachment.page
122 mail-composer-from-field-override.page
123 mail-composer-html-image.page
124 mail-composer-html-link.page
125 mail-composer-html.page
126 mail-composer-html-rule.page
127 mail-composer-html-table.page
128 mail-composer-html-text.page
129 mail-composer-mail-signatures-manage.page
130 mail-composer-mail-signatures.page
131 mail-composer-mail-signatures-per-account.page
132 mail-composer-message-templates.page
133 mail-composer-message-templates-reply.page
134 mail-composer-message-templates-save.page
135 mail-composer-message-templates-variables.page
136 mail-composer-plain-text.page
137 mail-composer-priority.page
138 mail-composer-reply.page
139 mail-composer-search.page
140 mail-composer-send-account-overrides.page
141 mail-composer-several-recipients.page
142 mail-composer-spellcheck.page
143 mail-composer-write-new-message.page
144 mail-default-CC-and-BCC.page
145 mail-default-folder-locations.page
146 mail-delete-and-undelete.page
147 mail-displaying-character-encodings.page
148 mail-displaying-collapsible-headers.page
149 mail-displaying-images-in-html.page
150 mail-displaying-message.page
151 mail-displaying-sender-photograph.page
152 mail-display-message-source.page
154 mail-encryption-gpg-create-key.page
155 mail-encryption-gpg-decrypting.page
156 mail-encryption-gpg-getting-keys.page
157 mail-encryption-gpg-set-up.page
158 mail-encryption-gpg-signing-encrypting.page
160 mail-encryption-s-mime-manage.page
161 mail-encryption-s-mime-signing-encrypting.page
162 mail-filters-actions.page
163 mail-filters-conditions.page
164 mail-filters-not-working.page
167 mail-follow-up-flag.page
168 mail-imap-subscriptions.page
170 mail-layout-changing.page
171 mail-localized-re-subjects.page
172 mail-moving-emails.page
175 mail-read-receipts.page
176 mail-received-notification.page
177 mail-receiving-options-exchange-ews.page
178 mail-receiving-options-exchange-mapi.page
179 mail-receiving-options-imap-plus.page
180 mail-receiving-options-local-delivery.page
181 mail-receiving-options-maildir-format-directories.page
182 mail-receiving-options-mh-format-directories.page
183 mail-receiving-options.page
184 mail-receiving-options-pop.page
185 mail-receiving-options-unix-mbox-spool-directory.page
186 mail-receiving-options-unix-mbox-spool-file.page
187 mail-receiving-options-usenet-news.page
188 mail-refresh-folders.page
189 mail-save-as-pdf.page
190 mail-search-folders-add.page
191 mail-search-folders-conditions.page
192 mail-search-folders.page
193 mail-searching-attachment-type.page
195 mail-send-and-receive-automatically.page
196 mail-send-and-receive-manual.page
197 mail-send-and-receive.page
198 mail-sending-options-smtp.page
199 mail-several-pop-accounts.page
200 mail-sorting-message-list.page
201 mail-spam-marking.page
203 mail-spam-settings.page
204 mail-two-trash-folders.page
205 mail-usenet-subscriptions.page
206 mail-vertical-view.page
208 mail-working-offline.page
210 memos-usage-add-memo.page
211 memos-usage-delete-memo.page
212 memos-usage-edit-memo.page
216 problems-debug-how-to.page
217 problems-getting-help.page
218 problems-reporting-bugs.page
220 sync-with-other-devices.page
222 tasks-display-settings.page
224 tasks-organizing.page
226 tasks-usage-add-task.page
227 tasks-usage-delete-task.page
228 tasks-usage-edit-task.page
230 tasks-using-several-tasklists.page
232 using-categories.page
233 xinclude-filter-vfolder-conditions.xml
234 xinclude-mail-account-identity.xml
235 xinclude-searching.xml
238 add_custom_target(help-files ALL)
240 macro(create_help_files_for_lang _lang _helpfilesvar)
241 set(pofile "${CMAKE_CURRENT_SOURCE_DIR}/${dir}/${_lang}.po")
242 set(mofile "${CMAKE_CURRENT_BINARY_DIR}/${dir}/${_lang}.mo")
244 if(NOT EXISTS ${pofile})
245 message(FATAL_ERROR "Passed incorrect language '${_lang}' to create_help_files_for_lang()")
246 endif(NOT EXISTS ${pofile})
250 foreach(_file ${HELP_FILES})
251 list(APPEND installed ${CMAKE_CURRENT_BINARY_DIR}/${_lang}/${_file})
252 list(APPEND deps ${CMAKE_CURRENT_SOURCE_DIR}/C/${_file})
253 if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_lang}/${_file})
254 list(APPEND deps ${CMAKE_CURRENT_SOURCE_DIR}/${_lang}/${_file})
255 endif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_lang}/${_file})
257 foreach(_file ${HELP_MEDIA})
258 list(APPEND deps ${CMAKE_CURRENT_SOURCE_DIR}/C/${_file})
259 if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_lang}/${_file})
260 list(APPEND deps ${CMAKE_CURRENT_SOURCE_DIR}/${_lang}/${_file})
261 endif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_lang}/${_file})
264 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_lang}/index.page
265 COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_CURRENT_BINARY_DIR}/${_lang}"
266 COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o "${mofile}" "${pofile}"
267 COMMAND ${CMAKE_COMMAND} -E env d="${CMAKE_CURRENT_SOURCE_DIR}/C"
268 itstool -m "${mofile}" ${${_helpfilesvar}} --output ${CMAKE_CURRENT_BINARY_DIR}/${_lang}/
269 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/C
270 COMMENT "Generating '${_lang}' help files"
273 add_custom_target(${_lang}-help-files
274 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_lang}/index.page
279 add_dependencies(help-files ${_lang}-help-files)
281 install(FILES ${installed}
282 DESTINATION ${SHARE_INSTALL_PREFIX}/help/${_lang}/${HELP_ID}/
284 endmacro(create_help_files_for_lang)
286 file(GLOB directories RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *)
287 foreach(dir ${directories})
288 if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${dir}/${dir}.po")
289 list(APPEND helpdeps "${CMAKE_CURRENT_BINARY_DIR}/${dir}/index.page")
290 create_help_files_for_lang(${dir} HELP_FILES)
292 foreach(_media ${HELP_MEDIA})
293 if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${dir}/${_media}")
294 install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${dir}/${_media}
295 DESTINATION ${SHARE_INSTALL_PREFIX}/help/${dir}/${HELP_ID}/${HELP_FIGURES_DIR}/
297 else(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${dir}/${_media}")
298 # Pity, no symlink ability here
299 install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/C/${_media}
300 DESTINATION ${SHARE_INSTALL_PREFIX}/help/${dir}/${HELP_ID}/${HELP_FIGURES_DIR}/
302 endif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${dir}/${_media}")
304 endif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${dir}/${dir}.po")
308 foreach(_file ${HELP_FILES})
309 list(APPEND cinstalled "${CMAKE_CURRENT_SOURCE_DIR}/C/${_file}")
312 install(FILES ${cinstalled}
313 DESTINATION ${SHARE_INSTALL_PREFIX}/help/C/${HELP_ID}/
317 foreach(_file ${HELP_MEDIA})
318 list(APPEND cinstalled "${CMAKE_CURRENT_SOURCE_DIR}/C/${_file}")
321 install(FILES ${cinstalled}
322 DESTINATION ${SHARE_INSTALL_PREFIX}/help/C/${HELP_ID}/${HELP_FIGURES_DIR}
325 add_subdirectory(quickref)