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
+= visibility.patch
.1
12 # To support macOS 10.9 baseline.
13 pdfium_patches
+= macos.patch
.1
14 pdfium_patches
+= ubsan.patch
15 # Upstreamed as <https://pdfium-review.googlesource.com/4070>.
16 pdfium_patches
+= system-zlib.patch
.1
17 pdfium_patches
+= freetype.patch
.1
19 $(eval
$(call gb_UnpackedTarball_UnpackedTarball
,pdfium
))
21 $(eval
$(call gb_UnpackedTarball_set_tarball
,pdfium
,$(PDFIUM_TARBALL
)))
23 $(eval
$(call gb_UnpackedTarball_set_patchlevel
,pdfium
,0))
25 $(eval
$(call gb_UnpackedTarball_add_patches
,pdfium
,\
26 $(foreach patch
,$(pdfium_patches
),external
/pdfium
/$(patch
)) \
29 $(eval
$(call gb_UnpackedTarball_set_post_action
,pdfium
,\
30 mv third_party
/bigint
/BigInteger.
cc third_party
/bigint
/BigInteger.
cpp && \
31 mv third_party
/bigint
/BigIntegerUtils.
cc third_party
/bigint
/BigIntegerUtils.
cpp && \
32 mv third_party
/bigint
/BigUnsigned.
cc third_party
/bigint
/BigUnsigned.
cpp && \
33 mv third_party
/bigint
/BigUnsignedInABase.
cc third_party
/bigint
/BigUnsignedInABase.
cpp && \
34 mv third_party
/base
/allocator
/partition_allocator
/address_space_randomization.
cc third_party
/base
/allocator
/partition_allocator
/address_space_randomization.
cpp && \
35 mv third_party
/base
/allocator
/partition_allocator
/page_allocator.
cc third_party
/base
/allocator
/partition_allocator
/page_allocator.
cpp && \
36 mv third_party
/base
/allocator
/partition_allocator
/partition_alloc.
cc third_party
/base
/allocator
/partition_allocator
/partition_alloc.
cpp && \
37 mv third_party
/base
/allocator
/partition_allocator
/spin_lock.
cc third_party
/base
/allocator
/partition_allocator
/spin_lock.
cpp \
40 # vim: set noet sw=4 ts=4: