Kaydet (Commit) f5c74abc authored tarafından Matúš Kukan's avatar Matúš Kukan

Remove library urelibs. It was more just a temporary hack and is not used.

Change-Id: I7566dcf21aae6b800adb58d8c94e350bb0da720c
üst 39c1c358
# -*- 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_Library_Library,urelibs))
# gb_URELIBS is defined in solenv/gbuild/extensions/pre_MergedLibsList.mk
$(eval $(call gb_Library_use_library_objects,urelibs,\
$(gb_URELIBS) \
))
# needed to generate proper deps for module-deps.pl
$(eval $(call gb_Library_use_libraries,urelibs,\
$(gb_UWINAPI) \
))
$(eval $(call gb_Library_use_static_libraries,urelibs,\
findsofficepath \
))
$(eval $(call gb_Library_use_externals,urelibs,\
libxml2 \
))
$(eval $(call gb_Library_add_libs,urelibs,\
$(if $(filter $(OS),LINUX), \
-ldl \
-lpthread \
-lrt \
) \
))
$(if $(filter $(OS),WNT), \
$(eval $(call gb_Library_use_system_win32_libs,urelibs,\
mpr \
ole32 \
shell32 \
ws2_32 \
)) \
)
# vim: set noet sw=4 ts=4:
...@@ -547,7 +547,6 @@ $(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_URE,ure, \ ...@@ -547,7 +547,6 @@ $(eval $(call gb_Helper_register_libraries_for_install,PLAINLIBS_URE,ure, \
) \ ) \
log_uno_uno \ log_uno_uno \
unsafe_uno_uno \ unsafe_uno_uno \
$(if $(URELIBS),urelibs) \
$(if $(filter MSC,$(COM)),$(if $(filter INTEL,$(CPUNAME)),msci,mscx),gcc3)_uno \ $(if $(filter MSC,$(COM)),$(if $(filter INTEL,$(CPUNAME)),msci,mscx),gcc3)_uno \
$(if $(filter $(OS),WNT), \ $(if $(filter $(OS),WNT), \
uwinapi \ uwinapi \
......
...@@ -17,7 +17,6 @@ $(eval $(call gb_Module_Module,libreoffice)) ...@@ -17,7 +17,6 @@ $(eval $(call gb_Module_Module,libreoffice))
ifneq ($(MERGELIBS),) ifneq ($(MERGELIBS),)
$(eval $(call gb_Module_add_targets,libreoffice,\ $(eval $(call gb_Module_add_targets,libreoffice,\
Library_merged \ Library_merged \
$(if $(URELIBS),Library_urelibs) \
)) ))
endif endif
......
...@@ -166,7 +166,6 @@ sub create_lib_module_map() ...@@ -166,7 +166,6 @@ sub create_lib_module_map()
my %l2m; my %l2m;
# hardcode the libs that don't have a directory # hardcode the libs that don't have a directory
$l2m{'merged'} = 'merged'; $l2m{'merged'} = 'merged';
$l2m{'urelibs'} = 'urelibs';
for (glob($src_root."/*/Library_*.mk")) for (glob($src_root."/*/Library_*.mk"))
{ {
......
...@@ -593,7 +593,6 @@ export TMPDIR=@TEMP_DIRECTORY@ ...@@ -593,7 +593,6 @@ export TMPDIR=@TEMP_DIRECTORY@
export TOUCH=@TOUCH@ export TOUCH=@TOUCH@
export TYPO_EXTENSION_PACK=@TYPO_EXTENSION_PACK@ export TYPO_EXTENSION_PACK=@TYPO_EXTENSION_PACK@
export UNOWINREG_DLL=@UNOWINREG_DLL@ export UNOWINREG_DLL=@UNOWINREG_DLL@
export URELIBS=@URELIBS@
export USE_LIBRARY_BIN_TAR=@USE_LIBRARY_BIN_TAR@ export USE_LIBRARY_BIN_TAR=@USE_LIBRARY_BIN_TAR@
export USE_XINERAMA=@USE_XINERAMA@ export USE_XINERAMA=@USE_XINERAMA@
export UUIDGEN=@UUIDGEN@ export UUIDGEN=@UUIDGEN@
......
...@@ -12657,7 +12657,6 @@ if test -n "$enable_mergelibs" -a "$enable_mergelibs" != "no"; then ...@@ -12657,7 +12657,6 @@ if test -n "$enable_mergelibs" -a "$enable_mergelibs" != "no"; then
fi fi
if test "$enable_mergelibs" = "all"; then if test "$enable_mergelibs" = "all"; then
MERGELIBS="ALL" MERGELIBS="ALL"
URELIBS="TRUE"
AC_DEFINE(STATIC_LINKING) AC_DEFINE(STATIC_LINKING)
else else
MERGELIBS="CORE" MERGELIBS="CORE"
...@@ -12667,7 +12666,6 @@ else ...@@ -12667,7 +12666,6 @@ else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
fi fi
AC_SUBST([MERGELIBS]) AC_SUBST([MERGELIBS])
AC_SUBST([URELIBS])
# =================================================================== # ===================================================================
# Create hardlinks on deliver instead of copying for smaller size and speed up # Create hardlinks on deliver instead of copying for smaller size and speed up
......
...@@ -12,7 +12,6 @@ $(eval $(call gb_Pagein_Pagein,common)) ...@@ -12,7 +12,6 @@ $(eval $(call gb_Pagein_Pagein,common))
# sorted in approx. reverse load order (ld.so.1) # sorted in approx. reverse load order (ld.so.1)
$(eval $(call gb_Pagein_add_objects,common,\ $(eval $(call gb_Pagein_add_objects,common,\
$(if $(MERGELIBS),merged) \ $(if $(MERGELIBS),merged) \
$(if $(URELIBS),urelibs) \
i18nlangtag \ i18nlangtag \
$(if $(SYSTEM_ICU),,\ $(if $(SYSTEM_ICU),,\
libicui18n$(gb_Library_DLLEXT).$(ICU_MAJOR) \ libicui18n$(gb_Library_DLLEXT).$(ICU_MAJOR) \
......
...@@ -122,16 +122,11 @@ if [[ ${DESTDIR}${pythondir} != ${GDBDIR} ]]; then ...@@ -122,16 +122,11 @@ if [[ ${DESTDIR}${pythondir} != ${GDBDIR} ]]; then
cp -pr "${GDBDIR}/libreoffice" "${DESTDIR}${pythondir}" cp -pr "${GDBDIR}/libreoffice" "${DESTDIR}${pythondir}"
fi fi
# keep in sync with solenv/Package_gdb.mk
if [[ -n "${MERGELIBS}" ]]; then if [[ -n "${MERGELIBS}" ]]; then
make_autoload merged program libmergedlo."$DYLIB" merge svl tl basegfx `[[ ${MERGELIBS} == "ALL" ]] && echo sw` make_autoload merged program libmergedlo."$DYLIB" merge svl tl basegfx `[[ ${MERGELIBS} == "ALL" ]] && echo sw`
if [[ ${MERGELIBS} == "ALL" ]]; then make_autoload cppu program libuno_cppu."$DYLIB".3
make_autoload urelibs program liburelibs."$DYLIB" merge cppu sal make_autoload sal program libuno_sal."$DYLIB".3
else make_autoload sw program libswlo."$DYLIB"
make_autoload cppu program libuno_cppu."$DYLIB".3
make_autoload sal program libuno_sal."$DYLIB".3
make_autoload sw program libswlo."$DYLIB"
fi
else else
make_autoload basegfx program libbasegfxlo."$DYLIB" make_autoload basegfx program libbasegfxlo."$DYLIB"
make_autoload cppu program libuno_cppu."$DYLIB".3 make_autoload cppu program libuno_cppu."$DYLIB".3
......
...@@ -188,7 +188,7 @@ $$(eval $$(call gb_Output_error,$(1) is not a valid group for installed librarie ...@@ -188,7 +188,7 @@ $$(eval $$(call gb_Output_error,$(1) is not a valid group for installed librarie
endif endif
$(call gb_Helper__register_libraries,$(1),$(3)) $(call gb_Helper__register_libraries,$(1),$(3))
gb_Library_MODULE_$(2) += $(filter-out $(gb_MERGEDLIBS) $(gb_URELIBS),$(3)) gb_Library_MODULE_$(2) += $(filter-out $(gb_MERGEDLIBS),$(3))
$(if $(filter UNOVERLIBS RTVERLIBS,$(1)),\ $(if $(filter UNOVERLIBS RTVERLIBS,$(1)),\
gb_SdkLinkLibrary_MODULE_sdk += $(3)) gb_SdkLinkLibrary_MODULE_sdk += $(3))
......
...@@ -136,7 +136,7 @@ $(call gb_Library_get_clean_target,$(gb_Library__get_name)) : \ ...@@ -136,7 +136,7 @@ $(call gb_Library_get_clean_target,$(gb_Library__get_name)) : \
$(call gb_ComponentTarget_get_clean_target,$(2)) $(call gb_ComponentTarget_get_clean_target,$(2))
endef endef
gb_Library__get_name = $(if $(filter $(1),$(gb_MERGEDLIBS)),merged,$(if $(filter $(1),$(gb_URELIBS)),urelibs,$(1))) gb_Library__get_name = $(if $(filter $(1),$(gb_MERGEDLIBS)),merged,$(1))
gb_Library__get_componentprefix = \ gb_Library__get_componentprefix = \
$(call gb_Library__get_layer_componentprefix,$(call \ $(call gb_Library__get_layer_componentprefix,$(call \
......
...@@ -483,7 +483,7 @@ define gb_LinkTarget__command_impl ...@@ -483,7 +483,7 @@ define gb_LinkTarget__command_impl
$(if $(findstring concat-deps,$(2)),,\ $(if $(findstring concat-deps,$(2)),,\
$(call gb_LinkTarget__command_dep,$(call gb_LinkTarget_get_dep_target,$(2)).tmp,$(2)) \ $(call gb_LinkTarget__command_dep,$(call gb_LinkTarget_get_dep_target,$(2)).tmp,$(2)) \
mv $(call gb_LinkTarget_get_dep_target,$(2)).tmp $(call gb_LinkTarget_get_dep_target,$(2)))) mv $(call gb_LinkTarget_get_dep_target,$(2)).tmp $(call gb_LinkTarget_get_dep_target,$(2))))
$(if $(filter $(2),$(foreach lib,$(gb_MERGEDLIBS) $(gb_URELIBS),$(call gb_Library__get_workdir_linktargetname,$(lib)))),\ $(if $(filter $(2),$(foreach lib,$(gb_MERGEDLIBS),$(call gb_Library__get_workdir_linktargetname,$(lib)))),\
$(if $(filter $(true),$(call gb_LinkTarget__is_build_lib,$(2))),\ $(if $(filter $(true),$(call gb_LinkTarget__is_build_lib,$(2))),\
$(call gb_LinkTarget__command,$(1),$(2)),\ $(call gb_LinkTarget__command,$(1),$(2)),\
mkdir -p $(dir $(1)) && echo invalid > $(1) \ mkdir -p $(dir $(1)) && echo invalid > $(1) \
...@@ -796,8 +796,8 @@ define gb_LinkTarget__use_libraries ...@@ -796,8 +796,8 @@ define gb_LinkTarget__use_libraries
# used by bin/module-deps.pl # used by bin/module-deps.pl
ifneq ($(ENABLE_PRINT_DEPS),) ifneq ($(ENABLE_PRINT_DEPS),)
# exclude libraries in Library_merged Librery_urelibs # exclude libraries in Library_merged
ifeq ($(filter $(1),$(foreach lib,$(gb_MERGEDLIBS) $(gb_URELIBS),$(call gb_Library_get_linktarget,$(lib)))),) ifeq ($(filter $(1),$(foreach lib,$(gb_MERGEDLIBS),$(call gb_Library_get_linktarget,$(lib)))),)
$$(eval $$(call gb_PrintDeps_info,$(4),$(3))) $$(eval $$(call gb_PrintDeps_info,$(4),$(3)))
endif endif
endif endif
...@@ -869,10 +869,7 @@ $(call gb_LinkTarget__use_libraries,$(1),$(2),$(strip \ ...@@ -869,10 +869,7 @@ $(call gb_LinkTarget__use_libraries,$(1),$(2),$(strip \
$(if $(filter $(gb_MERGEDLIBS),$(2)), \ $(if $(filter $(gb_MERGEDLIBS),$(2)), \
$(if $(call gb_LinkTarget__is_merged,$(1)), \ $(if $(call gb_LinkTarget__is_merged,$(1)), \
$(filter $(gb_MERGEDLIBS),$(2)), merged)) \ $(filter $(gb_MERGEDLIBS),$(2)), merged)) \
$(if $(filter $(gb_URELIBS),$(2)), \ $(filter-out $(gb_MERGEDLIBS),$(2)) \
$(if $(filter $(1),$(foreach lib,$(gb_URELIBS),$(call gb_Library_get_linktarget,$(lib)))), \
$(filter $(gb_URELIBS),$(2)), urelibs)) \
$(filter-out $(gb_MERGEDLIBS) $(gb_URELIBS),$(2)) \
),$(4)) ),$(4))
endif endif
......
...@@ -47,7 +47,7 @@ $(call gb_Helper_install_final, \ ...@@ -47,7 +47,7 @@ $(call gb_Helper_install_final, \
endef endef
define gb_Pagein_add_object define gb_Pagein_add_object
$(call gb_Pagein_get_target,$(1)) : OBJECTS += $(filter-out $(gb_URELIBS) $(gb_MERGEDLIBS),$(2)) $(call gb_Pagein_get_target,$(1)) : OBJECTS += $(filter-out $(gb_MERGEDLIBS),$(2))
endef endef
......
...@@ -158,28 +158,6 @@ gb_MERGEDLIBS := \ ...@@ -158,28 +158,6 @@ gb_MERGEDLIBS := \
xstor \ xstor \
$(if $(filter ALL,$(MERGELIBS)),$(gb_EXTRAMERGEDLIBS)) $(if $(filter ALL,$(MERGELIBS)),$(gb_EXTRAMERGEDLIBS))
ifneq (,$(URELIBS))
gb_URELIBS := \
bootstrap \
cppu \
cppuhelper \
introspection \
$(if $(ENABLE_JAVA),jvmaccess) \
$(if $(ENABLE_JAVA),jvmfwk) \
reflection \
reg \
sal \
salhelper \
stocservices \
store \
unoidl \
xmlreader \
$(if $(filter ALL,$(MERGELIBS)), \
purpenvhelper \
)
endif
endif endif
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment