diff options
author | Tao Bao <tbao@google.com> | 2019-09-23 08:58:44 -0700 |
---|---|---|
committer | Tao Bao <tbao@google.com> | 2019-09-23 09:17:52 -0700 |
commit | 71c35b9fbaac7f6bbbc175e066564b9509b3bde8 (patch) | |
tree | 71dc99c8da212791a023464d1a6f51d0b7ca086d /applypatch | |
parent | 785d0b4efad5999ae38c5ff90e40a97e843f12a8 (diff) |
applypatch: Use static libs for libbrotli and libbz.
Prior to this CL, applypatch was the only user of libbrotli.so and
libbz.so (update_engine and puffin have been using the static versions).
This CL switches applypatch to their static versions to save space in
/system.
Sizes prior to the change (aosp_taimen-userdebug):
/system/bin/applypatch 91296
/system/lib64/libbrotli.so 688536
/system/lib64/libbz.so 79560
After:
/system/bin/applypatch 272368
Test: `m dist`
Test: Check the built blueline-userdebug target. libbrotli.so and
libbz.so are not installed.
Change-Id: I08422a0d5a287bbac69aa9f6cfd9c97e5b2e9078
Diffstat (limited to 'applypatch')
-rw-r--r-- | applypatch/Android.bp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/applypatch/Android.bp b/applypatch/Android.bp index ae7e9c5c..55d18520 100644 --- a/applypatch/Android.bp +++ b/applypatch/Android.bp @@ -106,13 +106,15 @@ cc_binary { "libapplypatch", "libedify", "libotautil", + + // External dependencies. "libbspatch", + "libbrotli", + "libbz", ], shared_libs: [ "libbase", - "libbrotli", - "libbz", "libcrypto", "liblog", "libz", |