summaryrefslogtreecommitdiff
path: root/expat/UnpackedTarball_expat.mk
blob: ea9d41f125dbf73d5f58dec1a7b58c52d8142590 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# -*- 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_UnpackedTarball_UnpackedTarball,expat))

$(eval $(call gb_UnpackedTarball_set_tarball,expat,$(EXPAT_TARBALL)))

$(eval $(call gb_UnpackedTarball_add_patches,expat,\
	expat/expat-2.1.0.patch \
))

# This is a bit hackish
# we need to compile it twice:
# with -DXML_UNICODE and without.

# This is a bit hackish too ;-)
# on windows 64 bit platform we need to link it twice:
# with $(LINK_X64_BINARY) and with $(gb_LINK).
$(eval $(call gb_UnpackedTarball_set_post_action,expat,\
	$(GNUCOPY) lib/xmlparse.c lib/unicode_xmlparse.c \
	$(if $(filter $(BUILD_X64),TRUE),            && \
	$(GNUCOPY) lib/xmlparse.c lib/xmlparse_x64.c && \
	$(GNUCOPY) lib/xmltok.c lib/xmltok_x64.c     && \
	$(GNUCOPY) lib/xmlrole.c lib/xmlrole_x64.c)\
))

# vim: set noet sw=4 ts=4: