Revert "tdf#127471 Remove font width scaling hack"
[LibreOffice.git] / postprocess / CustomTarget_registry.mk
blobfd0f8d5a7377bc427d4a782ea3f7dab7a7410b95
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval $(call gb_CustomTarget_CustomTarget,postprocess/registry))
13 # Variables
16 postprocess_XCS := $(call gb_XcsTarget_get_target,org/openoffice)
17 postprocess_XCU := $(call gb_XcuDataTarget_get_target,officecfg/registry/data/org/openoffice)
18 postprocess_MOD := $(call gb_XcuModuleTarget_get_target,officecfg/registry/data)
19 postprocess_DRIVERS :=
21 postprocess_XCDS := \
22 base.xcd \
23 calc.xcd \
24 cjk.xcd \
25 ctl.xcd \
26 ctlseqcheck.xcd \
27 draw.xcd \
28 graphicfilter.xcd \
29 impress.xcd \
30 librelogo.xcd \
31 lingucomponent.xcd \
32 main.xcd \
33 math.xcd \
34 pyuno.xcd \
35 writer.xcd \
36 xsltfilter.xcd
38 postprocess_DEPS_base := main
39 postprocess_FILES_base := \
40 $(call gb_XcuFilterFiltersTarget_get_target,fcfg_database_filters.xcu) \
41 $(call gb_XcuFilterOthersTarget_get_target,fcfg_database_others.xcu) \
42 $(call gb_XcuFilterTypesTarget_get_target,fcfg_database_types.xcu) \
43 $(postprocess_MOD)/org/openoffice/Office/Common-base.xcu \
44 $(postprocess_MOD)/org/openoffice/Office/Embedding-base.xcu \
45 $(postprocess_MOD)/org/openoffice/Setup-base.xcu
47 postprocess_DEPS_calc := main
48 postprocess_FILES_calc := \
49 $(postprocess_XCS)/Office/UI/CalcCommands.xcs \
50 $(postprocess_XCS)/Office/UI/CalcWindowState.xcs \
51 $(postprocess_XCU)/Office/UI/CalcCommands.xcu \
52 $(postprocess_XCU)/Office/UI/CalcWindowState.xcu \
53 $(call gb_XcuFilterFiltersTarget_get_target,fcfg_calc_filters.xcu) \
54 $(call gb_XcuFilterTypesTarget_get_target,fcfg_calc_types.xcu) \
55 $(postprocess_MOD)/org/openoffice/Office/Common-calc.xcu \
56 $(postprocess_MOD)/org/openoffice/Office/Embedding-calc.xcu \
57 $(postprocess_MOD)/org/openoffice/Setup-calc.xcu
59 ifeq (DBCONNECTIVITY,$(filter DBCONNECTIVITY,$(BUILD_TYPE)))
60 postprocess_FILES_calc += \
61 $(call gb_XcuModuleTarget_get_target,connectivity/registry/calc)/org/openoffice/Office/DataAccess/Drivers-calc.xcu
62 postprocess_DRIVERS += calc
63 endif
65 postprocess_DEPS_cjk := main
66 postprocess_FILES_cjk := \
67 $(postprocess_MOD)/org/openoffice/Office/Common-cjk.xcu \
68 $(postprocess_MOD)/org/openoffice/Office/Writer-cjk.xcu
70 postprocess_DEPS_ctl := main
71 postprocess_FILES_ctl := \
72 $(postprocess_MOD)/org/openoffice/Office/Common-ctl.xcu
74 postprocess_DEPS_draw := main
75 postprocess_FILES_draw := \
76 $(postprocess_XCS)/Office/UI/DrawWindowState.xcs \
77 $(postprocess_XCU)/Office/UI/DrawWindowState.xcu \
78 $(call gb_XcuFilterFiltersTarget_get_target,fcfg_draw_filters.xcu) \
79 $(call gb_XcuFilterTypesTarget_get_target,fcfg_draw_types.xcu) \
80 $(postprocess_MOD)/org/openoffice/Office/Common-draw.xcu \
81 $(postprocess_MOD)/org/openoffice/Office/Embedding-draw.xcu \
82 $(postprocess_MOD)/org/openoffice/Setup-draw.xcu
84 postprocess_DEPS_graphicfilter := main
85 postprocess_FILES_graphicfilter := \
86 $(call gb_XcuFilterFiltersTarget_get_target,fcfg_drawgraphics_filters.xcu) \
87 $(call gb_XcuFilterTypesTarget_get_target,fcfg_drawgraphics_types.xcu) \
88 $(call gb_XcuFilterFiltersTarget_get_target,fcfg_impressgraphics_filters.xcu) \
89 $(call gb_XcuFilterTypesTarget_get_target,fcfg_impressgraphics_types.xcu) \
90 $(call gb_XcuFilterFiltersTarget_get_target,fcfg_calcgraphics_filters.xcu) \
91 $(call gb_XcuFilterTypesTarget_get_target,fcfg_calcgraphics_types.xcu) \
92 $(call gb_XcuFilterFiltersTarget_get_target,fcfg_writergraphics_filters.xcu) \
93 $(call gb_XcuFilterTypesTarget_get_target,fcfg_writergraphics_types.xcu)
95 postprocess_DEPS_impress := main
96 postprocess_FILES_impress := \
97 $(postprocess_XCS)/Office/PresentationMinimizer.xcs \
98 $(postprocess_XCS)/Office/PresenterScreen.xcs \
99 $(postprocess_XCS)/Office/UI/Effects.xcs \
100 $(postprocess_XCS)/Office/UI/ImpressWindowState.xcs \
101 $(postprocess_XCU)/Office/PresentationMinimizer.xcu \
102 $(postprocess_XCU)/Office/PresenterScreen.xcu \
103 $(postprocess_XCU)/Office/UI/Effects.xcu \
104 $(postprocess_XCU)/Office/UI/ImpressWindowState.xcu \
105 $(call gb_XcuFilterFiltersTarget_get_target,fcfg_impress_filters.xcu) \
106 $(call gb_XcuFilterTypesTarget_get_target,fcfg_impress_types.xcu) \
107 $(postprocess_MOD)/org/openoffice/Office/Common-impress.xcu \
108 $(postprocess_MOD)/org/openoffice/Office/Embedding-impress.xcu \
109 $(postprocess_MOD)/org/openoffice/Office/Jobs-impress.xcu \
110 $(postprocess_MOD)/org/openoffice/Office/ProtocolHandler-impress.xcu \
111 $(postprocess_MOD)/org/openoffice/Setup-impress.xcu
113 postprocess_DEPS_librelogo := main writer
114 postprocess_FILES_librelogo := \
115 $(postprocess_MOD)/org/openoffice/Office/Addons-librelogo.xcu \
116 $(postprocess_MOD)/org/openoffice/Office/UI/WriterCommands-librelogo.xcu \
117 $(postprocess_MOD)/org/openoffice/Office/UI/WriterWindowState-librelogo.xcu
119 postprocess_DEPS_lingucomponent := main
120 postprocess_FILES_lingucomponent := \
121 $(SRCDIR)/lingucomponent/config/Linguistic-lingucomponent-hyphenator.xcu \
122 $(SRCDIR)/lingucomponent/config/Linguistic-lingucomponent-spellchecker.xcu \
123 $(SRCDIR)/lingucomponent/config/Linguistic-lingucomponent-thesaurus.xcu \
125 postprocess_FILES_main := \
126 $(postprocess_XCS)/Inet.xcs \
127 $(postprocess_XCS)/Interaction.xcs \
128 $(postprocess_XCS)/LDAP.xcs \
129 $(postprocess_XCS)/Office/Accelerators.xcs \
130 $(postprocess_XCS)/Office/Addons.xcs \
131 $(postprocess_XCS)/Office/BasicIDE.xcs \
132 $(postprocess_XCS)/Office/Calc.xcs \
133 $(postprocess_XCS)/Office/CalcAddIns.xcs \
134 $(postprocess_XCS)/Office/Canvas.xcs \
135 $(postprocess_XCS)/Office/Chart.xcs \
136 $(postprocess_XCS)/Office/Commands.xcs \
137 $(postprocess_XCS)/Office/Common.xcs \
138 $(postprocess_XCS)/Office/Compatibility.xcs \
139 $(postprocess_XCS)/Office/DataAccess/Drivers.xcs \
140 $(postprocess_XCS)/Office/DataAccess.xcs \
141 $(postprocess_XCS)/Office/Draw.xcs \
142 $(postprocess_XCS)/Office/Embedding.xcs \
143 $(postprocess_XCS)/Office/Events.xcs \
144 $(postprocess_XCS)/Office/ExtendedColorScheme.xcs \
145 $(postprocess_XCS)/Office/ExtensionDependencies.xcs \
146 $(postprocess_XCS)/Office/ExtensionManager.xcs \
147 $(postprocess_XCS)/Office/FormWizard.xcs \
148 $(postprocess_XCS)/Office/Histories.xcs \
149 $(postprocess_XCS)/Office/Impress.xcs \
150 $(postprocess_XCS)/Office/Java.xcs \
151 $(postprocess_XCS)/Office/Jobs.xcs \
152 $(postprocess_XCS)/Office/Labels.xcs \
153 $(postprocess_XCS)/Office/Linguistic.xcs \
154 $(postprocess_XCS)/Office/Logging.xcs \
155 $(postprocess_XCS)/Office/Math.xcs \
156 $(postprocess_XCS)/Office/OptionsDialog.xcs \
157 $(postprocess_XCS)/Office/Paths.xcs \
158 $(postprocess_XCS)/Office/ProtocolHandler.xcs \
159 $(postprocess_XCS)/Office/Recovery.xcs \
160 $(postprocess_XCS)/Office/Scripting.xcs \
161 $(postprocess_XCS)/Office/Security.xcs \
162 $(postprocess_XCS)/Office/TableWizard.xcs \
163 $(postprocess_XCS)/Office/TypeDetection.xcs \
164 $(postprocess_XCS)/Office/UI/BaseWindowState.xcs \
165 $(postprocess_XCS)/Office/UI/BasicIDECommands.xcs \
166 $(postprocess_XCS)/Office/UI/BasicIDEWindowState.xcs \
167 $(postprocess_XCS)/Office/UI/BibliographyCommands.xcs \
168 $(postprocess_XCS)/Office/UI/BibliographyWindowState.xcs \
169 $(postprocess_XCS)/Office/UI/Category.xcs \
170 $(postprocess_XCS)/Office/UI/ChartCommands.xcs \
171 $(postprocess_XCS)/Office/UI/ChartWindowState.xcs \
172 $(postprocess_XCS)/Office/UI/Commands.xcs \
173 $(postprocess_XCS)/Office/UI/Controller.xcs \
174 $(postprocess_XCS)/Office/UI/DbBrowserWindowState.xcs \
175 $(postprocess_XCS)/Office/UI/DbQueryWindowState.xcs \
176 $(postprocess_XCS)/Office/UI/DbRelationWindowState.xcs \
177 $(postprocess_XCS)/Office/UI/DbTableDataWindowState.xcs \
178 $(postprocess_XCS)/Office/UI/DbTableWindowState.xcs \
179 $(postprocess_XCS)/Office/UI/DbuCommands.xcs \
180 $(postprocess_XCS)/Office/UI/DrawImpressCommands.xcs \
181 $(postprocess_XCS)/Office/UI/Factories.xcs \
182 $(postprocess_XCS)/Office/UI/GenericCategories.xcs \
183 $(postprocess_XCS)/Office/UI/GenericCommands.xcs \
184 $(postprocess_XCS)/Office/UI/GlobalSettings.xcs \
185 $(postprocess_XCS)/Office/UI/Infobar.xcs \
186 $(postprocess_XCS)/Office/UI/Sidebar.xcs \
187 $(postprocess_XCS)/Office/UI/StartModuleCommands.xcs \
188 $(postprocess_XCS)/Office/UI/StartModuleWindowState.xcs \
189 $(postprocess_XCS)/Office/UI/ToolbarMode.xcs \
190 $(postprocess_XCS)/Office/UI/WindowContentFactories.xcs \
191 $(postprocess_XCS)/Office/UI/WindowState.xcs \
192 $(postprocess_XCS)/Office/UI.xcs \
193 $(postprocess_XCS)/Office/Update.xcs \
194 $(postprocess_XCS)/Office/Views.xcs \
195 $(postprocess_XCS)/Office/Writer.xcs \
196 $(postprocess_XCS)/Office/WriterWeb.xcs \
197 $(postprocess_XCS)/Setup.xcs \
198 $(postprocess_XCS)/System.xcs \
199 $(postprocess_XCS)/TypeDetection/Filter.xcs \
200 $(postprocess_XCS)/TypeDetection/GraphicFilter.xcs \
201 $(postprocess_XCS)/TypeDetection/Misc.xcs \
202 $(postprocess_XCS)/TypeDetection/Types.xcs \
203 $(postprocess_XCS)/TypeDetection/UISort.xcs \
204 $(postprocess_XCS)/UserProfile.xcs \
205 $(postprocess_XCS)/VCL.xcs \
206 $(postprocess_XCS)/ucb/Configuration.xcs \
207 $(postprocess_XCS)/ucb/Hierarchy.xcs \
208 $(postprocess_XCS)/ucb/InteractionHandler.xcs \
209 $(postprocess_XCS)/ucb/Store.xcs \
210 $(postprocess_XCU)/Inet.xcu \
211 $(postprocess_XCU)/Interaction.xcu \
212 $(postprocess_XCU)/Office/Accelerators.xcu \
213 $(postprocess_XCU)/Office/BasicIDE.xcu \
214 $(postprocess_XCU)/Office/Calc.xcu \
215 $(postprocess_XCU)/Office/Canvas.xcu \
216 $(postprocess_XCU)/Office/Common.xcu \
217 $(postprocess_XCU)/Office/Compatibility.xcu \
218 $(postprocess_XCU)/Office/DataAccess.xcu \
219 $(postprocess_XCU)/Office/Embedding.xcu \
220 $(postprocess_XCU)/Office/ExtensionDependencies.xcu \
221 $(postprocess_XCU)/Office/ExtensionManager.xcu \
222 $(postprocess_XCU)/Office/FormWizard.xcu \
223 $(postprocess_XCU)/Office/Histories.xcu \
224 $(postprocess_XCU)/Office/Impress.xcu \
225 $(postprocess_XCU)/Office/Jobs.xcu \
226 $(postprocess_XCU)/Office/Logging.xcu \
227 $(postprocess_XCU)/Office/Math.xcu \
228 $(postprocess_XCU)/Office/Paths.xcu \
229 $(postprocess_XCU)/Office/ProtocolHandler.xcu \
230 $(postprocess_XCU)/Office/Scripting.xcu \
231 $(postprocess_XCU)/Office/Security.xcu \
232 $(postprocess_XCU)/Office/TableWizard.xcu \
233 $(postprocess_XCU)/Office/UI/BaseWindowState.xcu \
234 $(postprocess_XCU)/Office/UI/BasicIDECommands.xcu \
235 $(postprocess_XCU)/Office/UI/BasicIDEWindowState.xcu \
236 $(postprocess_XCU)/Office/UI/BibliographyCommands.xcu \
237 $(postprocess_XCU)/Office/UI/ChartCommands.xcu \
238 $(postprocess_XCU)/Office/UI/ChartWindowState.xcu \
239 $(postprocess_XCU)/Office/UI/Controller.xcu \
240 $(postprocess_XCU)/Office/UI/DbBrowserWindowState.xcu \
241 $(postprocess_XCU)/Office/UI/DbQueryWindowState.xcu \
242 $(postprocess_XCU)/Office/UI/DbRelationWindowState.xcu \
243 $(postprocess_XCU)/Office/UI/DbTableDataWindowState.xcu \
244 $(postprocess_XCU)/Office/UI/DbTableWindowState.xcu \
245 $(postprocess_XCU)/Office/UI/DbuCommands.xcu \
246 $(postprocess_XCU)/Office/UI/DrawImpressCommands.xcu \
247 $(postprocess_XCU)/Office/UI/Factories.xcu \
248 $(postprocess_XCU)/Office/UI/GenericCategories.xcu \
249 $(postprocess_XCU)/Office/UI/GenericCommands.xcu \
250 $(postprocess_XCU)/Office/UI/Sidebar.xcu \
251 $(postprocess_XCU)/Office/UI/StartModuleWindowState.xcu \
252 $(postprocess_XCU)/Office/UI/ToolbarMode.xcu \
253 $(postprocess_XCU)/Office/UI.xcu \
254 $(postprocess_XCU)/Office/Views.xcu \
255 $(postprocess_XCU)/Office/Writer.xcu \
256 $(postprocess_XCU)/Setup.xcu \
257 $(postprocess_XCU)/System.xcu \
258 $(postprocess_XCU)/TypeDetection/UISort.xcu \
259 $(postprocess_XCU)/UserProfile.xcu \
260 $(postprocess_XCU)/VCL.xcu \
261 $(postprocess_XCU)/ucb/Configuration.xcu \
262 $(call gb_XcuFilterFiltersTarget_get_target,fcfg_base_filters.xcu) \
263 $(call gb_XcuFilterOthersTarget_get_target,fcfg_base_others.xcu) \
264 $(call gb_XcuFilterTypesTarget_get_target,fcfg_base_types.xcu) \
265 $(call gb_XcuFilterFiltersTarget_get_target,fcfg_chart_filters.xcu) \
266 $(call gb_XcuFilterOthersTarget_get_target,fcfg_chart_others.xcu) \
267 $(call gb_XcuFilterTypesTarget_get_target,fcfg_chart_types.xcu) \
268 $(call gb_XcuFilterInternalTarget_get_target,fcfg_internalgraphics_filters.xcu) \
269 $(call gb_XcuFilterTypesTarget_get_target,fcfg_internalgraphics_types.xcu) \
270 $(postprocess_MOD)/org/openoffice/Office/Embedding-chart.xcu \
271 $(postprocess_MOD)/org/openoffice/Setup-start.xcu \
272 $(postprocess_MOD)/org/openoffice/TypeDetection/UISort-calc.xcu \
273 $(postprocess_MOD)/org/openoffice/TypeDetection/UISort-draw.xcu \
274 $(postprocess_MOD)/org/openoffice/TypeDetection/UISort-impress.xcu \
275 $(postprocess_MOD)/org/openoffice/TypeDetection/UISort-math.xcu \
276 $(postprocess_MOD)/org/openoffice/TypeDetection/UISort-writer.xcu
277 ifeq (DBCONNECTIVITY,$(filter DBCONNECTIVITY,$(BUILD_TYPE)))
278 postprocess_FILES_main += \
279 $(call gb_XcuModuleTarget_get_target,connectivity/registry/dbase)/org/openoffice/Office/DataAccess/Drivers-dbase.xcu \
280 $(call gb_XcuModuleTarget_get_target,connectivity/registry/flat)/org/openoffice/Office/DataAccess/Drivers-flat.xcu \
281 $(call gb_XcuModuleTarget_get_target,connectivity/registry/odbc)/org/openoffice/Office/DataAccess/Drivers-odbc.xcu \
282 $(call gb_XcuModuleTarget_get_target,connectivity/registry/mysql_jdbc)/org/openoffice/Office/DataAccess/Drivers-mysql_jdbc.xcu
283 postprocess_DRIVERS += dbase flat odbc mysql_jdbc
284 ifeq (DBCONNECTIVITY,$(filter DBCONNECTIVITY,$(BUILD_TYPE)))
285 ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
286 postprocess_FILES_main += $(call gb_XcuModuleTarget_get_target,connectivity/registry/mork)/org/openoffice/Office/DataAccess/Drivers-mork.xcu
287 postprocess_DRIVERS += mork
288 endif
289 endif
290 endif
291 ifeq (MACOSX,$(OS))
292 postprocess_FILES_main += \
293 $(call gb_XcuModuleTarget_get_target,connectivity/registry/macab)/org/openoffice/Office/DataAccess/Drivers-macab.xcu \
294 $(postprocess_MOD)/org/openoffice/Inet-macosx.xcu \
295 $(postprocess_MOD)/org/openoffice/Office/Accelerators-macosx.xcu \
296 $(postprocess_MOD)/org/openoffice/Office/Common-macosx.xcu \
297 $(postprocess_MOD)/org/openoffice/Office/Paths-macosx.xcu
298 # Inet-macosx.xcu must come after Inet.xcu
299 postprocess_DRIVERS += macab
300 else ifeq ($(USING_X11), TRUE)
301 postprocess_FILES_main += \
302 $(postprocess_MOD)/org/openoffice/Inet-unixdesktop.xcu \
303 $(postprocess_MOD)/org/openoffice/Office/Accelerators-unxwnt.xcu \
304 $(postprocess_MOD)/org/openoffice/Office/Common-UseOOoFileDialogs.xcu \
305 $(postprocess_MOD)/org/openoffice/Office/Common-unixdesktop.xcu \
306 $(postprocess_MOD)/org/openoffice/Office/Common-unx.xcu \
307 $(postprocess_MOD)/org/openoffice/Office/Paths-unixdesktop.xcu \
308 $(postprocess_MOD)/org/openoffice/Office/Paths-unxwnt.xcu \
309 $(postprocess_MOD)/org/openoffice/UserProfile-unixdesktop.xcu \
310 $(postprocess_MOD)/org/openoffice/VCL-unixdesktop.xcu
311 # Inet-unixdesktop.xcu must come after Inet.xcu
312 # VCL-unixdesktop.xcu must come after VCL.xcu
313 else ifeq (WNT,$(OS))
314 postprocess_FILES_main += \
315 $(postprocess_MOD)/org/openoffice/Inet-wnt.xcu \
316 $(postprocess_MOD)/org/openoffice/Office/Accelerators-unxwnt.xcu \
317 $(postprocess_MOD)/org/openoffice/Office/Common-wnt.xcu \
318 $(postprocess_MOD)/org/openoffice/Office/Paths-unxwnt.xcu \
319 $(postprocess_MOD)/org/openoffice/ucb/Configuration-win.xcu
320 # Inet-wnt.xcu must come after Inet.xcu
321 ifeq ($(gb_Side),host)
322 postprocess_FILES_main += \
323 $(call gb_XcuModuleTarget_get_target,connectivity/registry/ado)/org/openoffice/Office/DataAccess/Drivers-ado.xcu
324 postprocess_DRIVERS += ado
325 endif
326 endif
327 ifneq ($(WITH_WEBDAV),)
328 postprocess_FILES_main += $(postprocess_MOD)/org/openoffice/ucb/Configuration-webdav.xcu
329 endif
330 ifeq ($(ENABLE_EVOAB2),TRUE)
331 postprocess_FILES_main += $(call gb_XcuModuleTarget_get_target,connectivity/registry/evoab2)/org/openoffice/Office/DataAccess/Drivers-evoab2.xcu
332 postprocess_FILES_main += $(postprocess_MOD)/org/openoffice/Office/DataAccess-evoab2.xcu
333 postprocess_DRIVERS += evoab
334 endif
335 ifeq ($(ENABLE_JAVA),TRUE)
336 postprocess_FILES_main += \
337 $(call gb_XcuModuleTarget_get_target,connectivity/registry/hsqldb)/org/openoffice/Office/DataAccess/Drivers-hsqldb.xcu \
338 $(call gb_XcuModuleTarget_get_target,connectivity/registry/jdbc)/org/openoffice/Office/DataAccess/Drivers-jdbc.xcu
339 postprocess_DRIVERS += hsqldb jdbc
340 endif
341 ifeq ($(ENABLE_FIREBIRD_SDBC),TRUE)
342 postprocess_FILES_main += \
343 $(call gb_XcuModuleTarget_get_target,connectivity/registry/firebird)/org/openoffice/Office/DataAccess/Drivers-firebird.xcu
344 postprocess_DRIVERS += firebird_sdbc
345 endif
347 ifeq ($(ENABLE_MARIADBC),TRUE)
348 postprocess_FILES_main += \
349 $(call gb_XcuModuleTarget_get_target,connectivity/registry/mysqlc)/org/openoffice/Office/DataAccess/Drivers-mysqlc.xcu
350 postprocess_DRIVERS += mysqlc
351 endif
353 ifneq (,$(SYSTEM_LIBEXTTEXTCAT_DATA))
354 postprocess_FILES_main += $(postprocess_MOD)/org/openoffice/Office/Paths-externallibexttextcatdata.xcu
355 else
356 postprocess_FILES_main += $(postprocess_MOD)/org/openoffice/Office/Paths-internallibexttextcatdata.xcu
357 endif
359 ifneq (,$(SYSTEM_LIBNUMBERTEXT_DATA))
360 postprocess_FILES_main += $(postprocess_MOD)/org/openoffice/Office/Paths-externallibnumbertextdata.xcu
361 else
362 postprocess_FILES_main += $(postprocess_MOD)/org/openoffice/Office/Paths-internallibnumbertextdata.xcu
363 endif
365 ifneq ($(filter POWERPC INTEL ARM HPPA GODSON M68K SPARC S390,$(CPUNAME)),)
366 postprocess_FILES_main += \
367 $(postprocess_MOD)/org/openoffice/Office/Common-32bit.xcu
368 endif
370 postprocess_DEPS_math := main
371 postprocess_FILES_math := \
372 $(postprocess_XCS)/Office/UI/MathCommands.xcs \
373 $(postprocess_XCS)/Office/UI/MathWindowState.xcs \
374 $(postprocess_XCU)/Office/UI/MathCommands.xcu \
375 $(postprocess_XCU)/Office/UI/MathWindowState.xcu \
376 $(call gb_XcuFilterFiltersTarget_get_target,fcfg_math_filters.xcu) \
377 $(call gb_XcuFilterTypesTarget_get_target,fcfg_math_types.xcu) \
378 $(postprocess_MOD)/org/openoffice/Office/Common-math.xcu \
379 $(postprocess_MOD)/org/openoffice/Office/Embedding-math.xcu \
380 $(postprocess_MOD)/org/openoffice/Setup-math.xcu
382 postprocess_DEPS_pyuno := main
383 postprocess_FILES_pyuno := \
384 $(postprocess_MOD)/org/openoffice/Office/Scripting-python.xcu
386 ifeq ($(ENABLE_REPORTBUILDER),TRUE)
387 postprocess_XCDS += reportbuilder.xcd
388 postprocess_DEPS_reportbuilder := main
389 postprocess_FILES_reportbuilder := \
390 $(postprocess_XCS)/Office/ReportDesign.xcs \
391 $(postprocess_XCS)/Office/UI/DbReportWindowState.xcs \
392 $(postprocess_XCS)/Office/UI/ReportCommands.xcs \
393 $(postprocess_XCU)/Office/ExtendedColorScheme.xcu \
394 $(postprocess_XCU)/Office/ReportDesign.xcu \
395 $(postprocess_XCU)/Office/UI/DbReportWindowState.xcu \
396 $(postprocess_XCU)/Office/UI/ReportCommands.xcu \
397 $(call gb_XcuFilterFiltersTarget_get_target,fcfg_reportbuilder_filters.xcu) \
398 $(call gb_XcuFilterTypesTarget_get_target,fcfg_reportbuilder_types.xcu) \
399 $(postprocess_MOD)/org/openoffice/Setup-reportbuilder.xcu \
400 $(postprocess_MOD)/org/openoffice/Office/Accelerators-reportbuilder.xcu \
401 $(postprocess_MOD)/org/openoffice/Office/DataAccess-reportbuilder.xcu \
402 $(postprocess_MOD)/org/openoffice/Office/Embedding-reportbuilder.xcu \
403 $(postprocess_MOD)/org/openoffice/Office/UI/Controller-reportbuilder.xcu
404 endif
406 postprocess_DEPS_writer := main
407 postprocess_FILES_writer := \
408 $(postprocess_XCS)/Office/UI/WriterCommands.xcs \
409 $(postprocess_XCS)/Office/UI/WriterFormWindowState.xcs \
410 $(postprocess_XCS)/Office/UI/WriterGlobalWindowState.xcs \
411 $(postprocess_XCS)/Office/UI/WriterReportWindowState.xcs \
412 $(postprocess_XCS)/Office/UI/WriterWebWindowState.xcs \
413 $(postprocess_XCS)/Office/UI/WriterWindowState.xcs \
414 $(postprocess_XCS)/Office/UI/XFormsWindowState.xcs \
415 $(postprocess_XCU)/Office/UI/WriterCommands.xcu \
416 $(postprocess_XCU)/Office/UI/WriterFormWindowState.xcu \
417 $(postprocess_XCU)/Office/UI/WriterGlobalWindowState.xcu \
418 $(postprocess_XCU)/Office/UI/WriterReportWindowState.xcu \
419 $(postprocess_XCU)/Office/UI/WriterWebWindowState.xcu \
420 $(postprocess_XCU)/Office/UI/WriterWindowState.xcu \
421 $(postprocess_XCU)/Office/UI/XFormsWindowState.xcu \
422 $(call gb_XcuFilterFiltersTarget_get_target,fcfg_global_filters.xcu) \
423 $(call gb_XcuFilterTypesTarget_get_target,fcfg_global_types.xcu) \
424 $(call gb_XcuFilterFiltersTarget_get_target,fcfg_web_filters.xcu) \
425 $(call gb_XcuFilterTypesTarget_get_target,fcfg_web_types.xcu) \
426 $(call gb_XcuFilterFiltersTarget_get_target,fcfg_writer_filters.xcu) \
427 $(call gb_XcuFilterTypesTarget_get_target,fcfg_writer_types.xcu) \
428 $(postprocess_MOD)/org/openoffice/Office/Common-writer.xcu \
429 $(postprocess_MOD)/org/openoffice/Office/Embedding-writer.xcu \
430 $(postprocess_MOD)/org/openoffice/Setup-writer.xcu
432 ifeq (DBCONNECTIVITY,$(filter DBCONNECTIVITY,$(BUILD_TYPE)))
433 postprocess_FILES_writer += \
434 $(call gb_XcuModuleTarget_get_target,connectivity/registry/writer)/org/openoffice/Office/DataAccess/Drivers-writer.xcu \
435 $(call gb_XcuModuleTarget_get_target,connectivity/registry/mysql_jdbc)/org/openoffice/Office/DataAccess/Drivers-mysql_jdbc.xcu
436 postprocess_DRIVERS += writer mysql_jdbc
437 endif
439 postprocess_DEPS_xsltfilter := main
440 postprocess_OPTDEPS_xsltfilter := calc writer
441 postprocess_FILES_xsltfilter := \
442 $(call gb_XcuFilterFiltersTarget_get_target,fcfg_xslt_filters.xcu) \
443 $(call gb_XcuFilterTypesTarget_get_target,fcfg_xslt_types.xcu)
445 ifneq ($(BUILD_POSTGRESQL_SDBC),)
446 postprocess_XCDS += postgresql.xcd
447 postprocess_DEPS_postgresql := main
448 postprocess_FILES_postgresql := $(call gb_XcuModuleTarget_get_target,connectivity/registry/postgresql)/org/openoffice/Office/DataAccess/Drivers-postgresql.xcu
449 postprocess_DRIVERS += postgresql
450 endif
452 ifneq (,$(and $(USING_X11), $(ENABLE_GIO)))
453 postprocess_XCDS += gnome.xcd
454 postprocess_DEPS_gnome := main
455 postprocess_FILES_gnome += $(postprocess_MOD)/org/openoffice/ucb/Configuration-gio.xcu
456 endif
458 ifeq ($(ENABLE_ONLINE_UPDATE),TRUE)
459 postprocess_XCDS += onlineupdate.xcd
460 postprocess_DEPS_onlineupdate := main
461 postprocess_FILES_onlineupdate := \
462 $(call gb_XcuModuleTarget_get_target,extensions/source/update/check)/org/openoffice/Office/Addons-onlineupdate.xcu \
463 $(call gb_XcuModuleTarget_get_target,extensions/source/update/check)/org/openoffice/Office/Jobs-onlineupdate.xcu
464 endif
466 ifeq ($(ENABLE_OPENGL_TRANSITIONS),TRUE)
467 postprocess_XCDS += ogltrans.xcd
468 postprocess_DEPS_ogltrans := main
469 postprocess_FILES_ogltrans := \
470 $(postprocess_MOD)/org/openoffice/Office/Impress-ogltrans.xcu
471 endif
473 ifeq ($(ENABLE_PDFIMPORT),TRUE)
474 postprocess_XCDS += pdfimport.xcd
475 postprocess_OPTDEPS_pdfimport := calc draw impress math writer
476 # HACK: for all fcfg_X_types.xcu in filter/Configuration_filter.mk that
477 # include pdf_Portable_Document_Format (i.e., X in calc, draw, global,
478 # impress, math, web, writer), add optional dependencies on those XCDS that
479 # include those fcfg_X_types.xcu
480 postprocess_FILES_pdfimport := \
481 $(SRCDIR)/sdext/source/pdfimport/config/pdf_import_filter.xcu \
482 $(SRCDIR)/sdext/source/pdfimport/config/pdf_types.xcu
483 endif
485 ifeq (WNT,$(OS))
486 postprocess_XCDS += forcedefault.xcd
487 postprocess_DEPS_forcedefault := main
488 postprocess_FILES_forcedefault := \
489 $(postprocess_MOD)/org/openoffice/Office/Linguistic-ForceDefaultLanguage.xcu
490 endif
492 postprocess_DRIVERS := $(foreach driver,$(postprocess_DRIVERS),driver_$(driver))
495 # Targets
498 $(call gb_CustomTarget_get_target,postprocess/registry) : \
499 $(foreach target,$(postprocess_XCDS) \
500 $(foreach lang,$(gb_Configuration_LANGS), \
501 Langpack-$(lang).xcd \
502 fcfg_langpack_$(lang).xcd \
503 registry_$(lang).xcd \
505 ,$(call gb_XcdTarget_get_target,$(target)))
508 # Dependencies
511 define postprocess_xcd_deps
512 $(call gb_XcdTarget_get_target,$(1)).xcd : \
513 $(call gb_CustomTarget_get_workdir,postprocess/registry)/$(1).list
515 $(call gb_CustomTarget_get_workdir,postprocess/registry)/$(1).list : \
516 $(postprocess_FILES_$(1)) \
517 $(SRCDIR)/postprocess/CustomTarget_registry.mk \
518 | $(call gb_CustomTarget_get_workdir,postprocess/registry)/.dir
520 endef
521 $(foreach xcd,$(postprocess_XCDS),$(eval $(call postprocess_xcd_deps,$(basename $(xcd)))))
523 define postprocess_lang_deps
524 $(call gb_XcdTarget_get_target,Langpack-$(1).xcd) : \
525 $(call gb_CustomTarget_get_workdir,postprocess/registry)/Langpack-$(1).list
527 $(call gb_CustomTarget_get_workdir,postprocess/registry)/Langpack-$(1).list : \
528 $(call gb_XcuLangpackTarget_get_target,Langpack-$(1).xcu) \
529 | $(call gb_CustomTarget_get_workdir,postprocess/registry)/.dir
531 $(call gb_XcdTarget_get_target,fcfg_langpack_$(1).xcd) : \
532 $(call gb_CustomTarget_get_workdir,postprocess/registry)/fcfg_langpack_$(1).list \
533 | $(call gb_CustomTarget_get_workdir,postprocess/registry)/.dir
535 $(call gb_CustomTarget_get_workdir,postprocess/registry)/fcfg_langpack_$(1).list : \
536 $(call gb_Configuration_get_target,fcfg_langpack) \
537 | $(call gb_CustomTarget_get_workdir,postprocess/registry)/.dir
539 $(call gb_XcdTarget_get_target,registry_$(1).xcd) : \
540 $(call gb_CustomTarget_get_workdir,postprocess/registry)/registry_$(1).list
542 $(call gb_CustomTarget_get_workdir,postprocess/registry)/registry_$(1).list : \
543 $(call gb_Configuration_get_target,registry) \
544 $(if $(filter DBCONNECTIVITY,$(BUILD_TYPE)),\
545 $(foreach driver,$(postprocess_DRIVERS),$(call gb_Configuration_get_target,$(driver))) \
547 $(if $(filter TRUE,$(ENABLE_ONLINE_UPDATE)),$(call gb_Configuration_get_target,updchk)) \
548 | $(call gb_CustomTarget_get_workdir,postprocess/registry)/.dir
550 endef
551 $(foreach lang,$(gb_Configuration_LANGS),$(eval $(call postprocess_lang_deps,$(lang))))
554 # Rules
557 postprocess_main_SED := \
558 -e 's,$${ABOUTBOXPRODUCTVERSION},$(LIBO_VERSION_MAJOR).$(LIBO_VERSION_MINOR).$(LIBO_VERSION_MICRO).$(LIBO_VERSION_PATCH)$(LIBO_VERSION_SUFFIX),g' \
559 -e 's,$${ABOUTBOXPRODUCTVERSIONSUFFIX},$(LIBO_VERSION_SUFFIX_SUFFIX),g' \
560 -e 's,$${OOOVENDOR},$(if $(OOO_VENDOR),$(subst $(COMMA),\x2c,$(OOO_VENDOR)),The Document Foundation),g' \
561 -e 's,$${PRODUCTNAME},$(PRODUCTNAME),g' \
562 -e 's,$${PRODUCTVERSION},$(PRODUCTVERSION),g' \
563 -e 's,$${PRODUCTEXTENSION},.$(LIBO_VERSION_MICRO).$(LIBO_VERSION_PATCH)$(LIBO_VERSION_SUFFIX),g' \
564 -e 's,$${STARTCENTER_ADDFEATURE_URL},http://extensions.libreoffice.org/,g' \
565 -e 's,$${STARTCENTER_INFO_URL},https://www.libreoffice.org/,g' \
566 -e 's,$${STARTCENTER_TEMPLREP_URL},http://templates.libreoffice.org/,g' \
567 -e 's,$${SYSTEM_LIBEXTTEXTCAT_DATA},$(SYSTEM_LIBEXTTEXTCAT_DATA),g' \
568 -e 's,$${SYSTEM_LIBNUMBERTEXT_DATA},$(SYSTEM_LIBNUMBERTEXT_DATA),g' \
570 $(call gb_XcdTarget_get_target,main.xcd) \
571 : $(BUILDDIR)/config_host.mk.stamp \
572 | $(call gb_ExternalExecutable_get_dependencies,xsltproc)
573 $(call gb_Output_announce,main,$(true),XCD,3)
574 $(call gb_Trace_StartRange,main,XCD)
575 $(call gb_Helper_abbreviate_dirs, \
576 mkdir -p $(dir $@) && \
577 $(call gb_ExternalExecutable_get_command,xsltproc) --nonet \
578 $(SRCDIR)/solenv/bin/packregistry.xslt \
579 $(call gb_CustomTarget_get_workdir,postprocess/registry)/main.list \
580 | sed $(postprocess_main_SED) > $@ \
582 $(call gb_Trace_EndRange,main,XCD)
584 $(call gb_XcdTarget_get_target,%.xcd) : \
585 | $(call gb_ExternalExecutable_get_dependencies,xsltproc)
586 $(call gb_Output_announce,$*,$(true),XCD,3)
587 $(call gb_Trace_StartRange,$*,XCD)
588 $(call gb_Helper_abbreviate_dirs, \
589 mkdir -p $(dir $@) && \
590 $(call gb_ExternalExecutable_get_command,xsltproc) --nonet \
591 -o $@ $(SRCDIR)/solenv/bin/packregistry.xslt $< \
593 $(call gb_Trace_EndRange,$*,XCD)
595 $(call gb_CustomTarget_get_workdir,postprocess/registry)/Langpack-%.list :
596 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,2)
597 $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),ECH)
598 echo '<list><dependency file="main"/><filename>$(call gb_XcuLangpackTarget_get_target,Langpack-$*.xcu)</filename></list>' > $@
599 $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),ECH)
601 # It can happen that localized fcfg_langpack_*.zip contains
602 # zero-sized org/openoffice/TypeDetection/Filter.xcu; filter them out in the
603 # find shell command below (see issue 110041):
604 $(call gb_CustomTarget_get_workdir,postprocess/registry)/fcfg_langpack_%.list :
605 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),AWK,2)
606 $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),AWK)
607 $(call gb_Helper_abbreviate_dirs,\
608 $(FIND) $(call gb_XcuResTarget_get_target,fcfg_langpack/$*/) \
609 -name *.xcu -size +0c \
610 | LC_ALL=C $(SORT) \
611 | $(gb_AWK) 'BEGIN{print "<list>"} \
612 {print "<filename>"$$0"</filename>"} \
613 END {print "</list>"}' > $@ \
615 $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),AWK)
617 $(call gb_CustomTarget_get_workdir,postprocess/registry)/registry_%.list :
618 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),AWK,2)
619 $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),AWK)
620 $(call gb_Helper_abbreviate_dirs,\
621 $(FIND) $(call gb_XcuResTarget_get_target,registry/$*/) \
622 $(if $(filter DBCONNECTIVITY,$(BUILD_TYPE)),\
623 $(foreach driver,$(postprocess_DRIVERS),\
624 $(call gb_XcuResTarget_get_target,$(driver)/$*/)))\
625 $(if $(filter TRUE,$(ENABLE_ONLINE_UPDATE)),\
626 $(call gb_XcuResTarget_get_target,updchk/$*/))\
627 -name *.xcu \
628 | LC_ALL=C $(SORT) \
629 | $(gb_AWK) 'BEGIN{print "<list>"} \
630 {print "<filename>"$$0"</filename>"} \
631 END {print "</list>"}' > $@ \
633 $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),AWK)
635 $(call gb_CustomTarget_get_workdir,postprocess/registry)/%.list :
636 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,2)
637 $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),ECH)
638 mv $(call var2file,$@.tmp,70,<list> $(foreach i,$(postprocess_DEPS_$*), <dependency file='$i'/>) \
639 $(foreach i,$(postprocess_OPTDEPS_$*), <dependency file='$i' optional='true'/>) \
640 $(foreach i,$(postprocess_FILES_$*), <filename>$(i)</filename>) </list>) \
642 $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),ECH)
644 # vim: set noet sw=4 ts=4: