Version 7.6.7.2, tag libreoffice-7.6.7.2
[LibreOffice.git] / external / expat / UnpackedTarball_expat.mk
blob5d4f41f6d147387446542a42238f7827d06b8e60
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_update_autoconf_configs,expat,conftools))
16 $(eval $(call gb_UnpackedTarball_add_patches,expat,\
17 external/expat/expat-winapi.patch \
20 # This is a bit hackish.
22 # When building for Windows (as 32-bit) we need to build it twice: as
23 # 32- and 64-bit code, to be able to produce a 64-bit Explorer
24 # ("shell") extension that is used when the 32-bit LibreOffice is
25 # installed on a 64-bit OS.
27 $(eval $(call gb_UnpackedTarball_set_post_action,expat,\
28 $(if $(filter $(BUILD_X64),TRUE), \
29 cp lib/xmlparse.c lib/xmlparse_x64.c && \
30 cp lib/xmltok.c lib/xmltok_x64.c && \
31 cp lib/xmlrole.c lib/xmlrole_x64.c) \
34 # vim: set noet sw=4 ts=4: