diff options
author | Chris Wailes <chriswailes@google.com> | 2023-03-27 18:26:34 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2023-03-27 18:26:34 +0000 |
commit | 0ff9754b6e3b5964a93d5c5e28f321e27613a416 (patch) | |
tree | 22700b7942908bfcb5d082a1bc72b14242d84917 | |
parent | 1947abed99424e853b18a53741b739b1b0b1197c (diff) | |
parent | a1ccaeeed90fabd4d03c2e15ff542e7ac5b62b6a (diff) | |
download | beto-rust-0ff9754b6e3b5964a93d5c5e28f321e27613a416.tar.gz |
Merge "Use rlib deps for ukey2" into udc-dev
-rw-r--r-- | nearby/Android.bp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nearby/Android.bp b/nearby/Android.bp index 844b516..89bf331 100644 --- a/nearby/Android.bp +++ b/nearby/Android.bp @@ -110,7 +110,12 @@ rust_ffi_shared { srcs: ["connections/ukey2/ukey2_jni/src/lib.rs"], edition: "2021", features: ["openssl"], - rustlibs: [ + // Using rlibs instead of rustlibs here to minimize the size impact on the system image. Since + // most of the transitive dependencies are included only by this project for U, building this + // as a single dylib will be more space-efficient. As more Rust project gets added, this may + // change and it may be better for different projects to share the same dylib, especially for + // common projects like libjni and libprotobuf. + rlibs: [ "libcfg_if", "libcrypto_provider_openssl", "libjni", |