diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-02-26 14:42:02 +0100 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-04-09 12:21:18 +0200 |
commit | da33f6e08aa846075cf0157d6c39df4b29918284 (patch) | |
tree | 9dfbffb63c28388332e6e7f92af063a87a24591f | |
parent | d3770e25891752ee93c1b89f2011ba11bd63ede9 (diff) |
catchall
Change-Id: If3eadcc396ab500f1a08a334a957ee0494aef033
-rw-r--r-- | RepositoryModule_host.mk | 8 | ||||
-rw-r--r-- | configure.ac | 11 | ||||
-rw-r--r-- | postprocess/Rdb_services.mk | 15 | ||||
-rw-r--r-- | solenv/gbuild/LinkTarget.mk | 7 | ||||
-rw-r--r-- | solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk | 4 | ||||
-rw-r--r-- | solenv/gbuild/platform/unxgcc.mk | 2 | ||||
-rw-r--r-- | solenv/gbuild/static.mk | 2 | ||||
-rw-r--r-- | vcl/Module_vcl.mk | 3 | ||||
-rw-r--r-- | wasm-qt/CustomTarget_wasm-qt5-mandelbrot_moc.mk (renamed from wasm/CustomTarget_wasm-qt5-mandelbrot_moc.mk) | 18 | ||||
-rw-r--r-- | wasm-qt/Executable_wasm-qt5-mandelbrot.mk (renamed from wasm/Executable_wasm-qt5-mandelbrot.mk) | 8 | ||||
-rw-r--r-- | wasm-qt/Makefile | 13 | ||||
-rw-r--r-- | wasm-qt/Module_wasm-qt.mk | 20 | ||||
-rw-r--r-- | wasm-qt/README | 1 | ||||
-rw-r--r-- | wasm-qt/source/qt5-mandelbrot/main.cxx (renamed from wasm/source/qt5-mandelbrot/main.cxx) | 0 | ||||
-rw-r--r-- | wasm-qt/source/qt5-mandelbrot/mandelbrotwidget.cxx (renamed from wasm/source/qt5-mandelbrot/mandelbrotwidget.cxx) | 0 | ||||
-rw-r--r-- | wasm-qt/source/qt5-mandelbrot/mandelbrotwidget.h (renamed from wasm/source/qt5-mandelbrot/mandelbrotwidget.h) | 0 | ||||
-rw-r--r-- | wasm-qt/source/qt5-mandelbrot/renderthread.cxx (renamed from wasm/source/qt5-mandelbrot/renderthread.cxx) | 0 | ||||
-rw-r--r-- | wasm-qt/source/qt5-mandelbrot/renderthread.h (renamed from wasm/source/qt5-mandelbrot/renderthread.h) | 0 | ||||
-rw-r--r-- | wasm/Module_wasm.mk | 2 |
19 files changed, 70 insertions, 44 deletions
diff --git a/RepositoryModule_host.mk b/RepositoryModule_host.mk index 25a314e9785a..64068ffc0e49 100644 --- a/RepositoryModule_host.mk +++ b/RepositoryModule_host.mk @@ -107,12 +107,10 @@ $(eval $(call gb_Module_add_moduledirs,libreoffice,\ $(call gb_Helper_optional,DESKTOP,setup_native) \ sfx2 \ shell \ - slideshow \ smoketest \ solenv \ soltools \ sot \ - starmath \ stoc \ store \ svl \ @@ -143,6 +141,7 @@ $(eval $(call gb_Module_add_moduledirs,libreoffice,\ vbahelper \ vcl \ wasm \ + wasm-qt \ winaccessibility \ wizards \ writerfilter \ @@ -177,11 +176,10 @@ endef # the default goal is build (see Module.mk) ifeq (,$(filter-out build check unitcheck slowcheck screenshot subsequentcheck uicheck,$(MAKECMDGOALS))) $(eval $(call repositorymodule_serialize,\ - scfilt \ $(call gb_Helper_optional,SCRIPTING,vbaobj) \ - sc msword \ + msword \ $(call gb_Helper_optional,DESKTOP,swui) \ - sw sd \ + sw \ $(call gb_Helper_optional,DBCONNECTIVITY,dbu) \ writerfilter cui chartcontroller chartcore oox \ $(if $(MERGELIBS), merged, \ diff --git a/configure.ac b/configure.ac index adffb1efc630..b1fcf6fd795d 100644 --- a/configure.ac +++ b/configure.ac @@ -1506,7 +1506,8 @@ libo_FUZZ_ARG_ENABLE(optimized, [Whether to compile with optimization flags. By default, disabled for --enable-debug and --enable-dbgutil, enabled otherwise. Using 'debug' will try to use only optimizations that should - not interfere with debugging.])) + not interfere with debugging. For Emscripten we default to optimized (-O1) + debug build, as otherwise biaries become too large.])) libo_FUZZ_ARG_ENABLE(runtime-optimizations, AS_HELP_STRING([--disable-runtime-optimizations], @@ -4379,6 +4380,10 @@ if test -n "$ENABLE_DBGUTIL" -o \( -n "$enable_debug" -a "$enable_debug" != "no" else AC_MSG_RESULT([yes]) fi + if test "$_os" = "Emscripten" -a -z "$enable_optimized"; then + # Otherwise binaries simply become too large (linker OOM + browser fails to load) + enable_optimized=debug + fi else ENABLE_DEBUG="" AC_MSG_RESULT([no]) @@ -4656,7 +4661,7 @@ elif test "$enable_optimized" = debug; then ENABLE_OPTIMIZED_DEBUG=TRUE AC_MSG_RESULT([yes (debug)]) HAVE_GCC_OG= - if test "$GCC" = "yes"; then + if test "$GCC" = "yes" -a "$_os" != "Emscripten"; then AC_MSG_CHECKING([whether $CC_BASE supports -Og]) save_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -Werror -Og" @@ -4668,7 +4673,7 @@ elif test "$enable_optimized" = debug; then AC_MSG_RESULT([no]) fi fi - if test -z "$HAVE_GCC_OG"; then + if test -z "$HAVE_GCC_OG" -a "$_os" != "Emscripten"; then AC_MSG_ERROR([The compiler does not support optimizations suitable for debugging.]) fi else diff --git a/postprocess/Rdb_services.mk b/postprocess/Rdb_services.mk index 2abee72f6d09..a2ea54397951 100644 --- a/postprocess/Rdb_services.mk +++ b/postprocess/Rdb_services.mk @@ -101,20 +101,6 @@ $(eval $(call gb_Rdb_add_components,services,\ lotuswordpro/util/lwpfilter \ ) \ oox/util/oox \ - sc/util/sc \ - sc/util/scd \ - sc/util/scfilt \ - scaddins/source/analysis/analysis \ - scaddins/source/datefunc/date \ - scaddins/source/pricing/pricing \ - sd/util/sd \ - sd/util/sdd \ - sd/util/sdfilt \ - sdext/source/presenter/presenter \ - sdext/source/minimizer/minimizer \ - slideshow/util/slideshow \ - starmath/util/sm \ - starmath/util/smd \ svx/util/svx \ svx/util/textconversiondlgs \ sw/util/msword \ @@ -144,7 +130,6 @@ $(eval $(call gb_Rdb_add_components,services,\ $(if $(ENABLE_LPSOLVE), \ sccomp/source/solver/lpsolvesolver \ ) \ - sccomp/source/solver/swarmsolver \ writerfilter/util/writerfilter \ writerperfect/source/draw/wpftdraw \ writerperfect/source/impress/wpftimpress \ diff --git a/solenv/gbuild/LinkTarget.mk b/solenv/gbuild/LinkTarget.mk index 404b394d4e0c..f71525c835de 100644 --- a/solenv/gbuild/LinkTarget.mk +++ b/solenv/gbuild/LinkTarget.mk @@ -45,10 +45,9 @@ gb_LinkTarget__symbols_enabled = \ # debug flags, if the LinkTarget is named in the list of libraries of ENABLE_SYMBOLS_FOR gb_LinkTarget__get_debugflags= \ -$(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS), \ -$(if $(ENABLE_OPTIMIZED_DEBUG),$(gb_COMPILERDEBUGOPTFLAGS), \ -$(gb_COMPILERNOOPTFLAGS))) \ -$(if $(call gb_LinkTarget__symbols_enabled,$(1)),$(gb_DEBUGINFO_FLAGS)) + $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS), \ + $(if $(ENABLE_OPTIMIZED_DEBUG),$(gb_COMPILERDEBUGOPTFLAGS),$(gb_COMPILERNOOPTFLAGS))) \ + $(if $(call gb_LinkTarget__symbols_enabled,$(1)),$(gb_DEBUGINFO_FLAGS)) # T_LDFLAGS is just expanded once. Override the flags here, so that the linker and compiler use the same. ifeq (EMSCRIPTEN,$(OS)) diff --git a/solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk b/solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk index d9a348a42910..3131bbec0959 100644 --- a/solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk +++ b/solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk @@ -29,6 +29,10 @@ gb_LINKEROPTFLAGS := gb_LINKERSTRIPDEBUGFLAGS := # This maps to g4, AKA sorce maps. The LO default would otherwise be g2! gb_DEBUGINFO_FLAGS = -g +# We need at least code elimination, otherwise linking OOMs even with 64GB. +# So we "fake" -Og support to mean -O1 for Emscripten and always enable it for debug in configure. +gb_COMPILERDEBUGOPTFLAGS := -O1 +gb_COMPILERNOOPTFLAGS := -O1 -fstrict-aliasing -fstrict-overflow # cleanup addition JS and wasm files for binaries define gb_Executable_Executable_platform diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk index d56b642382d2..515a2b37c9d4 100644 --- a/solenv/gbuild/platform/unxgcc.mk +++ b/solenv/gbuild/platform/unxgcc.mk @@ -158,7 +158,7 @@ $(call gb_Helper_abbreviate_dirs,\ $(WORKDIR)/LinkTarget/$(2).exports,$(1)))) $(if $(and $(filter CppunitTest Executable,$(TARGETTYPE)),$(filter EMSCRIPTEN,$(OS)),$(filter TRUE,$(ENABLE_QT5))), \ cp $(QT5_PLATFORMS_SRCDIR)/qtlogo.svg $(QT5_PLATFORMS_SRCDIR)/qtloader.js $(dir $(1)) ; \ - sed -e 's/@APPNAME@/$(subst $(gb_Executable_EXT),,$(notdir $(1)))/' $(QT5_PLATFORMS_SRCDIR)/wasm_shell.html > $(1)) + sed -e 's/@APPNAME@/$(subst $(gb_Executable_EXT),,$(notdir $(1)))/' $(QT5_PLATFORMS_SRCDIR)/wasm_shell.html > $(dir $(1))qt_$(notdir $(1))) endef define gb_LinkTarget__command_staticlink diff --git a/solenv/gbuild/static.mk b/solenv/gbuild/static.mk index da16724520d2..7928a699d42f 100644 --- a/solenv/gbuild/static.mk +++ b/solenv/gbuild/static.mk @@ -232,7 +232,7 @@ $$(if $$(filter-out GBUILD_TOUCHED,$$(call gb_$(2)__get_all_externals,$(3))), \ $$(eval $$(call gb_$(2)_use_externals,$(3),$$(filter-out GBUILD_TOUCHED,$$(call gb_$(2)__get_all_externals,$(3)))))) \ $$(if $$(filter icui28n icuuc,$$(call gb_$(2)__get_all_externals,$(3))), \ $$(eval $$(call gb_$(2)_use_externals,$(3),icudata))) \ -$$(if $$(and $$(filter EMSCRIPTEN,$$(OS)),$$(call gb_$(2)__has_any_dependencies,$(3))), \ +$$(if $$(and $$(filter EMSCRIPTEN,$$(OS)),$$(call gb_$(2)__has_any_dependencies,$(3)),), \ $$(if $$(gb_$(2)__LAST_KNOWN), \ $$(if $$(gb_DEBUG_STATIC),$$(info $$(call gb_$(2)_get_linktargetfile,$(3)) => $$(call gb_$(2)_get_linktargetfile,$$(gb_$(2)__LAST_KNOWN)))) \ $$(eval $$(call gb_$(2)_get_linktargetfile,$(3)) : $$(call gb_$(2)_get_linktargetfile,$$(gb_$(2)__LAST_KNOWN)))) \ diff --git a/vcl/Module_vcl.mk b/vcl/Module_vcl.mk index 3cf84ac21210..f01de5e0a89c 100644 --- a/vcl/Module_vcl.mk +++ b/vcl/Module_vcl.mk @@ -31,6 +31,9 @@ $(eval $(call gb_Module_add_targets,vcl,\ Package_skia_denylist ) \ $(if $(filter DESKTOP,$(BUILD_TYPE))$(filter EMSCRIPTEN,$(OS)), \ StaticLibrary_vclmain \ + $(if $(ENABLE_MACOSX_SANDBOX),, \ + $(if $(DISABLE_GUI),, \ + Executable_ui-previewer)) \ $(if $(filter EMSCRIPTEN LINUX MACOSX SOLARIS WNT %BSD,$(OS)), \ $(if $(DISABLE_GUI),, \ Executable_vcldemo ))) \ diff --git a/wasm/CustomTarget_wasm-qt5-mandelbrot_moc.mk b/wasm-qt/CustomTarget_wasm-qt5-mandelbrot_moc.mk index 52b7447d22e9..6267db3f5b8d 100644 --- a/wasm/CustomTarget_wasm-qt5-mandelbrot_moc.mk +++ b/wasm-qt/CustomTarget_wasm-qt5-mandelbrot_moc.mk @@ -7,15 +7,15 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # -$(eval $(call gb_CustomTarget_CustomTarget,wasm/qt5-mandelbrot)) +$(eval $(call gb_CustomTarget_CustomTarget,wasm-qt/qt5-mandelbrot)) -$(call gb_CustomTarget_get_target,wasm/qt5-mandelbrot) : \ - $(call gb_CustomTarget_get_workdir,wasm/qt5-mandelbrot)/renderthread.moc \ - $(call gb_CustomTarget_get_workdir,wasm/qt5-mandelbrot)/mandelbrotwidget.moc \ +$(call gb_CustomTarget_get_target,wasm-qt/qt5-mandelbrot) : \ + $(call gb_CustomTarget_get_workdir,wasm-qt/qt5-mandelbrot)/renderthread.moc \ + $(call gb_CustomTarget_get_workdir,wasm-qt/qt5-mandelbrot)/mandelbrotwidget.moc \ -qt5_mandelbrot_MOCDEFS_H := $(call gb_CustomTarget_get_workdir,wasm/qt5-mandelbrot)/moc_predefs.h -qt5_mandelbrot_MOCDEFS_CXX := $(call gb_CustomTarget_get_workdir,wasm/qt5-mandelbrot)/moc_dummy.cxx -qt5_mandelbrot_WORKDIR := $(call gb_CustomTarget_get_workdir,wasm/qt5-mandelbrot)/.dir +qt5_mandelbrot_MOCDEFS_H := $(call gb_CustomTarget_get_workdir,wasm-qt/qt5-mandelbrot)/moc_predefs.h +qt5_mandelbrot_MOCDEFS_CXX := $(call gb_CustomTarget_get_workdir,wasm-qt/qt5-mandelbrot)/moc_dummy.cxx +qt5_mandelbrot_WORKDIR := $(call gb_CustomTarget_get_workdir,wasm-qt/qt5-mandelbrot)/.dir $(qt5_mandelbrot_MOCDEFS_CXX): | $(qt5_mandelbrot_WORKDIR) touch $@ @@ -26,8 +26,8 @@ $(qt5_mandelbrot_MOCDEFS_H): $(qt5_mandelbrot_MOCDEFS_CXX) | $(qt5_mandelbrot_WO $(CXX) -pipe -O2 -std=gnu++11 -fno-exceptions $(gb_EMSCRIPTEN_CPPFLAGS) -dM -E -o $@ $< $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),MOC) -$(call gb_CustomTarget_get_workdir,wasm/qt5-mandelbrot)/%.moc : \ - $(SRCDIR)/wasm/source/qt5-mandelbrot/%.h \ +$(call gb_CustomTarget_get_workdir,wasm-qt/qt5-mandelbrot)/%.moc : \ + $(SRCDIR)/wasm-qt/source/qt5-mandelbrot/%.h \ $(qt5_mandelbrot_MOCDEFS_H) | $(qt5_mandelbrot_WORKDIR) $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),MOC,1) $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),MOC) diff --git a/wasm/Executable_wasm-qt5-mandelbrot.mk b/wasm-qt/Executable_wasm-qt5-mandelbrot.mk index 7afaa81c0dc4..040fad441219 100644 --- a/wasm/Executable_wasm-qt5-mandelbrot.mk +++ b/wasm-qt/Executable_wasm-qt5-mandelbrot.mk @@ -9,7 +9,7 @@ $(eval $(call gb_Executable_Executable,wasm-qt5-mandelbrot)) -$(eval $(call gb_Executable_use_custom_headers,wasm-qt5-mandelbrot,wasm/qt5-mandelbrot)) +$(eval $(call gb_Executable_use_custom_headers,wasm-qt5-mandelbrot,wasm-qt/qt5-mandelbrot)) $(eval $(call gb_Executable_use_externals,wasm-qt5-mandelbrot,\ graphite \ @@ -20,9 +20,9 @@ $(eval $(call gb_Executable_use_externals,wasm-qt5-mandelbrot,\ )) $(eval $(call gb_Executable_add_exception_objects,wasm-qt5-mandelbrot,\ - wasm/source/qt5-mandelbrot/main \ - wasm/source/qt5-mandelbrot/mandelbrotwidget \ - wasm/source/qt5-mandelbrot/renderthread \ + wasm-qt/source/qt5-mandelbrot/main \ + wasm-qt/source/qt5-mandelbrot/mandelbrotwidget \ + wasm-qt/source/qt5-mandelbrot/renderthread \ )) $(eval $(call gb_Executable_add_defs,wasm-qt5-mandelbrot,\ diff --git a/wasm-qt/Makefile b/wasm-qt/Makefile new file mode 100644 index 000000000000..0c6f47b1790f --- /dev/null +++ b/wasm-qt/Makefile @@ -0,0 +1,13 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# 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/. + +module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) + +include $(module_directory)/../solenv/gbuild/partial_build.mk + +# vim: set noet sw=4 ts=4: diff --git a/wasm-qt/Module_wasm-qt.mk b/wasm-qt/Module_wasm-qt.mk new file mode 100644 index 000000000000..8e86df4e8baa --- /dev/null +++ b/wasm-qt/Module_wasm-qt.mk @@ -0,0 +1,20 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# 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/. + +$(eval $(call gb_Module_Module,wasm-qt)) + +ifeq ($(OS),EMSCRIPTEN) + +$(eval $(call gb_Module_add_targets,wasm-qt,\ + CustomTarget_wasm-qt5-mandelbrot_moc \ + Executable_wasm-qt5-mandelbrot \ +)) + +endif + +# vim: set noet sw=4 ts=4: diff --git a/wasm-qt/README b/wasm-qt/README new file mode 100644 index 000000000000..a23bd6a45ea9 --- /dev/null +++ b/wasm-qt/README @@ -0,0 +1 @@ +See /README.wasm diff --git a/wasm/source/qt5-mandelbrot/main.cxx b/wasm-qt/source/qt5-mandelbrot/main.cxx index 037c63153cf2..037c63153cf2 100644 --- a/wasm/source/qt5-mandelbrot/main.cxx +++ b/wasm-qt/source/qt5-mandelbrot/main.cxx diff --git a/wasm/source/qt5-mandelbrot/mandelbrotwidget.cxx b/wasm-qt/source/qt5-mandelbrot/mandelbrotwidget.cxx index 5886dd2664c0..5886dd2664c0 100644 --- a/wasm/source/qt5-mandelbrot/mandelbrotwidget.cxx +++ b/wasm-qt/source/qt5-mandelbrot/mandelbrotwidget.cxx diff --git a/wasm/source/qt5-mandelbrot/mandelbrotwidget.h b/wasm-qt/source/qt5-mandelbrot/mandelbrotwidget.h index 72e95568b522..72e95568b522 100644 --- a/wasm/source/qt5-mandelbrot/mandelbrotwidget.h +++ b/wasm-qt/source/qt5-mandelbrot/mandelbrotwidget.h diff --git a/wasm/source/qt5-mandelbrot/renderthread.cxx b/wasm-qt/source/qt5-mandelbrot/renderthread.cxx index 398e43ded15d..398e43ded15d 100644 --- a/wasm/source/qt5-mandelbrot/renderthread.cxx +++ b/wasm-qt/source/qt5-mandelbrot/renderthread.cxx diff --git a/wasm/source/qt5-mandelbrot/renderthread.h b/wasm-qt/source/qt5-mandelbrot/renderthread.h index 16c0d86fd46c..16c0d86fd46c 100644 --- a/wasm/source/qt5-mandelbrot/renderthread.h +++ b/wasm-qt/source/qt5-mandelbrot/renderthread.h diff --git a/wasm/Module_wasm.mk b/wasm/Module_wasm.mk index d6f507a005df..eff9d0d7d1e9 100644 --- a/wasm/Module_wasm.mk +++ b/wasm/Module_wasm.mk @@ -11,8 +11,6 @@ $(eval $(call gb_Module_Module,wasm)) ifeq ($(OS),EMSCRIPTEN) $(eval $(call gb_Module_add_targets,wasm,\ - CustomTarget_wasm-qt5-mandelbrot_moc \ - Executable_wasm-qt5-mandelbrot \ CustomTarget_components \ Library_components \ )) |