summaryrefslogtreecommitdiff
path: root/external/nss/UnpackedTarball_nss.mk
blob: be801d76c62e7f9bd05480a730a2baa59707249c (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
34
# -*- 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,nss))

$(eval $(call gb_UnpackedTarball_set_tarball,nss,$(NSS_TARBALL)))

$(eval $(call gb_UnpackedTarball_add_patches,nss,\
	external/nss/nss.patch \
	external/nss/nss.aix.patch \
	external/nss/nss-3.13.5-zlib-werror.patch \
	external/nss/nss_macosx.patch \
	external/nss/nss-linux-x86.patch.0 \
	external/nss/nss-win32-make.patch.1 \
	$(if $(filter WNTMSC,$(OS)$(COM)),external/nss/nss.windows.patch) \
	$(if $(filter WNTGCC,$(OS)$(COM)),external/nss/nspr-4.9-build.patch.3 \
		external/nss/nss-3.13.3-build.patch.3 \
		external/nss/nss.mingw.patch.3) \
        external/nss/nspr-build-config.patch \
))

ifeq ($(COM_GCC_IS_CLANG)$(filter -fsanitize=address,$(CC)),TRUE-fsanitize=address)
$(eval $(call gb_UnpackedTarball_add_patches,nss,\
	external/nss/asan.patch.1 \
))
endif

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