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_UnpackedTarball_UnpackedTarball
,expat
))
12 $(eval
$(call gb_UnpackedTarball_set_tarball
,expat
,$(EXPAT_TARBALL
)))
14 $(eval
$(call gb_UnpackedTarball_add_patches
,expat
,\
15 external
/expat
/expat-2.1
.0.patch \
18 # This is a bit hackish.
20 # When building for Windows (as 32-bit) we need to build it twice: as
21 # 32- and 64-bit code, to be able to produce a 64-bit Explorer
22 # ("shell") extension that is used when the 32-bit LibreOffice is
23 # installed on a 64-bit OS.
25 $(eval
$(call gb_UnpackedTarball_set_post_action
,expat
,\
26 $(if
$(filter $(BUILD_X64
),TRUE
), \
27 cp lib
/xmlparse.c lib
/xmlparse_x64.c
&& \
28 cp lib
/xmltok.c lib
/xmltok_x64.c
&& \
29 cp lib
/xmlrole.c lib
/xmlrole_x64.c
) \
32 # vim: set noet sw=4 ts=4: