diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-12-09 10:15:05 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-12-10 08:14:24 +0100 |
commit | db3a61cd958f4a70417929cf8e1fa9bfd0bfe5a3 (patch) | |
tree | 20c4ceba87df6b65e218a670ae22e35d7a1da30f /postprocess | |
parent | 5b0707f66e2c49a11f3a23e3ec9940b26d881165 (diff) |
Generally determine Rdb content from gb_*_set_componentfile calls
...instead of by listing the content somewhat redundantly in the Rdb_*.mk
files, to avoid duplication of logic for components that are only built
conditionally (and thus should only be included conditionally in the
corresponding Rdb). To achieve that, add an "rdb" parameter to
gb_ComponentTarget_ComponentTarget (and to the gb_*_set_componentfile macros
that internally call gb_ComponentTarget_ComponentTarget), which is used to make
the appropriate gb_Rdb_add_component call internally from within
gb_ComponentTarget_ComponentTarget. (As a special case,
gb_CppunitTest_set_componentfile shall not call gb_Rdb_add_component, as that
has already been done by the corresponding gb_Library_set_componentfile call, so
allow the gb_ComponentTarget_ComponentTarget "rdb" parameter to be empty to
support that special case.)
Most Rdb_*.mk files are thus mostly empty now. One exception is
i18npool/Rdb_saxparser.mk, which duplicates some of the Rdb_services content as
needed during the build in CustomTarget_i18npool/localedata.
1c9a40299d328c78c035ca63ccdf22c5c669a03b "gbuild: create services.rdb from built
components" had already tried to do something similar (in addition to other
things) under a new --enable-services-rdb-from-build option. However, that
approach had four drawbacks that this approach here addresses (and which thus
partly reverts 1c9a40299d328c78c035ca63ccdf22c5c669a03b):
1 Rdb_services shall not contain the component files of all libraries that are
built. While that commit filtered out the component files that go into
Rdb_ure/services (ure/Rdb_ure.mk), it failed to filter out the component files
that go into others like Rdb_postgresql-sdbc
(connectivity/Rdb_postgresql-sdbc.mk).
2 The code added by that commit to Makefile.gbuild codified the knowledge that
there is an Rdb_services, which is brittle.
3 The code added by that commit to solenv/gbuild/Rdb.mk codified the knowledge
(for gb_Rdb__URECOMPONENTS) that there is an Rdb_ure/services, which is brittle.
4 Introducing an --enable-services-rdb-from-build option needlessly provided
two different ways how the content of Rdb_services is assembled.
The changes done here would leave --enable-services-rdb-from-build as a
misnomer, as it no longer controls how Rdb_services is assembled. I thus
renamed it to --enable-customtarget-components, as that is apparently what it
still does now.
Change-Id: Ia5e8df4b640146c77421fcec6daa11a9cd260265
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126577
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'postprocess')
-rw-r--r-- | postprocess/Module_postprocess.mk | 2 | ||||
-rw-r--r-- | postprocess/Rdb_services.mk | 336 |
2 files changed, 1 insertions, 337 deletions
diff --git a/postprocess/Module_postprocess.mk b/postprocess/Module_postprocess.mk index 369feff99367..8a8ec0891540 100644 --- a/postprocess/Module_postprocess.mk +++ b/postprocess/Module_postprocess.mk @@ -13,7 +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) \ + $(if $(ENABLE_CUSTOMTARGET_COMPONENTS),CustomTarget_components) \ CustomTarget_registry \ Rdb_services \ )) diff --git a/postprocess/Rdb_services.mk b/postprocess/Rdb_services.mk index f193e567779f..6814fc4a11a7 100644 --- a/postprocess/Rdb_services.mk +++ b/postprocess/Rdb_services.mk @@ -9,340 +9,4 @@ $(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 -# -$(eval $(call gb_Rdb_add_components,services,\ - $(if $(DISABLE_GUI),,$(call gb_Helper_optional,AVMEDIA,avmedia/util/avmedia)) \ - $(call gb_Helper_optional,SCRIPTING,basic/util/sb) \ - canvas/source/factory/canvasfactory \ - canvas/source/simplecanvas/simplecanvas \ - canvas/source/vcl/vclcanvas \ - $(if $(ENABLE_CAIRO_CANVAS),canvas/source/cairo/cairocanvas) \ - $(if $(ENABLE_OPENGL_CANVAS),canvas/source/opengl/oglcanvas) \ - $(if $(filter WNT,$(OS)), \ - canvas/source/directx/directx9canvas \ - canvas/source/directx/gdipluscanvas \ - ) \ - comphelper/util/comphelp \ - configmgr/source/configmgr \ - $(if $(filter DBCONNECTIVITY,$(BUILD_TYPE)), \ - connectivity/source/dbtools/dbtools \ - connectivity/source/drivers/dbase/dbase \ - ) \ - cppcanvas/source/uno/mtfrenderer \ - drawinglayer/drawinglayer \ - emfio/emfio \ - filter/source/config/cache/filterconfig1 \ - filter/source/graphic/graphicfilter \ - filter/source/svg/svgfilter \ - framework/util/fwk \ - i18npool/source/search/i18nsearch \ - $(if $(filter en,$(WITH_LOCALES)),i18npool/util/i18npool.en,i18npool/util/i18npool) \ - package/source/xstor/xstor \ - package/util/package2 \ - sax/source/expatwrap/expwrap \ - sfx2/util/sfx \ - sot/util/sot \ - svgio/svgio \ - svl/source/fsstor/fsstorage \ - svl/source/passwordcontainer/passwordcontainer \ - svl/util/svl \ - svtools/util/svt \ - svx/util/svxcore \ - toolkit/util/tk \ - ucb/source/core/ucb1 \ - ucb/source/ucp/file/ucpfile1 \ - unotools/util/utl \ - unoxml/source/service/unoxml \ - uui/util/uui \ - vcl/vcl.common \ - $(if $(filter ANDROID,$(OS)),vcl/vcl.android) \ - $(if $(DISABLE_GUI),vcl/vcl.headless) \ - $(if $(filter iOS,$(OS)),vcl/vcl.ios) \ - $(if $(filter MACOSX,$(OS)),vcl/vcl.macosx) \ - $(if $(filter WNT,$(OS)),\ - vcl/vcl.windows \ - vcl/vclplug_win \ - ) \ -)) - -ifeq ($(gb_Side),host) - -$(eval $(call gb_Rdb_add_components,services,\ - animations/source/animcore/animcore \ - chart2/source/controller/chartcontroller \ - chart2/source/chartcore \ - cui/util/cui \ - desktop/source/deployment/deployment \ - embeddedobj/util/embobj \ - eventattacher/source/evtatt \ - filter/source/msfilter/msfilter \ - filter/source/odfflatxml/odfflatxml \ - filter/source/pdf/pdffilter \ - filter/source/storagefilterdetect/storagefd \ - filter/source/t602/t602filter \ - filter/source/textfilterdetect/textfd \ - filter/source/xmlfilteradaptor/xmlfa \ - filter/source/xmlfilterdetect/xmlfd \ - filter/source/xsltdialog/xsltdlg \ - filter/source/xsltfilter/xsltfilter \ - formula/util/for \ - $(call gb_Helper_optional,DESKTOP,fpicker/source/office/fps_office) \ - $(if $(filter MACOSX,$(OS)),fpicker/source/aqua/fps_aqua) \ - hwpfilter/source/hwp \ - lingucomponent/source/hyphenator/hyphen/hyphen \ - lingucomponent/source/languageguessing/guesslang \ - lingucomponent/source/spellcheck/spell/spell \ - lingucomponent/source/thesaurus/libnth/lnth \ - lingucomponent/source/numbertext/numbertext \ - linguistic/source/lng \ - $(if $(ENABLE_LWP), \ - 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 \ - $(call gb_Helper_optional,BREAKPAD,svx/util/crashreport) \ - svx/util/svx \ - svx/util/textconversiondlgs \ - sw/util/msword \ - sw/util/sw \ - sw/util/swd \ - ucb/source/sorter/srtrs1 \ - ucb/source/cacher/cached1 \ - $(if $(ENABLE_LIBCMIS),ucb/source/ucp/cmis/ucpcmis1) \ - ucb/source/ucp/expand/ucpexpand1 \ - ucb/source/ucp/ext/ucpext \ - $(if $(ENABLE_CURL),ucb/source/ucp/ftp/ucpftp1) \ - ucb/source/ucp/hierarchy/ucphier1 \ - ucb/source/ucp/image/ucpimage \ - ucb/source/ucp/package/ucppkg1 \ - ucb/source/ucp/tdoc/ucptdoc1 \ - UnoControls/util/ctl \ - unoxml/source/rdf/unordf \ - xmloff/source/transform/xof \ - xmloff/util/xo \ - xmlscript/util/xmlscript \ - $(if $(ENABLE_NSS), \ - xmlsecurity/util/xmlsecurity \ - xmlsecurity/util/xsec_xmlsec) \ - $(if $(ENABLE_COINMP), \ - sccomp/source/solver/coinmpsolver \ - ) \ - $(if $(ENABLE_LPSOLVE), \ - sccomp/source/solver/lpsolvesolver \ - ) \ - sccomp/source/solver/swarmsolver \ - writerfilter/util/writerfilter \ - writerperfect/source/draw/wpftdraw \ - writerperfect/source/impress/wpftimpress \ - writerperfect/source/writer/wpftwriter \ - writerperfect/source/calc/wpftcalc \ - $(if $(filter MACOSX,$(OS)), \ - $(call gb_Helper_optional,AVMEDIA,avmedia/source/macavf/avmediaMacAVF) \ - shell/source/backends/macbe/macbe1 \ - ) \ - $(if $(filter iOS MACOSX,$(OS)), \ - lingucomponent/source/spellcheck/macosxspell/MacOSXSpell \ - ) \ - $(if $(filter WNT,$(OS)), \ - $(call gb_Helper_optional,AVMEDIA,avmedia/source/win/avmediawin) \ - embeddedobj/source/msole/emboleobj.windows \ - embedserv/util/emser \ - extensions/source/ole/oleautobridge \ - fpicker/source/win32/fps \ - shell/source/backends/wininetbe/wininetbe1 \ - shell/source/win32/simplemail/smplmail \ - shell/source/win32/syssh \ - winaccessibility/source/service/winaccessibility \ - ) \ - $(if $(filter-out WNT,$(OS)), \ - embeddedobj/source/msole/emboleobj \ - ) \ - $(if $(filter neon,$(WITH_WEBDAV)), \ - ucb/source/ucp/webdav-neon/ucpdav1 \ - ) \ - $(if $(filter serf,$(WITH_WEBDAV)), \ - ucb/source/ucp/webdav/ucpdav1 \ - ) \ - $(if $(filter curl,$(WITH_WEBDAV)), \ - ucb/source/ucp/webdav-curl/ucpdav1 \ - ) \ - $(call gb_Helper_optional,SCRIPTING, \ - basctl/util/basctl \ - sc/util/vbaobj \ - scripting/source/basprov/basprov \ - scripting/source/dlgprov/dlgprov \ - scripting/source/protocolhandler/protocolhandler \ - scripting/source/stringresource/stringresource \ - scripting/source/vbaevents/vbaevents \ - scripting/util/scriptframe \ - sw/util/vbaswobj \ - vbahelper/util/msforms \ - $(if $(DISABLE_PYTHON),, \ - scripting/source/pyprov/mailmerge \ - wizards/com/sun/star/wizards/agenda/agenda \ - wizards/com/sun/star/wizards/fax/fax \ - wizards/com/sun/star/wizards/letter/letter \ - ) \ - ) \ - $(if $(ENABLE_GIO), \ - shell/source/sessioninstall/losessioninstall \ - ucb/source/ucp/gio/ucpgio \ - ) \ - $(if $(ENABLE_GSTREAMER_1_0), \ - $(call gb_Helper_optional,AVMEDIA,avmedia/source/gstreamer/avmediagstreamer) \ - ) \ - $(if $(ENABLE_KF5), \ - shell/source/backends/kf5be/kf5be1 \ - ) \ - $(if $(ENABLE_ONLINE_UPDATE), \ - extensions/source/update/check/updchk.uno \ - extensions/source/update/ui/updchk \ - ) \ - $(if $(ENABLE_OPENGL_TRANSITIONS), \ - slideshow/source/engine/opengl/ogltrans \ - ) \ - $(if $(ENABLE_JAVA), \ - xmerge/source/bridge/XMergeBridge \ - scripting/java/ScriptFramework \ - scripting/java/ScriptProviderForJava \ - smoketest/org/libreoffice/smoketest/smoketest \ - wizards/com/sun/star/wizards/form/form \ - wizards/com/sun/star/wizards/query/query \ - wizards/com/sun/star/wizards/report/report \ - wizards/com/sun/star/wizards/table/table \ - ) \ - $(call gb_Helper_optional,XMLHELP,xmlhelp/util/ucpchelp1) \ -)) - -$(eval $(call gb_Rdb_add_components,services,\ - extensions/source/bibliography/bib \ - dbaccess/util/dba \ -)) - -ifneq (,$(filter DBCONNECTIVITY,$(BUILD_TYPE))) - -$(eval $(call gb_Rdb_add_components,services,\ - extensions/source/dbpilots/dbp \ - extensions/source/propctrlr/pcr \ - connectivity/source/cpool/dbpool2 \ - $(if $(filter WNT,$(OS)), \ - connectivity/source/drivers/ado/ado \ - ) \ - connectivity/source/drivers/calc/calc \ - $(if $(ENABLE_EVOAB2), \ - connectivity/source/drivers/evoab2/evoab \ - ) \ - $(if $(filter $(ENABLE_FIREBIRD_SDBC),TRUE), \ - connectivity/source/drivers/firebird/firebird_sdbc \ - ) \ - connectivity/source/drivers/flat/flat \ - $(if $(ENABLE_MARIADBC), \ - connectivity/source/drivers/mysqlc/mysqlc \ - ) \ - $(if $(filter MACOSX,$(OS)), \ - connectivity/source/drivers/macab/macab1 \ - ) \ - $(if $(ENABLE_JAVA), \ - connectivity/source/drivers/hsqldb/hsqldb \ - connectivity/source/drivers/jdbc/jdbc \ - ) \ - connectivity/source/drivers/mysql_jdbc/mysql_jdbc \ - connectivity/source/manager/sdbc2 \ - connectivity/source/drivers/writer/writer \ - dbaccess/source/filter/xml/dbaxml \ - dbaccess/util/dbu \ - dbaccess/util/sdbt \ - forms/util/frm \ - reportdesign/util/rpt \ - 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 \ - ) \ -)) - -ifneq (,$(filter DESKTOP,$(BUILD_TYPE))) -$(eval $(call gb_Rdb_add_components,services,\ - connectivity/source/drivers/mozab/bootstrap/mozbootstrap \ -)) -endif # DESKTOP - -endif # DBCONNECTIVITY - -ifeq (DESKTOP,$(filter DESKTOP,$(BUILD_TYPE))) - -$(eval $(call gb_Rdb_add_components,services,\ - desktop/source/deployment/gui/deploymentgui \ - desktop/source/migration/services/migrationoo2 \ - desktop/source/migration/services/migrationoo3 \ - desktop/source/offacc/offacc \ - $(if $(DISABLE_GUI),,desktop/source/splash/spl) \ - extensions/source/abpilot/abp \ - $(if $(ENABLE_LDAP),extensions/source/config/ldap/ldapbe2) \ - $(if $(filter WNT,$(OS)),\ - extensions/source/config/WinUserInfo/WinUserInfoBe \ - ) \ - extensions/source/logging/log \ - extensions/source/scanner/scn \ - extensions/source/update/feed/updatefeed \ - $(if $(filter-out WNT,$(OS)),\ - shell/source/cmdmail/cmdmail \ - ) \ - $(if $(filter-out WNT,$(OS)),\ - shell/source/unix/exec/syssh \ - ) \ - $(if $(filter-out MACOSX WNT,$(OS)), \ - $(if $(DISABLE_GUI),, \ - shell/source/backends/desktopbe/desktopbe1 \ - vcl/vcl.unx \ - ) \ - ) \ -)) - -else # DESKTOP - -$(eval $(call gb_Rdb_add_components,services,\ - $(if $(filter ANDROID,$(OS)),\ - extensions/source/logging/log \ - ) \ -)) - -endif # DESKTOP - -ifeq ($(ENABLE_PDFIMPORT),TRUE) -$(eval $(call gb_Rdb_add_components,services,\ - sdext/source/pdfimport/pdfimport \ -)) -endif - -ifeq ($(ENABLE_REPORTBUILDER),TRUE) -$(eval $(call gb_Rdb_add_components,services,\ - reportbuilder/java/reportbuilder \ -)) -endif - -endif # $(gb_Side),host - -endif # !ENABLE_SERVICES_RDB_FROM_BUILD - # vim: set noet sw=4 ts=4: |