summaryrefslogtreecommitdiffstats
path: root/applypatch/Android.mk
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-10-25 23:17:26 +0200
committerTao Bao <tbao@google.com>2016-11-01 22:40:14 +0100
commit36c35119526023c9e28ec22915b26b1bf7da6bc3 (patch)
tree35f2c84f96be62b67b4b9d4cc9bb5f7afc82cf40 /applypatch/Android.mk
parentMerge "applypatch: Switch the parameter of Value** to std::vector." (diff)
downloadandroid_bootable_recovery-36c35119526023c9e28ec22915b26b1bf7da6bc3.tar
android_bootable_recovery-36c35119526023c9e28ec22915b26b1bf7da6bc3.tar.gz
android_bootable_recovery-36c35119526023c9e28ec22915b26b1bf7da6bc3.tar.bz2
android_bootable_recovery-36c35119526023c9e28ec22915b26b1bf7da6bc3.tar.lz
android_bootable_recovery-36c35119526023c9e28ec22915b26b1bf7da6bc3.tar.xz
android_bootable_recovery-36c35119526023c9e28ec22915b26b1bf7da6bc3.tar.zst
android_bootable_recovery-36c35119526023c9e28ec22915b26b1bf7da6bc3.zip
Diffstat (limited to 'applypatch/Android.mk')
-rw-r--r--applypatch/Android.mk30
1 files changed, 25 insertions, 5 deletions
diff --git a/applypatch/Android.mk b/applypatch/Android.mk
index 9bbac4410..fa0fe8a37 100644
--- a/applypatch/Android.mk
+++ b/applypatch/Android.mk
@@ -68,21 +68,41 @@ LOCAL_STATIC_LIBRARIES += libcrypto libbz libz
LOCAL_CFLAGS := -Werror
include $(BUILD_HOST_STATIC_LIBRARY)
-# applypatch (executable)
+# libapplypatch_modes (static library)
# ===============================
include $(CLEAR_VARS)
LOCAL_CLANG := true
-LOCAL_SRC_FILES := main.cpp
+LOCAL_SRC_FILES := \
+ applypatch_modes.cpp
+LOCAL_MODULE := libapplypatch_modes
+LOCAL_C_INCLUDES := bootable/recovery
+LOCAL_STATIC_LIBRARIES := \
+ libapplypatch \
+ libbase \
+ libedify \
+ libcrypto
+LOCAL_CFLAGS := -Werror
+include $(BUILD_STATIC_LIBRARY)
+
+# applypatch (target executable)
+# ===============================
+include $(CLEAR_VARS)
+LOCAL_CLANG := true
+LOCAL_SRC_FILES := applypatch_main.cpp
LOCAL_MODULE := applypatch
-LOCAL_C_INCLUDES += bootable/recovery
-LOCAL_STATIC_LIBRARIES += \
+LOCAL_C_INCLUDES := bootable/recovery
+LOCAL_STATIC_LIBRARIES := \
+ libapplypatch_modes \
libapplypatch \
libbase \
libedify \
libotafault \
libcrypto \
libbz
-LOCAL_SHARED_LIBRARIES += libbase libz libcutils libc
+LOCAL_SHARED_LIBRARIES := \
+ libbase \
+ libz \
+ libcutils
LOCAL_CFLAGS := -Werror
include $(BUILD_EXECUTABLE)