diff options
author | Peter Foley <pefoley2@verizon.net> | 2013-02-05 17:19:11 -0500 |
---|---|---|
committer | Peter Foley <pefoley2@verizon.net> | 2013-02-07 22:33:16 +0000 |
commit | b9d6c7a48cbe3573a2010811d8671d3e5ff30e2a (patch) | |
tree | b08989fd5eeb63691f914e8b393d80151588c0f7 /libxml2/ExternalPackage_xml2.mk | |
parent | 7e2f34a3172a756a0fd70cae1294250206945a6e (diff) |
convert libxml2 to gbuild and add to tail_build
Change-Id: Ie6ae2150e1f011e17034abcace18c5967b4dacf5
Reviewed-on: https://gerrit.libreoffice.org/2023
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Peter Foley <pefoley2@verizon.net>
Diffstat (limited to 'libxml2/ExternalPackage_xml2.mk')
-rw-r--r-- | libxml2/ExternalPackage_xml2.mk | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/libxml2/ExternalPackage_xml2.mk b/libxml2/ExternalPackage_xml2.mk new file mode 100644 index 000000000000..7eafa376a107 --- /dev/null +++ b/libxml2/ExternalPackage_xml2.mk @@ -0,0 +1,43 @@ +# -*- 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,xml2)) + +$(eval $(call gb_ExternalPackage_use_external_project,xml2,xml2)) + +ifneq ($(COM),MSC) +$(eval $(call gb_ExternalPackage_add_file,xml2,bin/xml2-config,xml2-config)) +endif + +ifeq ($(OS),MACOSX) +$(eval $(call gb_ExternalPackage_add_file,xml2,lib/libxml2.2.dylib,.libs/libxml2.2.7.6.dylib)) +$(eval $(call gb_ExternalPackage_add_file,xml2,lib/libxml2.dylib,.libs/libxml2.2.7.6.dylib)) +$(eval $(call gb_ExternalPackage_add_file,xml2,bin/xmllint,.libs/xmllint)) +else ifeq ($(DISABLE_DYNLOADING),TRUE) +$(eval $(call gb_ExternalPackage_add_file,xml2,lib/libxml2.a,libxml2/.libs/libxml2.a)) +ifneq ($(CROSS_COMPILING),YES) +$(eval $(call gb_ExternalPackage_add_file,xml2,bin/xmllint,.libs/xmllint)) +endif +else ifeq ($(OS),WNT) +ifeq ($(COM),GCC) +$(eval $(call gb_ExternalPackage_add_file,xml2,lib/libxml2.dll.a,.libs/libxml2.dll.a)) +$(eval $(call gb_ExternalPackage_add_file,xml2,bin/libxml2.dll,.libs/libxml2.dll)) +$(eval $(call gb_ExternalPackage_add_file,xml2,bin/xmllint.exe,.libs/xmllint.exe)) +else # COM=MSC +$(eval $(call gb_ExternalPackage_add_file,xml2,lib/libxml2.lib,win32/bin.msvc/libxml2.lib)) +$(eval $(call gb_ExternalPackage_add_file,xml2,bin/libxml2.dll,win32/bin.msvc/libxml2.dll)) +$(eval $(call gb_ExternalPackage_add_file,xml2,bin/xmllint.exe,win32/bin.msvc/xmllint.exe)) +endif +else # OS!=WNT +$(eval $(call gb_ExternalPackage_add_file,xml2,lib/libxml2.so.2.7.6,.libs/libxml2.so.2.7.6)) +$(eval $(call gb_ExternalPackage_add_file,xml2,lib/libxml2.so.2,.libs/libxml2.so.2.7.6)) +$(eval $(call gb_ExternalPackage_add_file,xml2,lib/libxml2.so,.libs/libxml2.so.2.7.6)) +$(eval $(call gb_ExternalPackage_add_file,xml2,bin/xmllint,.libs/xmllint)) +endif +# vim: set noet sw=4 ts=4: |