Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / external / pdfium / UnpackedTarball_pdfium.mk
blob8f493ea3a0d6bbeaf675e3dd4a2860f1b2a2ce25
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 pdfium_patches :=
11 pdfium_patches += visibility.patch.1
12 pdfium_patches += ubsan.patch
13 # Fixes build on our baseline.
14 pdfium_patches += build.patch.1
15 # Avoids Windows 8 build dependency.
16 pdfium_patches += windows7.patch.1
18 $(eval $(call gb_UnpackedTarball_UnpackedTarball,pdfium))
20 $(eval $(call gb_UnpackedTarball_set_tarball,pdfium,$(PDFIUM_TARBALL)))
22 $(eval $(call gb_UnpackedTarball_set_patchlevel,pdfium,0))
24 $(eval $(call gb_UnpackedTarball_add_patches,pdfium,\
25 $(foreach patch,$(pdfium_patches),external/pdfium/$(patch)) \
28 # Upstream build system generates this, but it's not really a generated file.
29 # Stripped down version from <https://dxr.mozilla.org/mozilla-central/source/ipc/chromium/src/build/build_config.h>.
30 $(eval $(call gb_UnpackedTarball_add_file,pdfium,build/build_config.h,external/pdfium/configs/build_config.h))
32 $(eval $(call gb_UnpackedTarball_set_post_action,pdfium,\
33 mv third_party/bigint/BigInteger.cc third_party/bigint/BigInteger.cpp && \
34 mv third_party/bigint/BigIntegerUtils.cc third_party/bigint/BigIntegerUtils.cpp && \
35 mv third_party/bigint/BigUnsigned.cc third_party/bigint/BigUnsigned.cpp && \
36 mv third_party/bigint/BigUnsignedInABase.cc third_party/bigint/BigUnsignedInABase.cpp && \
37 mv third_party/base/allocator/partition_allocator/address_space_randomization.cc third_party/base/allocator/partition_allocator/address_space_randomization.cpp && \
38 mv third_party/base/allocator/partition_allocator/page_allocator.cc third_party/base/allocator/partition_allocator/page_allocator.cpp && \
39 mv third_party/base/allocator/partition_allocator/partition_alloc.cc third_party/base/allocator/partition_allocator/partition_alloc.cpp && \
40 mv third_party/base/allocator/partition_allocator/spin_lock.cc third_party/base/allocator/partition_allocator/spin_lock.cpp && \
41 mv third_party/base/debug/alias.cc third_party/base/debug/alias.cpp && \
42 mv third_party/base/allocator/partition_allocator/oom_callback.cc third_party/base/allocator/partition_allocator/oom_callback.cpp && \
43 mv third_party/base/allocator/partition_allocator/partition_bucket.cc third_party/base/allocator/partition_allocator/partition_bucket.cpp && \
44 mv third_party/base/allocator/partition_allocator/partition_oom.cc third_party/base/allocator/partition_allocator/partition_oom.cpp && \
45 mv third_party/base/allocator/partition_allocator/partition_page.cc third_party/base/allocator/partition_allocator/partition_page.cpp && \
46 mv third_party/base/allocator/partition_allocator/partition_root_base.cc third_party/base/allocator/partition_allocator/partition_root_base.cpp && \
47 mv third_party/base/win/win_util.cc third_party/base/win/win_util.cpp \
50 # vim: set noet sw=4 ts=4: