summaryrefslogtreecommitdiff
path: root/xmloff/util
diff options
context:
space:
mode:
authorArmin Le Grand (Allotropia) <Armin.Le.Grand@me.com>2021-04-30 17:26:41 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2022-01-20 12:28:54 +0100
commit02140554ee1d70b219a42546191e2219d58be4b0 (patch)
tree3dd419dbdd0c23676c7f749bd8a83d09ad26c8bd /xmloff/util
parent02634fb7c7e8dc613ffc3717bb244f85cf81a7c6 (diff)
WASM --enable-wasm-strip now skips lots of LO code
... resulting in a stripped-down, Writer-only build to decrease the resulting WASM bytecode size. It removes the following code from the build: * All other major modules: Base, Calc, Chart, Draw, Impress and Math and related writerperfect filters * The premultiply tables * The (auto-)recovery functionality * All accessibility (but not the accessibility document checker) * The LanguageGuess component * EPUB support * The start center / BackingWindow * The TipOfTheDay functionality * The splash screen communication Currently crashs with anything different then soffice --writer. Closing the document also still crashes. FYI: many of these features are now behind ENABLE_WASM_STRIP_* defines, but they normally don't work on their own, globally! That's because we started with stripping the main components. Change-Id: Ib9c0f9452815910c0a2aceaf142ba1ad4a9cb0d7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126182 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'xmloff/util')
-rw-r--r--xmloff/util/xo.component36
-rw-r--r--xmloff/util/xo.component.chart17
-rw-r--r--xmloff/util/xo.component.draw18
-rw-r--r--xmloff/util/xo.component.impress18
-rw-r--r--xmloff/util/xo.component.writer7
5 files changed, 96 insertions, 0 deletions
diff --git a/xmloff/util/xo.component b/xmloff/util/xo.component
index db63a5cd0519..7bd198ce17d3 100644
--- a/xmloff/util/xo.component
+++ b/xmloff/util/xo.component
@@ -22,142 +22,177 @@
<implementation name="SchXMLExport.Compact"
constructor="com_sun_star_comp_Chart_XMLExporter_get_implementation">
<service name="com.sun.star.comp.Chart.XMLExporter"/>
+ <optional/>
</implementation>
<implementation name="SchXMLExport.Content"
constructor="com_sun_star_comp_Chart_XMLContentExporter_get_implementation">
<service name="com.sun.star.comp.Chart.XMLContentExporter"/>
+ <optional/>
</implementation>
<implementation name="SchXMLExport.Oasis.Compact"
constructor="com_sun_star_comp_Chart_XMLOasisExporter_get_implementation">
<service name="com.sun.star.comp.Chart.XMLOasisExporter"/>
+ <optional/>
</implementation>
<implementation name="SchXMLExport.Oasis.Content"
constructor="com_sun_star_comp_Chart_XMLOasisContentExporter_get_implementation">
<service name="com.sun.star.comp.Chart.XMLOasisContentExporter"/>
+ <optional/>
</implementation>
<implementation name="SchXMLExport.Oasis.Meta"
constructor="com_sun_star_comp_Chart_XMLOasisMetaExporter_get_implementation">
<service name="com.sun.star.comp.Chart.XMLOasisMetaExporter"/>
+ <optional/>
</implementation>
<implementation name="SchXMLExport.Oasis.Styles"
constructor="com_sun_star_comp_Chart_XMLOasisStylesExporter_get_implementation">
<service name="com.sun.star.comp.Chart.XMLOasisStylesExporter"/>
+ <optional/>
</implementation>
<implementation name="SchXMLExport.Styles"
constructor="com_sun_star_comp_Chart_XMLStylesExporter_get_implementation">
<service name="com.sun.star.comp.Chart.XMLStylesExporter"/>
+ <optional/>
</implementation>
<implementation name="SchXMLImport"
constructor="com_sun_star_comp_Chart_XMLOasisImporter_get_implementation">
<service name="com.sun.star.comp.Chart.XMLOasisImporter"/>
+ <optional/>
</implementation>
<implementation name="SchXMLImport.Content"
constructor="com_sun_star_comp_Chart_XMLOasisContentImporter_get_implementation">
<service name="com.sun.star.comp.Chart.XMLOasisContentImporter"/>
+ <optional/>
</implementation>
<implementation name="SchXMLImport.Meta"
constructor="com_sun_star_comp_Chart_XMLOasisMetaImporter_get_implementation">
<service name="com.sun.star.comp.Chart.XMLOasisMetaImporter"/>
+ <optional/>
</implementation>
<implementation name="SchXMLImport.Styles"
constructor="com_sun_star_comp_Chart_XMLOasisStylesImporter_get_implementation">
<service name="com.sun.star.comp.Chart.XMLOasisStylesImporter"/>
+ <optional/>
</implementation>
<implementation name="XMLDrawContentExportOasis"
constructor="com_sun_star_comp_Draw_XMLOasisContentExporter_get_implementation">
<service name="com.sun.star.comp.Draw.XMLOasisContentExporter"/>
+ <optional/>
</implementation>
<implementation name="XMLDrawExportOOO"
constructor="com_sun_star_comp_Draw_XMLExporter_get_implementation">
<service name="com.sun.star.comp.Draw.XMLExporter"/>
+ <optional/>
</implementation>
<implementation name="XMLDrawExportOasis"
constructor="com_sun_star_comp_Draw_XMLOasisExporter_get_implementation">
<service name="com.sun.star.comp.Draw.XMLOasisExporter"/>
+ <optional/>
</implementation>
<implementation name="XMLDrawImportOasis"
constructor="com_sun_star_comp_Draw_XMLOasisImporter_get_implementation">
<service name="com.sun.star.comp.Draw.XMLOasisImporter"/>
+ <optional/>
</implementation>
<implementation name="XMLDrawMetaExportOasis"
constructor="com_sun_star_comp_Draw_XMLOasisMetaExporter_get_implementation">
<service name="com.sun.star.comp.Draw.XMLOasisMetaExporter"/>
+ <optional/>
</implementation>
<implementation name="XMLDrawSettingsExportOasis"
constructor="com_sun_star_comp_Draw_XMLOasisSettingsExporter_get_implementation">
<service name="com.sun.star.comp.Draw.XMLOasisSettingsExporter"/>
+ <optional/>
</implementation>
<implementation name="XMLDrawStylesExportOasis"
constructor="com_sun_star_comp_Draw_XMLOasisStylesExporter_get_implementation">
<service name="com.sun.star.comp.Draw.XMLOasisStylesExporter"/>
+ <optional/>
</implementation>
<implementation name="XMLDrawingLayerExport"
constructor="com_sun_star_comp_DrawingLayer_XMLExporter_get_implementation">
<service name="com.sun.star.comp.DrawingLayer.XMLExporter"/>
+ <optional/>
</implementation>
<implementation name="XMLImpressClipboardExport"
constructor="com_sun_star_comp_Impress_XMLClipboardExporter_get_implementation">
<service name="com.sun.star.comp.Impress.XMLClipboardExporter"/>
+ <optional/>
</implementation>
<implementation name="XMLImpressContentExportOasis"
constructor="com_sun_star_comp_Impress_XMLOasisContentExporter_get_implementation">
<service name="com.sun.star.comp.Impress.XMLOasisContentExporter"/>
+ <optional/>
</implementation>
<implementation name="XMLDrawContentImportOasis"
constructor="com_sun_star_comp_Draw_XMLOasisContentImporter_get_implementation">
<service name="com.sun.star.comp.Draw.XMLOasisContentImporter"/>
+ <optional/>
</implementation>
<implementation name="XMLImpressContentImportOasis"
constructor="com_sun_star_comp_Impress_XMLOasisContentImporter_get_implementation">
<service name="com.sun.star.comp.Impress.XMLOasisContentImporter"/>
+ <optional/>
</implementation>
<implementation name="XMLImpressExportOOO"
constructor="com_sun_star_comp_Impress_XMLExporter_get_implementation">
<service name="com.sun.star.comp.Impress.XMLExporter"/>
+ <optional/>
</implementation>
<implementation name="XMLImpressExportOasis"
constructor="com_sun_star_comp_Impress_XMLOasisExporter_get_implementation">
<service name="com.sun.star.comp.Impress.XMLOasisExporter"/>
+ <optional/>
</implementation>
<implementation name="XMLImpressImportOasis"
constructor="com_sun_star_comp_Impress_XMLOasisImporter_get_implementation">
<service name="com.sun.star.comp.Impress.XMLOasisImporter"/>
+ <optional/>
</implementation>
<implementation name="XMLImpressMetaExportOasis"
constructor="com_sun_star_comp_Impress_XMLOasisMetaExporter_get_implementation">
<service name="com.sun.star.comp.Impress.XMLOasisMetaExporter"/>
+ <optional/>
</implementation>
<implementation name="XMLDrawMetaImportOasis"
constructor="com_sun_star_comp_Draw_XMLOasisMetaImporter_get_implementation">
<service name="com.sun.star.comp.Draw.XMLOasisMetaImporter"/>
+ <optional/>
</implementation>
<implementation name="XMLImpressMetaImportOasis"
constructor="com_sun_star_comp_Impress_XMLOasisMetaImporter_get_implementation">
<service name="com.sun.star.comp.Impress.XMLOasisMetaImporter"/>
+ <optional/>
</implementation>
<implementation name="XMLImpressSettingsExportOasis"
constructor="com_sun_star_comp_Impress_XMLOasisSettingsExporter_get_implementation">
<service name="com.sun.star.comp.Impress.XMLOasisSettingsExporter"/>
+ <optional/>
</implementation>
<implementation name="XMLDrawSettingsImportOasis"
constructor="com_sun_star_comp_Draw_XMLOasisSettingsImporter_get_implementation">
<service name="com.sun.star.comp.Draw.XMLOasisSettingsImporter"/>
+ <optional/>
</implementation>
<implementation name="XMLImpressSettingsImportOasis"
constructor="com_sun_star_comp_Impress_XMLOasisSettingsImporter_get_implementation">
<service name="com.sun.star.comp.Impress.XMLOasisSettingsImporter"/>
+ <optional/>
</implementation>
<implementation name="XMLImpressStylesExportOasis"
constructor="com_sun_star_comp_Impress_XMLOasisStylesExporter_get_implementation">
<service name="com.sun.star.comp.Impress.XMLOasisStylesExporter"/>
+ <optional/>
</implementation>
<implementation name="XMLImpressStylesImportOasis"
constructor="com_sun_star_comp_Impress_XMLOasisStylesImporter_get_implementation">
<service name="com.sun.star.comp.Impress.XMLOasisStylesImporter"/>
+ <optional/>
</implementation>
<implementation name="XMLDrawStylesImportOasis"
constructor="com_sun_star_comp_Draw_XMLOasisStylesImporter_get_implementation">
<service name="com.sun.star.comp.Draw.XMLOasisStylesImporter"/>
+ <optional/>
</implementation>
<implementation name="XMLMetaExportComponent"
constructor="XMLMetaExportComponent_get_implementation">
@@ -178,6 +213,7 @@
<implementation name="com.sun.star.comp.Writer.XMLAutotextEventsExporter"
constructor="com_sun_star_comp_Writer_XMLAutotextEventsExporter_get_implementation">
<service name="com.sun.star.comp.Writer.XMLAutotextEventsExporter"/>
+ <optional/>
</implementation>
<implementation
name="com.sun.star.comp.Writer.XMLOasisAutotextEventsExporter"
diff --git a/xmloff/util/xo.component.chart b/xmloff/util/xo.component.chart
new file mode 100644
index 000000000000..d31357d02d2a
--- /dev/null
+++ b/xmloff/util/xo.component.chart
@@ -0,0 +1,17 @@
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+SchXMLExport.Compact
+SchXMLExport.Content
+SchXMLExport.Oasis.Compact
+SchXMLExport.Oasis.Content
+SchXMLExport.Oasis.Meta
+SchXMLExport.Oasis.Styles
+SchXMLExport.Styles
+SchXMLImport
+SchXMLImport.Content
+SchXMLImport.Meta
+SchXMLImport.Styles
diff --git a/xmloff/util/xo.component.draw b/xmloff/util/xo.component.draw
new file mode 100644
index 000000000000..f8bd3c3a9f4e
--- /dev/null
+++ b/xmloff/util/xo.component.draw
@@ -0,0 +1,18 @@
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+XMLDrawContentExportOasis
+XMLDrawContentImportOasis
+XMLDrawExportOasis
+XMLDrawExportOOO
+XMLDrawImportOasis
+XMLDrawingLayerExport
+XMLDrawMetaExportOasis
+XMLDrawMetaImportOasis
+XMLDrawSettingsExportOasis
+XMLDrawSettingsImportOasis
+XMLDrawStylesExportOasis
+XMLDrawStylesImportOasis
diff --git a/xmloff/util/xo.component.impress b/xmloff/util/xo.component.impress
new file mode 100644
index 000000000000..09105b58b901
--- /dev/null
+++ b/xmloff/util/xo.component.impress
@@ -0,0 +1,18 @@
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+XMLImpressClipboardExport
+XMLImpressContentExportOasis
+XMLImpressContentImportOasis
+XMLImpressExportOasis
+XMLImpressExportOOO
+XMLImpressImportOasis
+XMLImpressMetaExportOasis
+XMLImpressMetaImportOasis
+XMLImpressSettingsExportOasis
+XMLImpressSettingsImportOasis
+XMLImpressStylesExportOasis
+XMLImpressStylesImportOasis
diff --git a/xmloff/util/xo.component.writer b/xmloff/util/xo.component.writer
new file mode 100644
index 000000000000..b9c5fcfed5ab
--- /dev/null
+++ b/xmloff/util/xo.component.writer
@@ -0,0 +1,7 @@
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+com.sun.star.comp.Writer.XMLAutotextEventsExporter