aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp12
1 files changed, 12 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"],
}