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/.
11 pdfium_patches
+= ubsan.patch
12 # Fixes build on our baseline.
13 pdfium_patches
+= build.patch
.1
14 # Avoids Windows 8 build dependency.
15 pdfium_patches
+= windows7.patch
.1
16 pdfium_patches
+= c
++20-comparison.patch
18 pdfium_patches
+= constexpr-template.patch
20 $(eval
$(call gb_UnpackedTarball_UnpackedTarball
,pdfium
))
22 $(eval
$(call gb_UnpackedTarball_set_tarball
,pdfium
,$(PDFIUM_TARBALL
)))
24 $(eval
$(call gb_UnpackedTarball_set_patchlevel
,pdfium
,0))
26 $(eval
$(call gb_UnpackedTarball_add_patches
,pdfium
,\
27 $(foreach patch
,$(pdfium_patches
),external
/pdfium
/$(patch
)) \
30 $(eval
$(call gb_UnpackedTarball_set_post_action
,pdfium
,\
31 mv third_party
/bigint
/BigInteger.
cc third_party
/bigint
/BigInteger.
cpp && \
32 mv third_party
/bigint
/BigIntegerUtils.
cc third_party
/bigint
/BigIntegerUtils.
cpp && \
33 mv third_party
/bigint
/BigUnsigned.
cc third_party
/bigint
/BigUnsigned.
cpp && \
34 mv third_party
/bigint
/BigUnsignedInABase.
cc third_party
/bigint
/BigUnsignedInABase.
cpp && \
35 mv third_party
/base
/debug
/alias.
cc third_party
/base
/debug
/alias.
cpp && \
36 mv third_party
/base
/memory
/aligned_memory.
cc third_party
/base
/memory
/aligned_memory.
cpp && \
37 mv third_party
/base
/win
/win_util.
cc third_party
/base
/win
/win_util.
cpp && \
38 mv third_party
/libopenjpeg
/opj_malloc.
cc third_party
/libopenjpeg
/opj_malloc.
cpp && \
39 mv third_party
/abseil-cpp
/absl
/types
/bad_optional_access.
cc third_party
/abseil-cpp
/absl
/types
/bad_optional_access.
cpp && \
40 mv third_party
/abseil-cpp
/absl
/types
/bad_variant_access.
cc third_party
/abseil-cpp
/absl
/types
/bad_variant_access.
cpp \
43 # vim: set noet sw=4 ts=4: