summaryrefslogtreecommitdiff
path: root/libfec
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-08-13 22:42:55 -0700
committerTao Bao <tbao@google.com>2018-08-13 22:55:57 -0700
commit3882cf7985d67d7056bdd4f35116d33a71c2f539 (patch)
treee918e72f71d8f1b896ea829c2ac7195d215a4907 /libfec
parent782fc1dc14ea1bf9746d5010bcdd3380d5ab6ead (diff)
downloadextras-3882cf7985d67d7056bdd4f35116d33a71c2f539.tar.gz
libfec: Use commonly used shared libraries.
This helps reduce the size of libfec.so and the overall size of recovery image, as those libs are already installed on device. Bug: 112494634 Test: `m dist` with aosp_taimen-userdebug Test: `m -j bootimage` with aosp_taimen-userdebug. Check the size of `recovery/system/lib64/libfec.so`. Change-Id: I1c82ba6dcbb6f184fd9826b838af665cbfc06891
Diffstat (limited to 'libfec')
-rw-r--r--libfec/Android.bp17
1 files changed, 10 insertions, 7 deletions
diff --git a/libfec/Android.bp b/libfec/Android.bp
index 8c4c32d2..78f2fedd 100644
--- a/libfec/Android.bp
+++ b/libfec/Android.bp
@@ -13,16 +13,19 @@ cc_library {
cflags: ["-Wall", "-Werror", "-O3", "-D_LARGEFILE64_SOURCE"],
export_include_dirs: ["include"],
// Exported header include/fec/io.h includes crypto_utils headers.
- export_static_lib_headers: ["libcrypto_utils"],
+ export_shared_lib_headers: ["libcrypto_utils"],
- static_libs: [
- "libext4_utils",
- "libfec_rs",
- "libsquashfs_utils",
- "libcrypto_utils",
+ shared_libs: [
+ "libbase",
"libcrypto",
+ "libcrypto_utils",
"libcutils",
- "libbase",
+ "libext4_utils",
+ "libsquashfs_utils",
+ ],
+
+ static_libs: [
+ "libfec_rs",
],
target: {