summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hoisie <hoisie@google.com>2024-01-12 20:53:52 +0000
committerMichael Hoisie <hoisie@google.com>2024-01-12 20:55:47 +0000
commit87316350cef591b9f567a5e79705962d9496be9e (patch)
tree7df6335398f2e8fb89829c6048dd3537e7c8e1ed
parent765488b0d0e241aed5b3810cb887b2dfa827ba98 (diff)
downloadbase-87316350cef591b9f567a5e79705962d9496be9e.tar.gz
Strip RNG libraries
This results in significant file size reductions: * librobolectric-nativeruntime.so: 118MiB -> 16MiB * librobolectric-nativeruntime.dll: 162MiB -> 13MiB Test: m robolectric_native_runtime dist Change-Id: Ida323dca4404ed674d706c71c16c393a39191450
-rw-r--r--core/jni/Android.bp7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/jni/Android.bp b/core/jni/Android.bp
index c46c902f10d4..3003b7be58c1 100644
--- a/core/jni/Android.bp
+++ b/core/jni/Android.bp
@@ -398,6 +398,9 @@ cc_library_shared {
cflags: [
"-Wno-unused-parameter",
],
+ strip: {
+ keep_symbols: true,
+ },
target: {
darwin: {
host_ldlibs: [
@@ -428,10 +431,10 @@ cc_library_shared {
"android_database_SQLiteConnection.cpp",
"android_database_SQLiteGlobal.cpp",
"android_database_SQLiteDebug.cpp",
- ],
+ ],
},
windows: {
- enabled: true,
+ enabled: true,
},
host: {
cflags: [