diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2021-03-23 01:04:00 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2021-03-23 01:04:00 +0000 |
commit | 98b8c074e445df3ab7cd3d3438cd87a28cb0fb0d (patch) | |
tree | 670b2008ff8484c5b755006915334d675da27b4d | |
parent | 59c31dd29f5ea3de3859a3335c9e8049757a87d2 (diff) | |
parent | 6b06a8e25bc1761789f24ae77321ce2b0a16a186 (diff) | |
download | pdfium-android12-d1-s5-release.tar.gz |
Snap for 7227300 from 6b06a8e25bc1761789f24ae77321ce2b0a16a186 to sc-d1-releaseandroid-12.0.0_r7android-12.0.0_r6android-12.0.0_r5android-12.0.0_r4android-12.0.0_r15android-12.0.0_r14android-12.0.0_r13android-12.0.0_r12android12-d1-s6-releaseandroid12-d1-s5-releaseandroid12-d1-s4-releaseandroid12-d1-s3-releaseandroid12-d1-s2-releaseandroid12-d1-s1-releaseandroid12-d1-release
Change-Id: I7e8ecbc4ebbc9f0d26d0dfbde8b21da6f6c68639
-rw-r--r-- | Android.bp | 12 | ||||
-rw-r--r-- | third_party/Android.bp | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp index 750884b16..4af25048f 100644 --- a/Android.bp +++ b/Android.bp @@ -55,6 +55,14 @@ cc_defaults { "-DOPJ_STATIC", "-DPNG_PREFIX", "-DPNG_USE_READ_MACROS", + + // Do not export functions by default. Export only functions annotated + // with FPDF_EXPORT. + "-fvisibility=hidden", + + // Macro definitions to enable FPDF_EXPORT. + "-DCOMPONENT_BUILD", + "-DFPDF_IMPLEMENTATION", ], arch: { @@ -143,6 +151,10 @@ cc_library_shared { "libz", ], + ldflags: [ + "-Wl,-icf=all", + ], + export_include_dirs: ["public"], } diff --git a/third_party/Android.bp b/third_party/Android.bp index 6571fb1bd..3fcb08d80 100644 --- a/third_party/Android.bp +++ b/third_party/Android.bp @@ -80,6 +80,7 @@ cc_library_static { cc_library_static { name: "libpdfium-libopenjpeg2", defaults: ["pdfium-third-party"], + visibility: ["//cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8332"], exclude_srcs: [ "libopenjpeg20/t1_generate_luts.c", |