diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-03-13 00:13:30 +0100 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2021-04-16 15:31:52 +0200 |
commit | 7434151775f05c653b0ddc7ffa869f0470386b42 (patch) | |
tree | ff0f63aaaf6f3a1bbc6d2663bba94c851877d4cd | |
parent | catchall (diff) | |
download | core-7434151775f05c653b0ddc7ffa869f0470386b42.tar.gz core-7434151775f05c653b0ddc7ffa869f0470386b42.zip |
catchall
Change-Id: I8b4dea6870dc6698a03cd2607f98eb57971eca4b
39 files changed, 120 insertions, 105 deletions
diff --git a/Repository.mk b/Repository.mk index 2c7f3c2565b6..3c9a242c663b 100644 --- a/Repository.mk +++ b/Repository.mk @@ -201,9 +201,7 @@ $(eval $(call gb_Helper_register_executables_for_install,OOO,ooo, \ gengal \ $(if $(filter WNT,$(OS)),,uri-encode) \ $(if $(ENABLE_MACOSX_SANDBOX),, \ - $(if $(DISABLE_GUI),, \ ui-previewer \ - ) \ ) \ $(if $(filter WNT,$(OS)), \ senddoc \ @@ -326,7 +324,6 @@ $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,ogltrans, \ )) $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,ooo, \ - acc \ $(call gb_Helper_optional,AVMEDIA,avmedia) \ $(if $(filter MACOSX,$(OS)),\ avmediaMacAVF \ @@ -345,10 +342,8 @@ $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,ooo, \ $(call gb_Helper_optional,OPENCL,clew) \ $(if $(filter $(OS),WNT),,cmdmail) \ cppcanvas \ - $(if $(filter $(OS),EMSCRIPTEN),components) \ configmgr \ ctl \ - cui \ dba \ dbahsql \ $(call gb_Helper_optional,DBCONNECTIVITY, \ @@ -479,12 +474,15 @@ $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,ooo, \ )) $(eval $(call gb_Helper_register_plugins_for_install,OOOLIBS,ooo, \ + acc \ + $(if $(DISABLE_DYNLOADING),components) \ + cui \ gie \ sdui \ $(if $(USING_X11),vclplug_gen) \ $(if $(filter $(OS),WNT),vclplug_win) \ $(if $(filter $(OS),MACOSX),vclplug_osx) \ - $(if $(filter EMSCRIPTEN,$(OS)),vclplug_qt5) \ + vclplug_qt5 \ )) $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,postgresqlsdbc, \ diff --git a/RepositoryFixes.mk b/RepositoryFixes.mk index 741f6bbfee21..5f149631919a 100644 --- a/RepositoryFixes.mk +++ b/RepositoryFixes.mk @@ -69,11 +69,6 @@ else # libpyuno_wrapper.so => pyuno.so gb_Library_FILENAMES := $(patsubst pyuno_wrapper:libpyuno_wrapper.so,pyuno_wrapper:pyuno.so,$(gb_Library_FILENAMES)) endif - -ifneq ($(OS),ANDROID) -gb_Library_FILENAMES := $(patsubst unobootstrapprotector:libuno%,unobootstrapprotector:uno%,$(gb_Library_FILENAMES)) -gb_Library_FILENAMES := $(patsubst unoexceptionprotector:libuno%,unoexceptionprotector:uno%,$(gb_Library_FILENAMES)) -endif endif ifeq ($(OS),WNT) diff --git a/RepositoryModule_host.mk b/RepositoryModule_host.mk index 64068ffc0e49..ff07e415e25f 100644 --- a/RepositoryModule_host.mk +++ b/RepositoryModule_host.mk @@ -111,6 +111,7 @@ $(eval $(call gb_Module_add_moduledirs,libreoffice,\ solenv \ soltools \ sot \ + static \ stoc \ store \ svl \ @@ -140,20 +141,20 @@ $(eval $(call gb_Module_add_moduledirs,libreoffice,\ uui \ vbahelper \ vcl \ - wasm \ wasm-qt \ winaccessibility \ wizards \ writerfilter \ writerperfect \ xmerge \ - $(call gb_Helper_optional,DESKTOP,xmlhelp) \ + $(call gb_Helper_optional,DESKTOP,$(if $(DISABLE_DYNLOADING),,xmlhelp)) \ xmloff \ xmlreader \ xmlscript \ xmlsecurity \ )) +ifeq (,$(DISABLE_DYNLOADING)) # Especially when building everything with symbols, the linking of the largest # libraries takes enormous amounts of RAM. To prevent annoying OOM situations # etc., try to prevent linking these in parallel by adding artificial build @@ -186,5 +187,6 @@ $(eval $(call repositorymodule_serialize,\ svx svxcore xo sfx fwk svt vcl) \ )) endif +endif # !$(DISABLE_DYNLOADING) # vim: set noet sw=4 ts=4: diff --git a/accessibility/Library_acc.mk b/accessibility/Library_acc.mk index 6e4c90eba50d..cf63cf5836a8 100644 --- a/accessibility/Library_acc.mk +++ b/accessibility/Library_acc.mk @@ -9,6 +9,8 @@ $(eval $(call gb_Library_Library,acc)) +$(eval $(call gb_Library_set_plugin_for,acc,tk)) + $(eval $(call gb_Library_set_include,acc,\ $$(INCLUDE) \ -I$(SRCDIR)/accessibility/inc \ @@ -31,7 +33,6 @@ $(eval $(call gb_Library_use_libraries,acc,\ sot \ svl \ svt \ - tk \ tl \ utl \ vcl \ @@ -71,6 +71,7 @@ fi # echo "setting search path to: ${SEARCH_PATH}" # echo "execing: ${exedir}/$1" +env | sort exec ${LO_TRACE} "${exedir}/$@" # vi:set shiftwidth=4 expandtab: diff --git a/chart2/Module_chart2.mk b/chart2/Module_chart2.mk index 37acfdc3730f..02a56e276205 100644 --- a/chart2/Module_chart2.mk +++ b/chart2/Module_chart2.mk @@ -24,23 +24,6 @@ $(eval $(call gb_Module_add_check_targets,chart2,\ CppunitTest_chart2_common_functors \ )) -$(eval $(call gb_Module_add_slowcheck_targets,chart2,\ - CppunitTest_chart2_export \ - CppunitTest_chart2_import \ - CppunitTest_chart2_trendcalculators \ - CppunitTest_chart2_dump \ - CppunitTest_chart2_pivot_chart_test \ - CppunitTest_chart2_geometry \ -)) - -ifeq ($(ENABLE_CHART_TESTS),TRUE) -ifeq ($(WITH_FONTS), TRUE) -$(eval $(call gb_Module_add_slowcheck_targets,chart2,\ - CppunitTest_chart2_xshape \ -)) -endif -endif - $(eval $(call gb_Module_add_subsequentcheck_targets,chart2,\ JunitTest_chart2_unoapi \ )) diff --git a/configure.ac b/configure.ac index fd68c0b8985c..f08b33ff1da4 100644 --- a/configure.ac +++ b/configure.ac @@ -1884,6 +1884,16 @@ libo_FUZZ_ARG_ENABLE(librelogo, [Do not build LibreLogo.]), ,enable_librelogo=yes) +AC_ARG_ENABLE(cmis, + AS_HELP_STRING([--disable-cmis], + [Disable CMIS support.]), +,enable_cmis=yes) + +AC_ARG_ENABLE(curl, + AS_HELP_STRING([--disable-curl], + [Disable CURL support.]), +,enable_curl=yes) + dnl =================================================================== dnl Optional Packages (--with/without-) dnl =================================================================== @@ -3697,7 +3707,7 @@ if test -n "$WIN_MULTI_ARCH" -a -n "$WIN_OTHER_ARCH"; then fi -if test "$_os" = "iOS" -o "$build_cpu" != "$host_cpu"; then +if test "$_os" = "iOS" -o "$build_cpu" != "$host_cpu" -o -n "$DISABLE_DYNLOADING"; then # To allow building Windows multi-arch releases without cross-tooling if test -z "$WIN_MULTI_ARCH" -a -z "$WIN_OTHER_ARCH"; then cross_compiling="yes" @@ -5544,9 +5554,9 @@ if test "$USING_X11" != TRUE; then test_dbus=no build_gstreamer_1_0=no test_kf5=no - test_qt5=no + test_qt5=yes test_gtk3_kde5=no - enable_cairo_canvas=no + enable_cairo_canvas=yes fi if test "$OS" = "EMSCRIPTEN"; then @@ -7138,7 +7148,7 @@ dnl =================================================================== dnl Check for system libcmis dnl =================================================================== # libcmis requires curl and we can't build curl for iOS -if test "$test_cmis" = "yes"; then +if test "$test_cmis" = "yes" -a "$enable_cmis" = "yes"; then libo_CHECK_SYSTEM_MODULE([libcmis],[LIBCMIS],[libcmis-0.5 >= 0.5.2]) ENABLE_LIBCMIS=TRUE else @@ -10113,7 +10123,7 @@ if test "$with_system_curl" = "auto"; then with_system_curl="$with_system_libs" fi -if test "$test_curl" = "yes" -a "$with_system_curl" = "yes"; then +if test "$test_curl" = "yes" -a "$enable_curl" = "yes" -a "$with_system_curl" = "yes"; then AC_MSG_RESULT([external]) SYSTEM_CURL=TRUE diff --git a/cppu/Module_cppu.mk b/cppu/Module_cppu.mk index 17f6936f7878..f00558a4056a 100644 --- a/cppu/Module_cppu.mk +++ b/cppu/Module_cppu.mk @@ -26,7 +26,6 @@ $(eval $(call gb_Module_add_check_targets,cppu,\ CppunitTest_cppu_qa_recursion \ CppunitTest_cppu_qa_reference \ CppunitTest_cppu_qa_unotype \ - CppunitTest_cppu_test_cppumaker \ CppunitTest_cppu_typelib \ )) diff --git a/cpputools/Module_cpputools.mk b/cpputools/Module_cpputools.mk index de043ea9bf45..72b2b4307dbf 100644 --- a/cpputools/Module_cpputools.mk +++ b/cpputools/Module_cpputools.mk @@ -14,7 +14,6 @@ ifneq ($(OS),EMSCRIPTEN) $(eval $(call gb_Module_add_targets,cpputools,\ Executable_sp2bv \ - Executable_uno \ )) endif diff --git a/cui/Library_cui.mk b/cui/Library_cui.mk index d6fa68e0d194..01e2bd8cd191 100644 --- a/cui/Library_cui.mk +++ b/cui/Library_cui.mk @@ -9,6 +9,8 @@ $(eval $(call gb_Library_Library,cui)) +$(eval $(call gb_Library_set_plugin_for,cui,vcl)) + $(eval $(call gb_Library_set_componentfile,cui,cui/util/cui)) $(eval $(call gb_Library_set_include,cui,\ @@ -58,7 +60,6 @@ $(eval $(call gb_Library_use_libraries,cui,\ tl \ ucbhelper \ utl \ - vcl \ $(if $(ENABLE_BREAKPAD), \ crashreport \ ) \ diff --git a/desktop/Executable_oosplash.mk b/desktop/Executable_oosplash.mk index a14acd626b74..ae7b3dfaa74e 100644 --- a/desktop/Executable_oosplash.mk +++ b/desktop/Executable_oosplash.mk @@ -56,6 +56,8 @@ endif ifeq ($(OS),LINUX) $(eval $(call gb_Executable_add_libs,oosplash,\ -lm \ + -lstdc++ \ + -pthread \ )) endif diff --git a/desktop/Module_desktop.mk b/desktop/Module_desktop.mk index 31bbf9d3a472..64717578b26f 100644 --- a/desktop/Module_desktop.mk +++ b/desktop/Module_desktop.mk @@ -33,7 +33,6 @@ $(eval $(call gb_Module_add_l10n_targets,desktop,\ ifneq (,$(filter DESKTOP,$(BUILD_TYPE))) $(eval $(call gb_Module_add_targets,desktop,\ Executable_soffice_bin \ - Executable_unopkg_bin \ $(if $(ENABLE_BREAKPAD),Executable_minidump_upload) \ Library_migrationoo2 \ Library_migrationoo3 \ @@ -44,10 +43,7 @@ $(eval $(call gb_Module_add_targets,desktop,\ ifneq ($(OS),MACOSX) ifneq ($(OS),WNT) $(eval $(call gb_Module_add_targets,desktop,\ - Pagein_calc \ Pagein_common \ - Pagein_draw \ - Pagein_impress \ Pagein_writer \ CustomTarget_soffice \ )) @@ -142,7 +138,6 @@ $(eval $(call gb_Module_add_check_targets,desktop, \ ifeq ($(OS),LINUX) $(eval $(call gb_Module_add_check_targets,desktop, \ - CppunitTest_desktop_lib \ CppunitTest_desktop_lokinit \ )) endif diff --git a/extensions/Module_extensions.mk b/extensions/Module_extensions.mk index c3f87aca815c..f0a4784b8b56 100644 --- a/extensions/Module_extensions.mk +++ b/extensions/Module_extensions.mk @@ -13,7 +13,7 @@ $(eval $(call gb_Module_add_l10n_targets,extensions,\ AllLangMoTarget_pcr \ )) -ifneq ($(filter-out EMSCRIPTEN iOS ANDROID,$(OS)),) +ifeq (,$(DISABLE_DYNLOADING)) $(eval $(call gb_Module_add_targets,extensions,\ Library_abp \ Library_scn \ diff --git a/external/liborcus/ExternalProject_liborcus.mk b/external/liborcus/ExternalProject_liborcus.mk index e7dd23b7d5ba..c7dd76ebfee5 100644 --- a/external/liborcus/ExternalProject_liborcus.mk +++ b/external/liborcus/ExternalProject_liborcus.mk @@ -95,7 +95,7 @@ $(call gb_ExternalProject_get_state_target,liborcus,build) : $(call gb_ExternalProject_run,build,\ $(if $(liborcus_LIBS),LIBS='$(liborcus_LIBS)') \ $(if $(liborcus_CXXFLAGS),CXXFLAGS='$(liborcus_CXXFLAGS)') \ - $(if $(liborcus_CPPFLAGS),CPPFLAGS='$(liborcus_CPPFLAGS)') \ + $(if $(liborcus_CPPFLAGS),CPPFLAGS='$(liborcus_CPPFLAGS) $(gb_EMSCRIPTEN_CPPFLAGS)') \ $(if $(liborcus_LDFLAGS),LDFLAGS='$(liborcus_LDFLAGS)') \ MDDS_CFLAGS='$(MDDS_CFLAGS)' \ MDDS_LIBS=' ' \ diff --git a/postprocess/Rdb_services.mk b/postprocess/Rdb_services.mk index a2ea54397951..97e75c13a001 100644 --- a/postprocess/Rdb_services.mk +++ b/postprocess/Rdb_services.mk @@ -193,9 +193,6 @@ $(eval $(call gb_Rdb_add_components,services,\ 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 \ @@ -272,15 +269,11 @@ $(eval $(call gb_Rdb_add_components,services,\ 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 \ - xmlhelp/util/ucpchelp1 \ $(if $(filter-out WNT,$(OS)),\ shell/source/cmdmail/cmdmail \ ) \ diff --git a/sal/StaticLibrary_cppunitmain.mk b/sal/Library_cppunitmain.mk index 30c64d7b3980..07f51e0c4821 100644 --- a/sal/StaticLibrary_cppunitmain.mk +++ b/sal/Library_cppunitmain.mk @@ -8,30 +8,32 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # -$(eval $(call gb_StaticLibrary_StaticLibrary,cppunitmain)) +$(eval $(call gb_Library_Library,cppunitmain)) -$(eval $(call gb_StaticLibrary_set_include,cppunitmain,\ +$(eval $(call gb_Library_set_include,cppunitmain,\ $$(INCLUDE) \ -I$(SRCDIR)/sal/inc \ )) -$(eval $(call gb_StaticLibrary_use_libraries,cppunitmain,\ +$(eval $(call gb_Library_use_libraries,cppunitmain,\ sal \ unoexceptionprotector \ + unobootstrapprotector \ + vclbootstrapprotector \ )) -$(eval $(call gb_StaticLibrary_use_externals,cppunitmain,\ +$(eval $(call gb_Library_use_externals,cppunitmain,\ boost_headers \ cppunit \ )) -$(eval $(call gb_StaticLibrary_add_exception_objects,cppunitmain,\ +$(eval $(call gb_Library_add_exception_objects,cppunitmain,\ sal/cppunittester/cppunittester \ )) ifeq ($(COM),MSC) -$(eval $(call gb_StaticLibrary_add_ldflags,cppunitmain,\ +$(eval $(call gb_Library_add_ldflags,cppunitmain,\ /STACK:10000000 \ )) diff --git a/sal/Module_sal.mk b/sal/Module_sal.mk index a24fe27ab869..d7076bf31e70 100644 --- a/sal/Module_sal.mk +++ b/sal/Module_sal.mk @@ -10,7 +10,7 @@ $(eval $(call gb_Module_Module,sal)) $(eval $(call gb_Module_add_targets,sal,\ - $(if $(or $(CROSS_COMPILING),$(DISABLE_DYNLOADING)),StaticLibrary_cppunitmain,Executable_cppunittester) \ + $(if $(or $(CROSS_COMPILING),$(DISABLE_DYNLOADING)),Library_cppunitmain,Executable_cppunittester) \ $(if $(filter $(OS),ANDROID), \ Library_lo-bootstrap) \ Library_sal \ diff --git a/solenv/bin/image-sort.py b/solenv/bin/image-sort.py index 75b5da6ce0e7..5d248684b4a6 100644 --- a/solenv/bin/image-sort.py +++ b/solenv/bin/image-sort.py @@ -30,7 +30,7 @@ def read_icons(fname): full_path = os.path.join(args.base_path, fname) if not os.path.exists(full_path): if not args.quiet: - print("Skipping non-existent {}\n".format(full_path), file=sys.stderr) + print("Skipping non-existent {}".format(full_path), file=sys.stderr) return images with open(full_path) as fp: for line in fp: diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk index 6255fc0544c8..296b8e379a0c 100644 --- a/solenv/gbuild/CppunitTest.mk +++ b/solenv/gbuild/CppunitTest.mk @@ -74,8 +74,13 @@ endif # defined by platform # gb_CppunitTest_get_filename +ifeq (,$(DISABLE_DYNLOADING)) gb_CppunitTest_RUNTIMEDEPS := $(call gb_Executable_get_runtime_dependencies,cppunittester) gb_CppunitTest_CPPTESTCOMMAND := $(call gb_Executable_get_target_for_build,cppunittester) +else +gb_CppunitTest_RUNTIMEDEPS := +gb_CppunitTest_CPPTESTCOMMAND := +endif # i18npool dlopens localedata_* libraries. gb_CppunitTest_RUNTIMEDEPS += \ @@ -206,7 +211,8 @@ $(call gb_CppunitTest_get_target,$(1)) : EXTRA_ENV_VARS := $$(eval $$(call gb_Module_register_target,$(call gb_CppunitTest_get_target,$(1)),$(call gb_CppunitTest_get_clean_target,$(1)))) $(call gb_Helper_make_userfriendly_targets,$(1),CppunitTest) ifneq (,$(DISABLE_DYNLOADING)) -$$(eval $$(call gb_CppunitTest_use_static_libraries,$(1),cppunitmain)) +$$(eval $$(call gb_CppunitTest_use_libraries,$(1),cppunitmain)) +$$(eval $$(call gb_CppunitTest_add_defs,$(1),-D__EMSCRIPTEN__)) endif $(if $(filter $(1),$(gb_CppunitTest_KNOWN)),,gb_CppunitTest_KNOWN += $(1)) diff --git a/solenv/gbuild/platform/linux.mk b/solenv/gbuild/platform/linux.mk index ece7a88bd71f..823190490589 100644 --- a/solenv/gbuild/platform/linux.mk +++ b/solenv/gbuild/platform/linux.mk @@ -17,12 +17,20 @@ gb_LinkTarget_LDFLAGS += $(gb__LinkTarget_LDFLAGS_zdefs) include $(GBUILDDIR)/platform/unxgcc.mk +gb_STDLIBS := + ifeq ($(DISABLE_DYNLOADING),TRUE) -gb_STDLIBS := -ldl +gb_STDLIBS += -ldl -lm endif +gb_STDLIBS_CXX := + ifneq ($(ATOMIC_LIB),) -gb_STDLIBS_CXX := $(ATOMIC_LIB) +gb_STDLIBS_CXX += $(ATOMIC_LIB) +endif + +ifeq ($(DISABLE_DYNLOADING),TRUE) +gb_STDLIBS_CXX += -lstdc++ endif # vim: set noet sw=4 ts=4: diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk index 515a2b37c9d4..43579bd0c6aa 100644 --- a/solenv/gbuild/platform/unxgcc.mk +++ b/solenv/gbuild/platform/unxgcc.mk @@ -136,7 +136,7 @@ $(call gb_Helper_abbreviate_dirs,\ $(patsubst lib%.a,-l%,$(patsubst lib%.so,-l%,$(patsubst %.$(gb_Library_UDK_MAJORVER),%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))))) \ $(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) \ $(T_LIBS) \ - $(if $(CXXOBJECTS)$(GENCXXOBJECTS)$(EXTRAOBJECTLISTS)$(filter-out XTRUE,X$(ENABLE_RUNTIME_OPTIMIZATIONS)),$(T_STDLIBS_CXX)) \ + $(T_STDLIBS_CXX) $(T_STDLIBS) \ -Wl$(COMMA)--end-group \ , \ -Wl$(COMMA)--start-group \ diff --git a/solenv/gbuild/static.mk b/solenv/gbuild/static.mk index 7928a699d42f..be30960b0d3e 100644 --- a/solenv/gbuild/static.mk +++ b/solenv/gbuild/static.mk @@ -83,9 +83,9 @@ $(if $(strip $(filter-out GBUILD_TOUCHED, \ ifeq (,$(gb_PARTIAL_BUILD)) -ifeq ($(OS),EMSCRIPTEN) +#ifeq ($(OS),EMSCRIPTEN) $(foreach lib,$(gb_Library_KNOWNLIBS),$(if $(call gb_Library__get_component,$(lib)),$(eval $(call gb_Library_use_libraries,components,$(lib))))) -endif +#endif define gb_LinkTarget__add_x_template @@ -147,6 +147,7 @@ endef define gb_LinkTarget__remove_touch $(call gb_LinkTarget__get_all_libraries_var,$(1)) := $(filter-out GBUILD_TOUCHED,$(call gb_LinkTarget__get_all_libraries,$(1))) $(call gb_LinkTarget__get_all_externals_var,$(1)) := $(filter-out GBUILD_TOUCHED,$(call gb_LinkTarget__get_all_externals,$(1))) +$(call gb_LinkTarget__get_all_statics_var,$(1)) := $(filter-out GBUILD_TOUCHED,$(call gb_LinkTarget__get_all_statics,$(1))) endef @@ -160,9 +161,10 @@ endef define gb_LinkTarget__fill_all_x_template define gb_LinkTarget__fill_all_$(if $(5),$(5),$(1)) -$$(if $$(filter GBUILD_TOUCHED,$$(call gb_$(2)__get_all_$(1),$$(1))),, +$$(if $$(filter GBUILD_TOUCHED,$$(call gb_$(if $(6),$(6),$(2))__get_all_$(1),$$(1))),, $(if $(gb_DEBUG_STATIC),$$(info gb_LinkTarget__fill_all_$(if $(5),$(5),$(1)) $(1) for $$(1) in: $$(call gb_$(if $(6),$(6),$(2))__get_all_$(1),$$(1)))) $(if $(gb_DEBUG_STATIC),$$(info gb_LinkTarget__fill_all_$(if $(5),$(5),$(1)) $(3) for $$(1) in: $$(call gb_$(if $(6),$(6),$(2))__get_all_$(3),$$(1)))) + $$(eval $$(call gb_LinkTarget__add_touch,$$(call gb_$(if $(6),$(6),$(2))__get_workdir_linktargetname,$$(1)))) $$(foreach item,$$(call gb_$(if $(6),$(6),$(2))__get_all_$(1),$$(1)), $$(call gb_LinkTarget__fill_all_$(1),$$(item)) $$(foreach dep,$$(call gb_$(2)__get_all_$(1),$$(item)), @@ -179,7 +181,6 @@ $$(if $$(filter GBUILD_TOUCHED,$$(call gb_$(2)__get_all_$(1),$$(1))),, $$(foreach dep,$$(call gb_$(4)__get_all_$(3),$$(item)), $$(if $$(filter $$(dep),GBUILD_TOUCHED $$(call gb_$(if $(6),$(6),$(2))__get_all_$(3),$$(1))),, $$(eval $$(call gb_LinkTarget__add_$(3),$$(call gb_$(if $(6),$(6),$(2))__get_workdir_linktargetname,$$(1)),$$(dep)))))) - $$(eval $$(call gb_LinkTarget__add_touch,$$(call gb_$(if $(6),$(6),$(2))__get_workdir_linktargetname,$$(1)))) $(if $(gb_DEBUG_STATIC),$$(info gb_LinkTarget__fill_all_$(if $(5),$(5),$(1)) $(1) for $$(1) out: $$(call gb_$(if $(6),$(6),$(2))__get_all_$(1),$$(1)))) $(if $(gb_DEBUG_STATIC),$$(info gb_LinkTarget__fill_all_$(if $(5),$(5),$(1)) $(3) for $$(1) out: $$(call gb_$(if $(6),$(6),$(2))__get_all_$(3),$$(1))))) @@ -203,13 +204,17 @@ $(eval $(call gb_LinkTarget__fill_all_x_template,libraries,Library,externals,Ext gb_Executable__LAST_KNOWN = gb_CppunitTest__LAST_KNOWN = +#$(eval $(call gb_Library_use_libraries,cppuhelper,components)) + # The comment exists To help decipering / verifying the following block. Most later items depends on previous one(s). # # * Expand all libraries. It's not strictly needed, as we only need the info for the executables, # but this way we can implement updating single gbuild-module dependencies as needed. # * For all executables (incl. CppunitTest(s)): -# * For EMSCRIPTEN, add components library to any cppuhelper user, as it contains the call to the mapper functions -# * Find any loader libraries and add the needed plugin dependences +# * Expand all normal dependencies +# * Check if cppuhelper loader for components is requested and add the needed plugin dependences +# This is a *HACK*, so we don't have to recursively check loader libraries - at least currently +# * Find any other loader libraries and add the needed plugin dependences # * Add all statics to the executables # * Add icudata as needed (it should be a plugin somehow declared in RepositoryExternal.mk, but that didn't work) # * Serialize the linking of executables for EMSCRIPTEN, because wasm-opt is multi-threaded using all cores. @@ -217,10 +222,11 @@ gb_CppunitTest__LAST_KNOWN = $(foreach lib,$(gb_Library_KNOWNLIBS),$(eval $(call gb_LinkTarget__fill_all_libraries,$(lib)))) define gb_LinkTarget__expand_executable -$$(if $$(and $$(filter EMSCRIPTEN,$$(OS)),$$(filter cppuhelper,$$(call gb_$(2)__get_all_libraries,$(3)))), \ - $$(eval $$(call gb_$(2)_use_libraries,$(3),components))) \ $$(eval $$(call gb_LinkTarget__fill_all_$(1),$(3))) \ -$$(foreach loader,$$(filter $$(gb_Library_KNOWNLOADERS),$$(call gb_$(2)__get_all_libraries,$(3))), \ +$$(if $$(filter cppuhelper,$$(filter $$(gb_Library_KNOWNLOADERS),$$(call gb_$(2)__get_all_libraries,$(3)))), \ + $$(eval $$(call gb_$(2)_use_libraries,$(3),$$(call gb_Library__get_plugins,cppuhelper))) \ + $$(eval $$(call gb_$(2)__add_libraries,$(3),$$(call gb_Library__get_plugins,cppuhelper)))) \ +$$(foreach loader,$$(filter $$(filter-out cppuhelper,$$(gb_Library_KNOWNLOADERS)),$$(call gb_$(2)__get_all_libraries,$(3))), \ $$(eval $$(call gb_$(2)_use_libraries,$(3),$$(call gb_Library__get_plugins,$$(loader)))) \ $$(eval $$(call gb_$(2)__add_libraries,$(3),$$(call gb_Library__get_plugins,$$(loader))))) \ $$(if $$(filter-out GBUILD_TOUCHED,$$(call gb_$(2)__get_all_libraries,$(3))), \ diff --git a/wasm/CustomTarget_components.mk b/static/CustomTarget_components.mk index cb188166d894..384985426a2a 100644 --- a/wasm/CustomTarget_components.mk +++ b/static/CustomTarget_components.mk @@ -8,16 +8,16 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # -$(eval $(call gb_CustomTarget_CustomTarget,wasm/components)) +$(eval $(call gb_CustomTarget_CustomTarget,static/components)) -wasm_WORKDIR := $(call gb_CustomTarget_get_workdir,wasm) +static_WORKDIR := $(call gb_CustomTarget_get_workdir,static) -$(call gb_CustomTarget_get_target,wasm/components): \ - $(wasm_WORKDIR)/component_maps.cxx +$(call gb_CustomTarget_get_target,static/components): \ + $(static_WORKDIR)/component_maps.cxx -$(wasm_WORKDIR)/component_maps.cxx: \ +$(static_WORKDIR)/component_maps.cxx: \ $(SRCDIR)/solenv/bin/native-code.py \ - | $(wasm_WORKDIR)/.dir + | $(static_WORKDIR)/.dir $(call gb_Output_announce,$(subst $(BUILDDIR)/,,$@),$(true),GEN,2) $(call gb_Helper_abbreviate_dirs,$(call gb_ExternalExecutable_get_command,python) $< -g core -g writer) > $@ diff --git a/wasm/Library_components.mk b/static/Library_components.mk index 128a3c12c2df..d3e7a0d149c1 100644 --- a/wasm/Library_components.mk +++ b/static/Library_components.mk @@ -9,8 +9,14 @@ $(eval $(call gb_Library_Library,components)) +$(eval $(call gb_Library_set_plugin_for,components,cppuhelper)) + $(eval $(call gb_Library_add_generated_exception_objects,components,\ - CustomTarget/wasm/component_maps \ + CustomTarget/static/component_maps \ +)) + +$(eval $(call gb_Library_use_libraries,acc,\ + $(gb_CPPU_ENV)_uno \ )) # vim: set noet sw=4 ts=4: diff --git a/wasm/Makefile b/static/Makefile index 0c6f47b1790f..0c6f47b1790f 100644 --- a/wasm/Makefile +++ b/static/Makefile diff --git a/wasm/Module_wasm.mk b/static/Module_static.mk index eff9d0d7d1e9..f8909994ab7b 100644 --- a/wasm/Module_wasm.mk +++ b/static/Module_static.mk @@ -6,11 +6,11 @@ # 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)) +$(eval $(call gb_Module_Module,static)) -ifeq ($(OS),EMSCRIPTEN) +ifeq ($(DISABLE_DYNLOADING),TRUE) -$(eval $(call gb_Module_add_targets,wasm,\ +$(eval $(call gb_Module_add_targets,static,\ CustomTarget_components \ Library_components \ )) diff --git a/static/README b/static/README new file mode 100644 index 000000000000..d1254dd22da3 --- /dev/null +++ b/static/README @@ -0,0 +1,2 @@ +Static components library, containing a map from all component names +to their constructor function calls. diff --git a/sw/CppunitTest_sw_apitests.mk b/sw/CppunitTest_sw_apitests.mk index d65c058fc97c..4124c32be618 100644 --- a/sw/CppunitTest_sw_apitests.mk +++ b/sw/CppunitTest_sw_apitests.mk @@ -53,7 +53,7 @@ $(eval $(call gb_CppunitTest_use_libraries,sw_apitests, \ ucbhelper \ unotest \ utl \ - vbahelper \ + $(call gb_Helper_optional,SCRIPTING,vbahelper) \ vcl \ xo \ )) diff --git a/sw/CppunitTest_sw_macros_test.mk b/sw/CppunitTest_sw_macros_test.mk index 7f38c45180bb..bb675c609df3 100644 --- a/sw/CppunitTest_sw_macros_test.mk +++ b/sw/CppunitTest_sw_macros_test.mk @@ -48,7 +48,7 @@ $(eval $(call gb_CppunitTest_use_libraries,sw_macros_test, \ ucbhelper \ unotest \ utl \ - vbahelper \ + $(call gb_Helper_optional,SCRIPTING,vbahelper) \ vcl \ xo \ )) diff --git a/sw/CppunitTest_sw_uwriter.mk b/sw/CppunitTest_sw_uwriter.mk index e6a490c5dff1..b0c36f396ba0 100644 --- a/sw/CppunitTest_sw_uwriter.mk +++ b/sw/CppunitTest_sw_uwriter.mk @@ -56,7 +56,7 @@ $(eval $(call gb_CppunitTest_use_libraries,sw_uwriter, \ ucbhelper \ unotest \ utl \ - vbahelper \ + $(call gb_Helper_optional,SCRIPTING,vbahelper) \ vcl \ xmlreader \ xo \ diff --git a/unotest/source/cpp/bootstrapfixturebase.cxx b/unotest/source/cpp/bootstrapfixturebase.cxx index 5c5b3bcc3a9c..348ecb796e85 100644 --- a/unotest/source/cpp/bootstrapfixturebase.cxx +++ b/unotest/source/cpp/bootstrapfixturebase.cxx @@ -8,10 +8,13 @@ */ #include <sal/config.h> +#include <config_features.h> #include <unotest/bootstrapfixturebase.hxx> #include <comphelper/processfactory.hxx> +#if HAVE_FEATURE_SCRIPTING #include <basic/sbstar.hxx> +#endif using namespace ::com::sun::star; @@ -30,6 +33,11 @@ void test::BootstrapFixtureBase::setUp() m_xSFactory.set(m_xFactory, uno::UNO_QUERY_THROW); } -void test::BootstrapFixtureBase::tearDown() { StarBASIC::DetachAllDocBasicItems(); } +void test::BootstrapFixtureBase::tearDown() +{ +#if HAVE_FEATURE_SCRIPTING + StarBASIC::DetachAllDocBasicItems() +#endif +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/Executable_ui-previewer.mk b/vcl/Executable_ui-previewer.mk index f853ce40864e..7b846a2d3c29 100644 --- a/vcl/Executable_ui-previewer.mk +++ b/vcl/Executable_ui-previewer.mk @@ -41,6 +41,7 @@ $(eval $(call gb_Executable_add_defs,ui-previewer,\ )) ifeq ($(OS), $(filter LINUX %BSD SOLARIS, $(OS))) +ifneq (,$(USING_X11)) $(eval $(call gb_Executable_add_libs,ui-previewer,\ -lm $(DLOPEN_LIBS) \ -lX11 \ @@ -50,6 +51,7 @@ $(eval $(call gb_Executable_use_static_libraries,ui-previewer,\ glxtest \ )) endif +endif $(eval $(call gb_Executable_add_default_nativeres,ui-previewer)) diff --git a/vcl/Executable_vcldemo.mk b/vcl/Executable_vcldemo.mk index a9a8d195fdc9..7b8ecadab3cf 100644 --- a/vcl/Executable_vcldemo.mk +++ b/vcl/Executable_vcldemo.mk @@ -55,6 +55,7 @@ $(eval $(call gb_Executable_use_static_libraries,vcldemo,\ )) ifeq ($(OS), $(filter LINUX %BSD SOLARIS, $(OS))) +ifneq (,$(USING_X11)) $(eval $(call gb_Executable_add_libs,vcldemo,\ -lm $(DLOPEN_LIBS) \ -lX11 \ @@ -64,5 +65,6 @@ $(eval $(call gb_Executable_use_static_libraries,vcldemo,\ glxtest \ )) endif +endif # vim: set noet sw=4 ts=4: diff --git a/vcl/Library_vcl.mk b/vcl/Library_vcl.mk index 99fe1b2898d2..b9ec2a9f6c5c 100644 --- a/vcl/Library_vcl.mk +++ b/vcl/Library_vcl.mk @@ -580,7 +580,7 @@ vcl_headless_freetype_code=\ ifeq ($(USING_X11),TRUE) $(eval $(call gb_Library_add_exception_objects,vcl,\ - vcl/source/app/salplug \ + $(if $(DISABLE_DYNLOADING),,vcl/source/app/salplug) \ vcl/unx/generic/printer/jobdata \ vcl/unx/generic/printer/ppdparser \ vcl/unx/generic/window/screensaverinhibitor \ @@ -622,6 +622,12 @@ $(eval $(call gb_Library_use_externals,vcl,\ fontconfig \ freetype \ )) +else +ifneq (,$(DISABLE_DYNLOADING)) +$(eval $(call gb_Library_add_exception_objects,vcl,\ + vcl/wasm/salplug \ +)) +endif endif ifeq ($(OS), $(filter LINUX %BSD SOLARIS, $(OS))) diff --git a/vcl/Library_vclplug_qt5.mk b/vcl/Library_vclplug_qt5.mk index a91841ec32e4..cbf279ca179e 100644 --- a/vcl/Library_vclplug_qt5.mk +++ b/vcl/Library_vclplug_qt5.mk @@ -99,7 +99,6 @@ $(eval $(call gb_Library_add_exception_objects,vclplug_qt5,\ vcl/qt5/Qt5MainWindow \ vcl/qt5/Qt5Menu \ vcl/qt5/Qt5Object \ - vcl/qt5/Qt5OpenGLContext \ vcl/qt5/Qt5Painter \ vcl/qt5/Qt5Printer \ vcl/qt5/Qt5SvpGraphics \ diff --git a/vcl/Module_vcl.mk b/vcl/Module_vcl.mk index f01de5e0a89c..2e2034d131f9 100644 --- a/vcl/Module_vcl.mk +++ b/vcl/Module_vcl.mk @@ -32,19 +32,9 @@ $(eval $(call gb_Module_add_targets,vcl,\ $(if $(filter DESKTOP,$(BUILD_TYPE))$(filter EMSCRIPTEN,$(OS)), \ StaticLibrary_vclmain \ $(if $(ENABLE_MACOSX_SANDBOX),, \ - $(if $(DISABLE_GUI),, \ - Executable_ui-previewer)) \ + Executable_ui-previewer) \ $(if $(filter EMSCRIPTEN LINUX MACOSX SOLARIS WNT %BSD,$(OS)), \ - $(if $(DISABLE_GUI),, \ - Executable_vcldemo ))) \ -)) - -$(eval $(call gb_Module_add_targets,vcl,\ - $(if $(filter-out EMSCRIPTEN ANDROID iOS WNT,$(OS)), \ - Executable_svdemo \ - Executable_fftester \ - Executable_svptest \ - Executable_svpclient) \ + Executable_vcldemo )) \ )) $(eval $(call gb_Module_add_l10n_targets,vcl,\ diff --git a/vcl/qt5/Qt5Instance.cxx b/vcl/qt5/Qt5Instance.cxx index 226dac3730d2..ee68565a3bb1 100644 --- a/vcl/qt5/Qt5Instance.cxx +++ b/vcl/qt5/Qt5Instance.cxx @@ -432,7 +432,7 @@ OUString Qt5Instance::GetConnectionIdentifier() { return OUString(); } void Qt5Instance::AddToRecentDocumentList(const OUString&, const OUString&, const OUString&) {} -OpenGLContext* Qt5Instance::CreateOpenGLContext() { return new Qt5OpenGLContext; } +OpenGLContext* Qt5Instance::CreateOpenGLContext() { return nullptr; } bool Qt5Instance::IsMainThread() const { diff --git a/wasm/README b/wasm/README deleted file mode 100644 index a23bd6a45ea9..000000000000 --- a/wasm/README +++ /dev/null @@ -1 +0,0 @@ -See /README.wasm diff --git a/xmlsecurity/Library_xmlsecurity.mk b/xmlsecurity/Library_xmlsecurity.mk index 31992a969b23..1e974297f43e 100644 --- a/xmlsecurity/Library_xmlsecurity.mk +++ b/xmlsecurity/Library_xmlsecurity.mk @@ -91,7 +91,7 @@ $(eval $(call gb_Library_use_system_win32_libs,xmlsecurity,\ )) else ifneq (,$(filter DESKTOP,$(BUILD_TYPE))$(filter ANDROID,$(OS))) -ifneq ($(OS),EMSCRIPTEN) +ifeq (TRUE,$(ENABLE_NSS)) $(eval $(call gb_Library_add_defs,xmlsecurity,\ -DXMLSEC_CRYPTO_NSS \ )) |