sc: factor out common code
[LibreOffice.git] / external / breakpad / UnpackedTarball_breakpad.mk
blobce553e3342516e924919809990d6dd682dd66351
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,breakpad))
12 $(eval $(call gb_UnpackedTarball_set_patchlevel,breakpad,0))
14 $(eval $(call gb_UnpackedTarball_set_tarball,breakpad,$(BREAKPAD_TARBALL)))
16 # external/breakpad/0001-Handle-race-between-ExceptionHandler-SignalHandler-a.patch upstreamed at
17 # <https://chromium-review.googlesource.com/c/breakpad/breakpad/+/1176811> "Handle race between
18 # ExceptionHandler::SignalHandler and ~ExceptionHandler";
19 # external/breakpad/SIGSTKSZ.patch upstreamed at
20 # <https://chromium-review.googlesource.com/c/breakpad/breakpad/+/3226470> "Adpat to SIGSTKSZ type
21 # in glibc 2.34":
23 ifneq ($(MSYSTEM),)
24 # use binary flag so patch from git-bash won't choke on mixed line-endings in patches
25 $(eval $(call gb_UnpackedTarball_set_patchflags,breakpad,--binary))
26 endif
28 $(eval $(call gb_UnpackedTarball_add_patches,breakpad,\
29 external/breakpad/breakpad-use-correct-http-header.patch.1 \
30 external/breakpad/breakpad-wshadow.patch.1 \
31 external/breakpad/breakpad-stackwalk.patch.1 \
32 external/breakpad/0001-Handle-race-between-ExceptionHandler-SignalHandler-a.patch.1 \
33 external/breakpad/c++20-allocator.patch \
34 external/breakpad/breakpad-dump_syms.patch.1 \
35 external/breakpad/breakpad-no-env.patch.1 \
36 external/breakpad/SIGSTKSZ.patch \
37 external/breakpad/sanitizer.patch \
38 external/breakpad/include.patch \
41 $(eval $(call gb_UnpackedTarball_add_files,breakpad,src/tools/windows/dump_syms,\
42 external/breakpad/dump_syms.vcxproj \
43 external/breakpad/dump_syms.sln \
46 ifeq ($(COM_IS_CLANG),TRUE)
47 ifneq ($(filter -fsanitize=%,$(CC)),)
48 $(eval $(call gb_UnpackedTarball_add_patches,breakpad, \
49 external/breakpad/ubsan.patch \
51 endif
52 endif
54 # vim: set noet sw=4 ts=4: