summaryrefslogtreecommitdiff
path: root/desktop/Executable_soffice_bin.mk
diff options
context:
space:
mode:
authorThorsten Behrens <thorsten.behrens@allotropia.de>2022-04-27 15:36:25 +0000
committerThorsten Behrens <thorsten.behrens@allotropia.de>2022-11-30 23:57:54 +0100
commitce60a3dd4dbff0dcb5b82c9053ae5d90f8ac929d (patch)
treeafb86725d12f61cb9cb92da9e8719866ccaf6289 /desktop/Executable_soffice_bin.mk
parentbaf7b40445f1ef681d9e64a825dd34f7a8117076 (diff)
Add LOKit functions and whitelist export for it to WASM
For calling into LOWA from native JS, make lokit functions available Change-Id: I6458806f33131e48692f35f2a2438b35efb1f06c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143497 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'desktop/Executable_soffice_bin.mk')
-rw-r--r--desktop/Executable_soffice_bin.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop/Executable_soffice_bin.mk b/desktop/Executable_soffice_bin.mk
index a3c3ff258613..ce908c1be318 100644
--- a/desktop/Executable_soffice_bin.mk
+++ b/desktop/Executable_soffice_bin.mk
@@ -47,4 +47,12 @@ endif
endif
+ifeq ($(OS),EMSCRIPTEN)
+
+$(eval $(call gb_Executable_add_ldflags,soffice_bin,\
+ -s EXPORTED_FUNCTIONS=["_main"$(COMMA)"_libreofficekit_hook"$(COMMA)"_libreofficekit_hook_2"$(COMMA)"_lok_preinit"$(COMMA)"_lok_preinit_2"] \
+))
+
+endif
+
# vim: set ts=4 sw=4 et: