diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-05-24 23:42:53 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-05-25 05:09:44 +0200 |
commit | 70b02e2cefeb9b2ea6b448ba06ec5b0465901d9f (patch) | |
tree | e7ea496eb88e6c0dbad1b597fa91d9b1ddcd3b7c | |
parent | wasm strip: add flags to configure.ac (diff) | |
download | core-70b02e2cefeb9b2ea6b448ba06ec5b0465901d9f.tar.gz core-70b02e2cefeb9b2ea6b448ba06ec5b0465901d9f.zip |
wasm sript: drop none-Writer modules
Strips GUI and components of Basic, Calc, Draw, Math an Impress.
Change-Id: I4495a148ad698e8deb38d22ae6e7c58df3270d79
-rw-r--r-- | RepositoryModule_host.mk | 8 | ||||
-rw-r--r-- | config_host.mk.in | 1 | ||||
-rw-r--r-- | extensions/Module_extensions.mk | 2 | ||||
-rw-r--r-- | postprocess/Rdb_services.mk | 4 |
4 files changed, 15 insertions, 0 deletions
diff --git a/RepositoryModule_host.mk b/RepositoryModule_host.mk index e8721bc74303..a54157d40f6e 100644 --- a/RepositoryModule_host.mk +++ b/RepositoryModule_host.mk @@ -26,7 +26,9 @@ $(eval $(call gb_Module_add_moduledirs,libreoffice,\ animations \ apple_remote \ avmedia \ + $(if $(ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS),, \ basctl \ + ) \ basegfx \ basic \ bean \ @@ -103,13 +105,17 @@ $(eval $(call gb_Module_add_moduledirs,libreoffice,\ sal \ salhelper \ sax \ + $(if $(ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS),, \ sc \ scaddins \ sccomp \ + ) \ $(call gb_Helper_optional,DESKTOP,scp2) \ scripting \ + $(if $(ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS),, \ sd \ sdext \ + ) \ $(call gb_Helper_optional,DESKTOP,setup_native) \ sfx2 \ shell \ @@ -118,7 +124,9 @@ $(eval $(call gb_Module_add_moduledirs,libreoffice,\ solenv \ soltools \ sot \ + $(if $(ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS),, \ starmath \ + ) \ $(if $(DISABLE_DYNLOADING),static) \ stoc \ store \ diff --git a/config_host.mk.in b/config_host.mk.in index 2042e219c130..945f48d4f7b6 100644 --- a/config_host.mk.in +++ b/config_host.mk.in @@ -205,6 +205,7 @@ export ENABLE_SKIA_DEBUG=@ENABLE_SKIA_DEBUG@ export ENABLE_SYMBOLS_FOR=@ENABLE_SYMBOLS_FOR@ export ENABLE_VALGRIND=@ENABLE_VALGRIND@ export ENABLE_WASM_STRIP=@ENABLE_WASM_STRIP@ +export ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS=@ENABLE_WASM_STRIP@ export ENABLE_WERROR=@ENABLE_WERROR@ export ENDIANNESS=@ENDIANNESS@ export EPM=@EPM@ diff --git a/extensions/Module_extensions.mk b/extensions/Module_extensions.mk index f0a4784b8b56..37a3048b0109 100644 --- a/extensions/Module_extensions.mk +++ b/extensions/Module_extensions.mk @@ -52,6 +52,7 @@ $(eval $(call gb_Module_add_targets,extensions,\ endif ifneq (,$(filter DESKTOP,$(BUILD_TYPE))) +ifeq (,$(ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS)) $(eval $(call gb_Module_add_targets,extensions,\ Library_updatefeed \ )) @@ -67,6 +68,7 @@ $(eval $(call gb_Module_add_check_targets,extensions,\ CppunitTest_extensions_test_update \ )) endif +endif # !ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS endif ifeq ($(OS),WNT) diff --git a/postprocess/Rdb_services.mk b/postprocess/Rdb_services.mk index cde59d1b7704..82110c712127 100644 --- a/postprocess/Rdb_services.mk +++ b/postprocess/Rdb_services.mk @@ -104,6 +104,7 @@ $(eval $(call gb_Rdb_add_components,services,\ lotuswordpro/util/lwpfilter \ ) \ oox/util/oox \ + $(if $(ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS),, \ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ @@ -118,6 +119,7 @@ $(eval $(call gb_Rdb_add_components,services,\ slideshow/util/slideshow \ starmath/util/sm \ starmath/util/smd \ + ) \ svx/util/svx \ svx/util/textconversiondlgs \ sw/util/msword \ @@ -147,7 +149,9 @@ $(eval $(call gb_Rdb_add_components,services,\ $(if $(ENABLE_LPSOLVE), \ sccomp/source/solver/lpsolvesolver \ ) \ + $(if $(ENABLE_WASM_STRIP_BASIC_CALC_DRAW_MATH_IMPRESS),, \ sccomp/source/solver/swarmsolver \ + ) \ writerfilter/util/writerfilter \ writerperfect/source/draw/wpftdraw \ writerperfect/source/impress/wpftimpress \ |