From 3db3205b2ae760550fe93a0b50ae2656190d4844 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Tue, 10 Oct 2017 15:02:13 -0700 Subject: applypatch: Use shared libs for libbase/libcrypto/liblog/libziparchive. This reduces the size of /system/bin/applypatch by ~69KB (aosp_bullhead-userdebug). Also remove the unneeded libcutils dependency. Test: mmma bootable/recovery Test: Check that /system/bin/install-recovery.sh successfully installs the recovery image. Change-Id: I5063be9a9b7b8029d45ab5c2a7c45ef2cda81d26 --- applypatch/Android.mk | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/applypatch/Android.mk b/applypatch/Android.mk index 05d937004..5b92bade3 100644 --- a/applypatch/Android.mk +++ b/applypatch/Android.mk @@ -111,7 +111,6 @@ include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) LOCAL_SRC_FILES := applypatch_main.cpp LOCAL_MODULE := applypatch -LOCAL_C_INCLUDES := bootable/recovery LOCAL_STATIC_LIBRARIES := \ libapplypatch_modes \ libapplypatch \ @@ -119,15 +118,13 @@ LOCAL_STATIC_LIBRARIES := \ libotafault \ libotautil \ libbspatch \ - libbase \ - libziparchive \ - liblog \ - libcrypto \ libbz LOCAL_SHARED_LIBRARIES := \ libbase \ + libcrypto \ + liblog \ libz \ - libcutils + libziparchive LOCAL_CFLAGS := -Wall -Werror include $(BUILD_EXECUTABLE) -- cgit v1.2.3