fix build
[LibreOffice.git] / external / libxml2 / ExternalPackage_libxml2.mk
blob799044575f9a302d30229440868656fe316a74d7
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval $(call gb_ExternalPackage_ExternalPackage,libxml2,libxml2))
12 $(eval $(call gb_ExternalPackage_use_external_project,libxml2,libxml2))
14 ifneq ($(DISABLE_DYNLOADING),TRUE)
15 ifeq ($(OS),MACOSX)
16 $(eval $(call gb_ExternalPackage_add_file,libxml2,$(LIBO_URE_LIB_FOLDER)/libxml2.2.dylib,.libs/libxml2.2.dylib))
17 else ifeq ($(OS),WNT)
18 ifeq ($(COM),GCC)
19 $(eval $(call gb_ExternalPackage_add_file,libxml2,$(LIBO_URE_LIB_FOLDER)/libxml2.dll,.libs/libxml2.dll))
20 else # COM=MSC
21 $(eval $(call gb_ExternalPackage_add_file,libxml2,$(LIBO_URE_LIB_FOLDER)/libxml2.dll,win32/bin.msvc/libxml2.dll))
22 endif
23 else # OS!=WNT
24 $(eval $(call gb_ExternalPackage_add_file,libxml2,$(LIBO_URE_LIB_FOLDER)/libxml2.so.2,.libs/libxml2.so.2.12.$(LIBXML_VERSION_MICRO)))
25 endif
26 endif # DISABLE_DYNLOADING
28 # vim: set noet sw=4 ts=4: