Kaydet (Commit) 64ea9944 authored tarafından Michael Stahl's avatar Michael Stahl

scp2: move libxml2 to AutoInstall

Change-Id: I62f2f654ac661ebf266b7b5cf70728a616c9b50f
üst e759269e
...@@ -868,6 +868,14 @@ gb_ExternalProject__use_libxml2:= ...@@ -868,6 +868,14 @@ gb_ExternalProject__use_libxml2:=
else # !SYSTEM_LIBXML else # !SYSTEM_LIBXML
$(eval $(call gb_Helper_register_packages_for_install,ure,\
xml2 \
))
$(eval $(call gb_Helper_register_packages_for_install,ooo,\
xml2_win32 \
))
define gb_LinkTarget__use_libxml2 define gb_LinkTarget__use_libxml2
$(call gb_LinkTarget_use_package,$(1),xml2) $(call gb_LinkTarget_use_package,$(1),xml2)
$(call gb_LinkTarget_set_include,$(1),\ $(call gb_LinkTarget_set_include,$(1),\
......
...@@ -17,12 +17,8 @@ $(eval $(call gb_ExternalPackage_add_file,xml2,$(LIBO_URE_LIB_FOLDER)/libxml2.2. ...@@ -17,12 +17,8 @@ $(eval $(call gb_ExternalPackage_add_file,xml2,$(LIBO_URE_LIB_FOLDER)/libxml2.2.
else ifeq ($(OS),WNT) else ifeq ($(OS),WNT)
ifeq ($(COM),GCC) ifeq ($(COM),GCC)
$(eval $(call gb_ExternalPackage_add_file,xml2,$(LIBO_URE_LIB_FOLDER)/libxml2.dll,.libs/libxml2.dll)) $(eval $(call gb_ExternalPackage_add_file,xml2,$(LIBO_URE_LIB_FOLDER)/libxml2.dll,.libs/libxml2.dll))
$(eval $(call gb_ExternalPackage_add_file,xml2,$(LIBO_LIB_FOLDER)/libxml2.dll,.libs/libxml2.dll))
else # COM=MSC else # COM=MSC
$(eval $(call gb_ExternalPackage_add_file,xml2,$(LIBO_URE_LIB_FOLDER)/libxml2.dll,win32/bin.msvc/libxml2.dll)) $(eval $(call gb_ExternalPackage_add_file,xml2,$(LIBO_URE_LIB_FOLDER)/libxml2.dll,win32/bin.msvc/libxml2.dll))
# duplicate copy next to executables due to idiotic Win32 DLL search order
# see 5a5dab5167d136c315e81448ea8eca59e60067da
$(eval $(call gb_ExternalPackage_add_file,xml2,$(LIBO_LIB_FOLDER)/libxml2.dll,win32/bin.msvc/libxml2.dll))
endif endif
else # OS!=WNT else # OS!=WNT
$(eval $(call gb_ExternalPackage_add_file,xml2,$(LIBO_URE_LIB_FOLDER)/libxml2.so.2,.libs/libxml2.so.2.9.1)) $(eval $(call gb_ExternalPackage_add_file,xml2,$(LIBO_URE_LIB_FOLDER)/libxml2.so.2,.libs/libxml2.so.2.9.1))
......
# -*- 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_ExternalPackage_ExternalPackage,xml2_win32,xml2))
$(eval $(call gb_ExternalPackage_use_external_project,xml2_win32,xml2))
# duplicate copy next to executables due to stupid Win32 DLL search order
# where a libxml2.dll in C:\Windows is loaded before one in URE lib dir
# see 5a5dab5167d136c315e81448ea8eca59e60067da
ifeq ($(OS),WNT)
ifeq ($(COM),GCC)
$(eval $(call gb_ExternalPackage_add_file,xml2_win32,$(LIBO_LIB_FOLDER)/libxml2.dll,.libs/libxml2.dll))
else # COM=MSC
$(eval $(call gb_ExternalPackage_add_file,xml2_win32,$(LIBO_LIB_FOLDER)/libxml2.dll,win32/bin.msvc/libxml2.dll))
endif
endif # OS=WNT
# vim: set noet sw=4 ts=4:
...@@ -11,6 +11,7 @@ $(eval $(call gb_Module_Module,libxml2)) ...@@ -11,6 +11,7 @@ $(eval $(call gb_Module_Module,libxml2))
$(eval $(call gb_Module_add_targets,libxml2,\ $(eval $(call gb_Module_add_targets,libxml2,\
ExternalPackage_xml2 \ ExternalPackage_xml2 \
ExternalPackage_xml2_win32 \
ExternalProject_xml2 \ ExternalProject_xml2 \
UnpackedTarball_xml2 \ UnpackedTarball_xml2 \
)) ))
......
...@@ -61,7 +61,6 @@ Module gid_Module_Root_Brand ...@@ -61,7 +61,6 @@ Module gid_Module_Root_Brand
gid_Brand_File_Bin_Unopkgcom, gid_Brand_File_Bin_Unopkgcom,
gid_Brand_File_Bin_Unopkgexe, gid_Brand_File_Bin_Unopkgexe,
gid_Brand_File_Bin_Unopkg, gid_Brand_File_Bin_Unopkg,
gid_Brand_File_Bin_Libxml2,
gid_Brand_File_Bmp_IntroAboutShell, gid_Brand_File_Bmp_IntroAboutShell,
gid_Brand_File_Bmp_IntroAboutShell_custom, gid_Brand_File_Bmp_IntroAboutShell_custom,
gid_Brand_File_Desktophelper_Txt, gid_Brand_File_Desktophelper_Txt,
...@@ -616,24 +615,6 @@ File gid_Brand_File_Bin_Unopkg ...@@ -616,24 +615,6 @@ File gid_Brand_File_Bin_Unopkg
Name = "unopkg.bin"; Name = "unopkg.bin";
End End
// Due to Windows DLL search order, OOo executables might pick up a libxml2 DLL
// from a Windows system directory instead of the one from the URE; to avoid
// problems, as a HACK, for now a copy of the URE libxml2 DLL is placed next to
// the OOo executables (where it takes precedence even over DLLs from the
// Windows system directory):
#if defined WNT && !defined SYSTEM_LIBXML
File gid_Brand_File_Bin_Libxml2
TXT_FILE_BODY;
Dir = gid_Brand_Dir_Program;
#if defined _gcc3
Name = SCP2_URE_DL_NORMAL("libxml2-2");
#else
Name = SCP2_URE_DL_NORMAL("libxml2");
#endif
Styles = (PACKED);
End
#endif
#if defined ENABLE_NPAPI_INTO_BROWSER #if defined ENABLE_NPAPI_INTO_BROWSER
File gid_Brand_File_Lib_Npsoplugin File gid_Brand_File_Lib_Npsoplugin
BIN_FILE_BODY; BIN_FILE_BODY;
......
...@@ -370,25 +370,6 @@ End ...@@ -370,25 +370,6 @@ End
#endif #endif
#if !defined SYSTEM_LIBXML
File gid_File_Dl_Libxml2
LIB_FILE_BODY;
Dir = SCP2_URE_DL_DIR;
#if defined WNT
#if defined _gcc3
Name = SCP2_URE_DL_NORMAL("libxml2-2");
#else
Name = SCP2_URE_DL_NORMAL("libxml2");
#endif
#elif defined MACOSX
Name = SCP2_URE_DL_NORMAL("xml2.2");
#else
Name = SCP2_URE_DL_VER("xml2", "2");
#endif
Styles = (PACKED);
End
#endif
#ifdef AIX #ifdef AIX
Unixlink gid_Unixlink_File_Dl_Libxml2 Unixlink gid_Unixlink_File_Dl_Libxml2
BIN_FILE_BODY; BIN_FILE_BODY;
...@@ -488,7 +469,6 @@ Module gid_Module_Root_Ure_Hidden ...@@ -488,7 +469,6 @@ Module gid_Module_Root_Ure_Hidden
gid_Unixlink_File_Dl_Salhelper, gid_Unixlink_File_Dl_Salhelper,
gid_File_Dl_Profile_Uno, gid_File_Dl_Profile_Uno,
gid_Unixlink_File_Dl_Rmcxt, gid_Unixlink_File_Dl_Rmcxt,
gid_File_Dl_Libxml2,
gid_File_Lib_Mingw_GccS_Ure, gid_File_Lib_Mingw_GccS_Ure,
gid_File_Lib_Mingw_Stdcpp_Ure, gid_File_Lib_Mingw_Stdcpp_Ure,
gid_File_Dl_Uwinapi, gid_File_Dl_Uwinapi,
......
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