summaryrefslogtreecommitdiffstats
path: root/applypatch/Android.mk
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-11-02 18:27:33 +0100
committerandroid-build-merger <android-build-merger@google.com>2016-11-02 18:27:33 +0100
commit24356d778f5188bc0e9e923c8b974f38cc514a1b (patch)
treeea0417bb61c4c927134be0cc07eae431ff7b68c9 /applypatch/Android.mk
parentMerge "Cleanup ReadArgs & ReadValueArgs usage" am: a9b252887c (diff)
parentMerge "applypatch: Add testcases for applypatch executable." (diff)
downloadandroid_bootable_recovery-24356d778f5188bc0e9e923c8b974f38cc514a1b.tar
android_bootable_recovery-24356d778f5188bc0e9e923c8b974f38cc514a1b.tar.gz
android_bootable_recovery-24356d778f5188bc0e9e923c8b974f38cc514a1b.tar.bz2
android_bootable_recovery-24356d778f5188bc0e9e923c8b974f38cc514a1b.tar.lz
android_bootable_recovery-24356d778f5188bc0e9e923c8b974f38cc514a1b.tar.xz
android_bootable_recovery-24356d778f5188bc0e9e923c8b974f38cc514a1b.tar.zst
android_bootable_recovery-24356d778f5188bc0e9e923c8b974f38cc514a1b.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)