02140554ee
... 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>
123 lines
4.2 KiB
Makefile
123 lines
4.2 KiB
Makefile
# -*- 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/.
|
|
#
|
|
|
|
# declare a library
|
|
# utl is the name of the library as it is found in Repository.mk
|
|
$(eval $(call gb_Library_Library,utl))
|
|
|
|
$(eval $(call gb_Library_use_externals,utl,\
|
|
boost_headers \
|
|
boost_locale \
|
|
))
|
|
|
|
$(eval $(call gb_Library_use_custom_headers,utl,\
|
|
officecfg/registry \
|
|
))
|
|
|
|
# in case UNO services are exported: declare location of component file
|
|
$(eval $(call gb_Library_set_componentfile,utl,unotools/util/utl,services))
|
|
|
|
$(eval $(call gb_Library_set_include,utl, \
|
|
$$(INCLUDE) \
|
|
-I$(SRCDIR)/unotools/inc \
|
|
))
|
|
|
|
# add any additional definitions to be set for compilation here
|
|
# (e.g. -DLIB_DLLIMPLEMENTATION)
|
|
$(eval $(call gb_Library_add_defs,utl,\
|
|
-DUNOTOOLS_DLLIMPLEMENTATION \
|
|
))
|
|
|
|
$(eval $(call gb_Library_set_precompiled_header,utl,unotools/inc/pch/precompiled_utl))
|
|
|
|
$(eval $(call gb_Library_use_sdk_api,utl))
|
|
|
|
# add libraries to be linked to utl; again these names need to be given as
|
|
# specified in Repository.mk
|
|
$(eval $(call gb_Library_use_libraries,utl,\
|
|
comphelper \
|
|
cppu \
|
|
cppuhelper \
|
|
i18nlangtag \
|
|
sal \
|
|
salhelper \
|
|
tl \
|
|
ucbhelper \
|
|
))
|
|
|
|
$(eval $(call gb_Library_add_exception_objects,utl,\
|
|
unotools/source/accessibility/accessiblerelationsethelper \
|
|
unotools/source/accessibility/accessiblestatesethelper \
|
|
))
|
|
|
|
# add all source files that shall be compiled with exceptions enabled
|
|
# the name is relative to $(SRCROOT) and must not contain an extension
|
|
$(eval $(call gb_Library_add_exception_objects,utl,\
|
|
unotools/source/config/bootstrap \
|
|
unotools/source/config/cmdoptions \
|
|
unotools/source/config/compatibility \
|
|
unotools/source/config/configitem \
|
|
unotools/source/config/configmgr \
|
|
unotools/source/config/confignode \
|
|
unotools/source/config/configpaths \
|
|
unotools/source/config/configvaluecontainer \
|
|
unotools/source/config/defaultoptions \
|
|
unotools/source/config/docinfohelper \
|
|
unotools/source/config/dynamicmenuoptions \
|
|
unotools/source/config/eventcfg \
|
|
unotools/source/config/fltrcfg \
|
|
unotools/source/config/fontcfg \
|
|
unotools/source/config/historyoptions \
|
|
unotools/source/config/itemholder1 \
|
|
unotools/source/config/lingucfg \
|
|
unotools/source/config/moduleoptions \
|
|
unotools/source/config/options \
|
|
unotools/source/config/optionsdlg \
|
|
unotools/source/config/pathoptions \
|
|
unotools/source/config/saveopt \
|
|
unotools/source/config/searchopt \
|
|
unotools/source/config/securityoptions \
|
|
unotools/source/config/syslocaleoptions \
|
|
unotools/source/config/useroptions \
|
|
unotools/source/config/viewoptions \
|
|
unotools/source/i18n/calendarwrapper \
|
|
unotools/source/i18n/caserotate \
|
|
unotools/source/i18n/charclass \
|
|
unotools/source/i18n/collatorwrapper \
|
|
unotools/source/i18n/intlwrapper \
|
|
unotools/source/i18n/localedatawrapper \
|
|
unotools/source/i18n/nativenumberwrapper \
|
|
unotools/source/i18n/resmgr \
|
|
unotools/source/i18n/textsearch \
|
|
unotools/source/i18n/transliterationwrapper \
|
|
unotools/source/misc/closeveto \
|
|
unotools/source/misc/datetime \
|
|
unotools/source/misc/defaultencoding \
|
|
unotools/source/misc/desktopterminationobserver \
|
|
unotools/source/misc/eventlisteneradapter \
|
|
unotools/source/misc/fontcvt \
|
|
unotools/source/misc/fontdefs \
|
|
unotools/source/misc/mediadescriptor \
|
|
unotools/source/misc/sharedunocomponent \
|
|
unotools/source/misc/syslocale \
|
|
unotools/source/misc/wincodepage \
|
|
unotools/source/misc/ServiceDocumenter \
|
|
unotools/source/misc/ZipPackageHelper \
|
|
unotools/source/streaming/streamhelper \
|
|
unotools/source/streaming/streamwrap \
|
|
unotools/source/ucbhelper/localfilehelper \
|
|
unotools/source/ucbhelper/progresshandlerwrap \
|
|
unotools/source/ucbhelper/tempfile \
|
|
unotools/source/ucbhelper/ucbhelper \
|
|
unotools/source/ucbhelper/ucblockbytes \
|
|
unotools/source/ucbhelper/ucbstreamhelper \
|
|
unotools/source/ucbhelper/xtempfile \
|
|
))
|
|
|
|
# vim: set noet sw=4 ts=4:
|