diff options
author | Tao Bao <tbao@google.com> | 2016-11-02 18:27:33 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-11-02 18:27:33 +0100 |
commit | 24356d778f5188bc0e9e923c8b974f38cc514a1b (patch) | |
tree | ea0417bb61c4c927134be0cc07eae431ff7b68c9 /applypatch/Android.mk | |
parent | Merge "Cleanup ReadArgs & ReadValueArgs usage" am: a9b252887c (diff) | |
parent | Merge "applypatch: Add testcases for applypatch executable." (diff) | |
download | android_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.mk | 30 |
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) |