gbuild: create services.rdb from built components

... and introduce the --enable-services-rdb-from-build option.

Currently the build handles global build options redundant
in a few places:

* in Repository*mk + modules - the "real" build dependencies
* the full services.rdb generation
* the static UNO constructor map generation

Also the component files don't reflect the really built components
and so the RDB services generation must handle the whole options
to select the correct components.

So this optionally replaces the latter two by generating the list
of components and it's constructors from the build itself. As a
consequence, component files must now be split, so they reflect
the real components in the libraries, otherwise the static
constructor list will have missing symbols. IMHO this is more
natural, as it happens in the same place already handling these
build options for the sourcecode.

This also adds a convenience helper to add multiple component
files: gb_Library_set_componentfiles

This is WIP and currently just works for the stripped WASM build,
which introduces many more split component files in later patches.

It also explicitly filters the gb_Rdb__URECOMPONENTS and the
CppunitTest related components from the services.rdb. Maybe there
is a good way to do this properly.

Change-Id: I1b38a6f2c1e5221f18d7e5e756c30263b555d962
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126185
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
This commit is contained in:
Jan-Marek Glogowski 2021-05-19 07:55:40 +02:00
parent ba8b3751fa
commit 1c9a40299d
20 changed files with 364 additions and 18 deletions

View file

@ -24,6 +24,11 @@ ifneq (,$(DISABLE_DYNLOADING))
$(if $(gb_LinkTarget__Lock),$(shell rm -f $(gb_LinkTarget__Lock)))
endif
ifeq ($(ENABLE_SERVICES_RDB_FROM_BUILD),TRUE)
$(foreach comp,$(filter-out $(gb_Rdb__URECOMPONENTS),$(gb_ComponentTarget__ALLCOMPONENTS)), \
$(eval $(call gb_Rdb_add_components,services,$(comp))))
endif
upload-symbols:
bin/upload_symbols.py $(WORKDIR)/symbols.zip $(BREAKPAD_SYMBOL_CONFIG) "$(LIBO_VERSION_MAJOR).$(LIBO_VERSION_MINOR).$(LIBO_VERSION_MICRO).$(LIBO_VERSION_PATCH)$(LIBO_VERSION_SUFFIX)$(LIBO_VERSION_SUFFIX_SUFFIX)"

View file

@ -19,8 +19,6 @@
$(eval $(call gb_Library_Library,sb))
$(eval $(call gb_Library_set_componentfile,sb,basic/util/sb))
$(eval $(call gb_Library_set_include,sb,\
$$(INCLUDE) \
-I$(SRCDIR)/basic/inc \
@ -60,6 +58,8 @@ $(eval $(call gb_Library_use_libraries,sb,\
ifneq ($(filter SCRIPTING,$(BUILD_TYPE)),)
$(eval $(call gb_Library_set_componentfile,sb,basic/util/sb))
$(eval $(call gb_Library_add_exception_objects,sb,\
basic/source/basmgr/basicmanagerrepository \
basic/source/basmgr/basmgr \

View file

@ -201,6 +201,7 @@ export ENABLE_SCRIPTING_BEANSHELL=@ENABLE_SCRIPTING_BEANSHELL@
export ENABLE_SCRIPTING_JAVASCRIPT=@ENABLE_SCRIPTING_JAVASCRIPT@
export ENABLE_SDREMOTE=@ENABLE_SDREMOTE@
export ENABLE_SDREMOTE_BLUETOOTH=@ENABLE_SDREMOTE_BLUETOOTH@
export ENABLE_SERVICES_RDB_FROM_BUILD=@ENABLE_SERVICES_RDB_FROM_BUILD@
export ENABLE_SILENT_MSI=@ENABLE_SILENT_MSI@
export ENABLE_SKIA=@ENABLE_SKIA@
export ENABLE_SKIA_DEBUG=@ENABLE_SKIA_DEBUG@

View file

@ -1967,6 +1967,12 @@ AC_ARG_ENABLE(xmlhelp,
[Disable XML help support]),
,enable_xmlhelp=yes)
AC_ARG_ENABLE(services-rdb-from-build,
AS_HELP_STRING([--enable-services-rdb-from-build],
[Automatically creates the services.rdb from all built components.
Splitting the component files and adapting the Library_*.mk files
is WIP and probably just works together with --enable-wasm-strip.]))
dnl ===================================================================
dnl Optional Packages (--with/without-)
@ -2564,6 +2570,7 @@ AC_ARG_WITH(locales,
Very experimental and might well break stuff.
Just a desperate measure to shrink code and data size.
By default all the locales available is included.
Just works with --disable-dynloading. Defaults to "ALL".
This option is completely unrelated to --with-lang.])
[
Affects also our character encoding conversion
@ -2825,7 +2832,6 @@ AC_ARG_WITH(system-icu-for-build,
AS_HELP_STRING([--with-system-icu-for-build=yes/no/force],
[Use icu already on system for build tools (cross-compilation only).]))
dnl ===================================================================
dnl Check for incompatible options set by fuzzing, and reset those
dnl automatically to working combinations
@ -2944,6 +2950,15 @@ if test $_os != iOS -a $_os != Android -a $_os != Emscripten -a "$enable_fuzzers
AC_DEFINE(HAVE_FEATURE_MULTIUSER_ENVIRONMENT)
fi
ENABLE_SERVICES_RDB_FROM_BUILD=
if test "$enable_services_rdb_from_build" = yes; then
ENABLE_SERVICES_RDB_FROM_BUILD=TRUE
if test -n "$with_locales" -a "$with_locales" != en -a "$with_locales" != ALL; then
AC_MSG_ERROR([Currently just --with-locales=all or en is supported with --enable-services-rdb-from-build])
fi
fi
AC_SUBST(ENABLE_SERVICES_RDB_FROM_BUILD)
# Whether to build "avmedia" functionality or not.
if test "$enable_avmedia" = yes; then
@ -5516,6 +5531,7 @@ if test "$cross_compiling" = "yes"; then
--disable-opencl \
--disable-pdfimport \
--disable-postgresql-sdbc \
--disable-services-rdb-from-build \
--disable-skia \
--enable-icecream="$enable_icecream" \
--without-doxygen \
@ -13883,7 +13899,7 @@ if test -d "$SRC_ROOT/translations/source"; then
fi
AC_SUBST(WITH_POOR_HELP_LOCALIZATIONS)
if test -n "$with_locales"; then
if test -n "$with_locales" -a "$with_locales" != ALL; then
WITH_LOCALES="$with_locales"
just_langs="`echo $WITH_LOCALES | sed -e 's/_[A-Z]*//g'`"

View file

@ -9,7 +9,11 @@
$(eval $(call gb_Library_Library,i18npool))
ifeq ($(WITH_LOCALES),en)
$(eval $(call gb_Library_set_componentfile,i18npool,i18npool/util/i18npool.en))
else
$(eval $(call gb_Library_set_componentfile,i18npool,i18npool/util/i18npool))
endif
$(eval $(call gb_Library_set_include,i18npool,\
$$(INCLUDE) \

View file

@ -0,0 +1,162 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
* 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@"
prefix="i18npool" xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.i18n.BreakIterator"
constructor="com_sun_star_i18n_BreakIterator_get_implementation">
<service name="com.sun.star.i18n.BreakIterator"/>
</implementation>
<implementation name="com.sun.star.i18n.BreakIterator_Unicode"
constructor="com_sun_star_i18n_BreakIterator_Unicode_get_implementation">
<service name="com.sun.star.i18n.BreakIterator_Unicode"/>
</implementation>
<implementation name="com.sun.star.i18n.CalendarImpl"
constructor="i18npool_CalendarImpl_get_implementation">
<service name="com.sun.star.i18n.LocaleCalendar"/>
<service name="com.sun.star.i18n.LocaleCalendar2"/>
</implementation>
<implementation name="com.sun.star.i18n.Calendar_ROC"
constructor="i18npool_Calendar_ROC_get_implementation">
<service name="com.sun.star.i18n.Calendar_ROC"/>
</implementation>
<implementation name="com.sun.star.i18n.Calendar_dangi"
constructor="i18npool_Calendar_dangi_get_implementation">
<service name="com.sun.star.i18n.Calendar_dangi"/>
</implementation>
<implementation name="com.sun.star.i18n.Calendar_buddhist"
constructor="i18npool_Calendar_buddhist_get_implementation">
<service name="com.sun.star.i18n.Calendar_buddhist"/>
</implementation>
<implementation name="com.sun.star.i18n.Calendar_gengou"
constructor="i18npool_Calendar_gengou_get_implementation">
<service name="com.sun.star.i18n.Calendar_gengou"/>
</implementation>
<implementation name="com.sun.star.i18n.Calendar_gregorian"
constructor="i18npool_Calendar_gregorian_get_implementation">
<service name="com.sun.star.i18n.Calendar_gregorian"/>
</implementation>
<implementation name="com.sun.star.i18n.Calendar_hanja"
constructor="i18npool_Calendar_hanja_get_implementation">
<service name="com.sun.star.i18n.Calendar_hanja"/>
</implementation>
<implementation name="com.sun.star.i18n.Calendar_hanja_yoil"
constructor="i18npool_Calendar_hanja_yoil_get_implementation">
<service name="com.sun.star.i18n.Calendar_hanja_yoil"/>
</implementation>
<implementation name="com.sun.star.i18n.Calendar_hijri"
constructor="i18npool_Calendar_hijri_get_implementation">
<service name="com.sun.star.i18n.Calendar_hijri"/>
</implementation>
<implementation name="com.sun.star.i18n.Calendar_jewish"
constructor="i18npool_Calendar_jewish_get_implementation">
<service name="com.sun.star.i18n.Calendar_jewish"/>
</implementation>
<implementation name="com.sun.star.i18n.ChapterCollator"
constructor="i18npool_ChapterCollator_get_implementation">
<service name="com.sun.star.i18n.ChapterCollator"/>
</implementation>
<implementation name="com.sun.star.i18n.CharacterClassification"
constructor="com_sun_star_i18n_CharacterClassification_get_implementation">
<service name="com.sun.star.i18n.CharacterClassification"/>
</implementation>
<implementation name="com.sun.star.i18n.CharacterClassification_Unicode"
constructor="com_sun_star_i18n_CharacterClassification_Unicode_get_implementation">
<service name="com.sun.star.i18n.CharacterClassification_Unicode"/>
</implementation>
<implementation name="com.sun.star.i18n.Collator"
constructor="com_sun_star_i18n_Collator_get_implementation">
<service name="com.sun.star.i18n.Collator"/>
</implementation>
<implementation name="com.sun.star.i18n.Collator_Unicode"
constructor="i18npool_Collator_Unicode_get_implementation">
<service name="com.sun.star.i18n.Collator_Unicode"/>
</implementation>
<implementation name="com.sun.star.i18n.IndexEntrySupplier"
constructor="i18npool_IndexEntrySupplier_get_implementation">
<service name="com.sun.star.i18n.IndexEntrySupplier"/>
</implementation>
<implementation name="com.sun.star.i18n.IndexEntrySupplier_Unicode"
constructor="i18npool_IndexEntrySupplier_Unicode_get_implementation">
<service name="com.sun.star.i18n.IndexEntrySupplier_Unicode"/>
</implementation>
<implementation name="com.sun.star.i18n.IndexEntrySupplier_asian"
constructor="i18npool_IndexEntrySupplier_asian_get_implementation">
<service name="com.sun.star.i18n.IndexEntrySupplier_asian"/>
</implementation>
<implementation name="com.sun.star.i18n.InputSequenceChecker"
constructor="com_sun_star_i18n_InputSequenceChecker_get_implementation">
<service name="com.sun.star.i18n.InputSequenceChecker"/>
</implementation>
<implementation name="com.sun.star.i18n.LocaleDataImpl"
constructor="com_sun_star_i18n_LocaleDataImpl_get_implementation">
<service name="com.sun.star.i18n.LocaleData"/>
<service name="com.sun.star.i18n.LocaleData2"/>
</implementation>
<implementation name="com.sun.star.i18n.NativeNumberSupplier"
constructor="com_sun_star_i18n_NativeNumberSupplier_get_implementation">
<service name="com.sun.star.i18n.NativeNumberSupplier"/>
<service name="com.sun.star.i18n.NativeNumberSupplier2"/>
</implementation>
<implementation name="com.sun.star.i18n.NumberFormatCodeMapper"
constructor="com_sun_star_i18n_NumberFormatCodeMapper_get_implementation">
<service name="com.sun.star.i18n.NumberFormatMapper"/>
</implementation>
<implementation name="com.sun.star.i18n.OrdinalSuffix"
constructor="com_sun_star_i18n_OrdinalSuffix_get_implementation">
<service name="com.sun.star.i18n.OrdinalSuffix"/>
</implementation>
<implementation name="com.sun.star.i18n.ScriptTypeDetector"
constructor="com_sun_star_i18n_ScriptTypeDetector_get_implementation">
<service name="com.sun.star.i18n.ScriptTypeDetector"/>
</implementation>
<implementation name="com.sun.star.i18n.TextConversion"
constructor="com_sun_star_i18n_TextConversion_get_implementation">
<service name="com.sun.star.i18n.TextConversion"/>
</implementation>
<implementation name="com.sun.star.i18n.Transliteration"
constructor="com_sun_star_i18n_Transliteration_get_implementation">
<service name="com.sun.star.i18n.Transliteration"/>
</implementation>
<implementation name="com.sun.star.i18n.Transliteration.NumToCharFullwidth">
<service name="com.sun.star.i18n.Transliteration.l10n"/>
</implementation>
<implementation name="com.sun.star.i18n.Transliteration.NumToCharHalfwidth">
<service name="com.sun.star.i18n.Transliteration.l10n"/>
</implementation>
<implementation name="com.sun.star.i18n.Transliteration.NumToTextCircledNumber">
<service name="com.sun.star.i18n.Transliteration.l10n"/>
</implementation>
<implementation name="com.sun.star.i18n.Transliteration.SENTENCE_CASE">
<service name="com.sun.star.i18n.Transliteration.l10n"/>
</implementation>
<implementation name="com.sun.star.i18n.Transliteration.TITLE_CASE">
<service name="com.sun.star.i18n.Transliteration.l10n"/>
</implementation>
<implementation name="com.sun.star.i18n.Transliteration.TOGGLE_CASE">
<service name="com.sun.star.i18n.Transliteration.l10n"/>
</implementation>
<implementation name="com.sun.star.i18n.Transliteration.UPPERCASE_LOWERCASE">
<service name="com.sun.star.i18n.Transliteration.l10n"/>
</implementation>
<implementation name="com.sun.star.text.DefaultNumberingProvider"
constructor="com_sun_star_text_DefaultNumberingProvider_get_implementation">
<service name="com.sun.star.text.DefaultNumberingProvider"/>
</implementation>
</component>

View file

@ -0,0 +1,49 @@
# vim: set noet sw=4 ts=4:
# -*- 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_CustomTarget_CustomTarget,postprocess/components))
ifeq (,$(gb_PARTIAL_BUILD))
postprocess_WORKDIR := $(call gb_CustomTarget_get_workdir,postprocess)
$(call gb_CustomTarget_get_target,postprocess/components): \
$(postprocess_WORKDIR)/services_constructors.list \
gb_EMPTY :=
define gb_NEWLINE
$(gb_EMPTY)
endef
$(postprocess_WORKDIR)/services_componentfiles.list: \
$(call gb_Rdb_get_target,services) \
$(call gb_Rdb_get_target,ure/services) \
$(foreach comp,$(gb_ComponentTarget__ALLCOMPONENTS),$(call gb_ComponentTarget_get_source,$(comp))) \
| $(postprocess_WORKDIR)/.dir
$(call gb_Output_announce,$(subst $(BUILDDIR)/,,$@),$(true),GEN,2)
TEMPFILE=$(call gb_var2file,$(shell $(gb_MKTEMP)),1, \
$(foreach comp,$(sort $(gb_ComponentTarget__ALLCOMPONENTS)),$(call gb_ComponentTarget_get_source,$(comp))$(gb_NEWLINE))) && \
mv $$TEMPFILE $@
$(postprocess_WORKDIR)/services_constructors.list: \
$(SRCDIR)/solenv/bin/constructors.py \
$(postprocess_WORKDIR)/services_componentfiles.list \
| $(postprocess_WORKDIR)/.dir
$(call gb_Output_announce,$(subst $(BUILDDIR)/,,$@),$(true),GEN,2)
TEMPFILE=$(shell $(gb_MKTEMP)) && \
$(call gb_Helper_abbreviate_dirs,$(call gb_ExternalExecutable_get_command,python) $^) > $$TEMPFILE && \
$(call gb_Helper_replace_if_different_and_touch,$${TEMPFILE},$@)
.PHONY: $(postprocess_WORKDIR)/services_componentfiles.list
endif # gb_PARTIAL_BUILD
# vim: set noet sw=4:

View file

@ -13,6 +13,7 @@ $(eval $(call gb_Module_Module,postprocess))
# is reused in Package_registry!
$(eval $(call gb_Module_add_targets,postprocess,\
$(if $(ENABLE_SERVICES_RDB_FROM_BUILD),CustomTarget_components) \
CustomTarget_registry \
Rdb_services \
))

View file

@ -9,6 +9,9 @@
$(eval $(call gb_Rdb_Rdb_install,services))
# see Makefile.gbuild for the gb_Rdb_add_components,services calls
ifeq (,$(ENABLE_SERVICES_RDB_FROM_BUILD))
#
# "minimal" list of services for cross-compiling build tools
#
@ -115,6 +118,7 @@ $(eval $(call gb_Rdb_add_components,services,\
slideshow/util/slideshow \
starmath/util/sm \
starmath/util/smd \
$(call gb_Helper_optional,BREAKPAD,svx/util/crashreport) \
svx/util/svx \
svx/util/textconversiondlgs \
sw/util/msword \
@ -271,6 +275,7 @@ $(eval $(call gb_Rdb_add_components,services,\
reportdesign/util/rptui \
reportdesign/util/rptxml \
shell/source/backends/localebe/localebe1 \
sw/util/sw_mm \
$(if $(filter-out ANDROID iOS,$(OS)),\
connectivity/source/drivers/odbc/odbc \
) \
@ -338,4 +343,6 @@ endif
endif # $(gb_Side),host
endif # !ENABLE_SERVICES_RDB_FROM_BUILD
# vim: set noet sw=4 ts=4:

27
solenv/bin/constructors.py Executable file
View file

@ -0,0 +1,27 @@
#!/usr/bin/env python3
# Call $0 <file with a list of component file paths>
# Dumps all the implementing constructors to stdout
import xml.sax
import os.path
import sys
constructors = list()
class ComponentHandler(xml.sax.ContentHandler):
def startElement(self, tag, attributes):
if tag == "implementation" and "constructor" in attributes:
constructors.append(attributes["constructor"])
if __name__ == "__main__":
parser = xml.sax.make_parser()
parser.setFeature(xml.sax.handler.feature_namespaces, 0)
parser.setContentHandler(ComponentHandler())
for filename in sys.argv[1:]:
with open(filename, "r") as components_listfile:
for line in components_listfile:
for component_filename in line.strip().split():
parser.parse(component_filename)
constructors.sort()
print("\n".join(constructors))

View file

@ -817,6 +817,7 @@ opts.add_option("-j", "--java-guard", action="store_true", help="include externa
opts.add_option("-g", "--group", action="append", help="group of implementations to make available in application", dest="groups")
opts.add_option("-r", "--limit-rdb", action="append", help="instead of outputting native-code.cxx, limit the services.rdb only to the services defined by the groups", dest="services")
opts.add_option("-C", "--pure-c", action="store_true", help="do not print extern \"C\"", dest="pure_c", default=False)
opts.add_option("-c", "--constructors", help="file with the list of constructors", dest="constructors_file")
(options, args) = opts.parse_args()
@ -830,6 +831,9 @@ if options.groups:
else:
full_constructor_map[constructor] = True
if not options.groups and options.constructors_file:
options.groups = factory_map.keys()
# dict of all the factories that we need according to -g's
full_factory_map = {}
if options.groups:
@ -846,6 +850,11 @@ if options.services:
limit_rdb(options.services, full_factory_map, full_constructor_map)
exit(0)
if options.constructors_file:
with open(options.constructors_file, "r") as constructors:
for line in constructors:
full_constructor_map[line.strip()] = True
print ("""/*
* This is a generated file. Do not edit.
*

View file

@ -17,6 +17,8 @@
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
gb_ComponentTarget__ALLCOMPONENTS :=
gb_ComponentTarget_XSLTCOMMANDFILE := $(SRCDIR)/solenv/bin/createcomponent.xslt
gb_ComponentTarget_get_source = $(SRCDIR)/$(1).component
@ -58,6 +60,8 @@ $(call gb_ComponentTarget_get_target,$(1)) : COMPONENTSOURCE := $(call gb_Compon
$(call gb_ComponentTarget_get_target,$(1)) : $(call gb_ComponentTarget_get_source,$(patsubst CppunitTest/%,%,$(1)))
$(if $(filter $(1),$(patsubst CppunitTest/%,%,$(1))),$(eval gb_ComponentTarget__ALLCOMPONENTS += $(1)))
endef
# vim: set noet sw=4:

View file

@ -133,6 +133,8 @@ endef
# But the component target also must be delivered; use the target
# gb_Library_get_exports_target for that purpose, since it is already
# the "final" target of the Library...
#
# call gb_Library_set_componentfile,library,componentfile
define gb_Library_set_componentfile
$(call gb_ComponentTarget_ComponentTarget,$(2),\
$(call gb_Library__get_componentprefix,$(gb_Library__get_name)),\
@ -143,6 +145,13 @@ $(call gb_ComponentTarget_get_target,$(2)) :| \
$(call gb_Library_get_target,$(gb_Library__get_name))
$(call gb_Library_get_clean_target,$(gb_Library__get_name)) : \
$(call gb_ComponentTarget_get_clean_target,$(2))
endef
# call gb_Library_set_componentfiles,library,componentfiles
define gb_Library_set_componentfiles
$(foreach comp,$(2),$(call gb_Library_set_componentfile,$(1),$(comp)))
endef
gb_Library__get_name = $(if $(filter $(1),$(gb_MERGEDLIBS)),merged,$(1))

View file

@ -7,6 +7,8 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
gb_Rdb__URECOMPONENTS :=
gb_Rdb__get_install_target = $(INSTROOT)/$(LIBO_ETC_FOLDER)/services/$(1).rdb
define gb_Rdb__command
@ -59,6 +61,7 @@ endef
define gb_Rdb_add_component
$(call gb_Rdb_get_target,$(1)) : $(call gb_ComponentTarget_get_target,$(2))
$(call gb_Rdb_get_target,$(1)) : COMPONENTS += $(2)
$(if $(filter ure/services,$(1)),$(eval gb_Rdb__URECOMPONENTS += $(2)))
endef

View file

@ -19,7 +19,10 @@
$(eval $(call gb_Library_Library,svx))
$(eval $(call gb_Library_set_componentfile,svx,svx/util/svx))
$(eval $(call gb_Library_set_componentfiles,svx, \
$(call gb_Helper_optional,BREAKPAD,svx/util/crashreport) \
svx/util/svx \
))
$(eval $(call gb_Library_set_include,svx,\
-I$(SRCDIR)/svx/inc \

View file

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
* 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@"
xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.comp.svx.CrashReportUI"
constructor="com_sun_star_comp_svx_CrashReportUI_get_implementation">
<service name="com.sun.star.dialog.CrashReportUI"/>
</implementation>
</component>

View file

@ -32,10 +32,6 @@
constructor="com_sun_star_comp_svx_RecoveryUI_get_implementation">
<service name="com.sun.star.dialog.RecoveryUI"/>
</implementation>
<implementation name="com.sun.star.comp.svx.CrashReportUI"
constructor="com_sun_star_comp_svx_CrashReportUI_get_implementation">
<service name="com.sun.star.dialog.CrashReportUI"/>
</implementation>
<implementation name="com.sun.star.comp.svx.SafeModeUI"
constructor="com_sun_star_comp_svx_SafeModeUI_get_implementation">
<service name="com.sun.star.dialog.SafeModeUI"/>

View file

@ -21,7 +21,10 @@ $(eval $(call gb_Library_Library,sw))
$(eval $(call gb_Library_add_sdi_headers,sw,sw/sdi/swslots))
$(eval $(call gb_Library_set_componentfile,sw,sw/util/sw))
$(eval $(call gb_Library_set_componentfiles,sw, \
$(call gb_Helper_optional,DBCONNECTIVITY,sw/util/sw_mm) \
sw/util/sw \
))
$(eval $(call gb_Library_set_precompiled_header,sw,sw/inc/pch/precompiled_sw))

View file

@ -39,14 +39,6 @@
<service name="com.sun.star.sdb.DataAccessDescriptor"/>
<service name="com.sun.star.text.MailMerge"/>
</implementation>
<implementation name="lo.writer.MMCurrentEntryController"
constructor="lo_writer_MMCurrentEntryController_get_implementation">
<service name="com.sun.star.frame.ToolbarController"/>
</implementation>
<implementation name="lo.writer.MMExcludeEntryController"
constructor="lo_writer_MMExcludeEntryController_get_implementation">
<service name="com.sun.star.frame.ToolbarController"/>
</implementation>
<implementation name="lo.writer.PageSizeToolBoxControl"
constructor="lo_writer_PageSizeToolBoxControl_get_implementation">
<service name="com.sun.star.frame.ToolbarController"/>

29
sw/util/sw_mm.component Normal file
View file

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
* 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@"
xmlns="http://openoffice.org/2010/uno-components">
<implementation name="lo.writer.MMCurrentEntryController"
constructor="lo_writer_MMCurrentEntryController_get_implementation">
<service name="com.sun.star.frame.ToolbarController"/>
</implementation>
<implementation name="lo.writer.MMExcludeEntryController"
constructor="lo_writer_MMExcludeEntryController_get_implementation">
<service name="com.sun.star.frame.ToolbarController"/>
</implementation>
</component>