summaryrefslogtreecommitdiffstats
path: root/applypatch/Android.mk
diff options
context:
space:
mode:
authorSen Jiang <senj@google.com>2016-01-29 05:38:56 +0100
committerandroid-build-merger <android-build-merger@google.com>2016-01-29 05:38:56 +0100
commit725833e024211012fd7bf6c2af9c781b4a289fbf (patch)
treea86aef36dcf55b7eeb6a81ad1a0352e0f6472885 /applypatch/Android.mk
parentMerge "edify: accept long string literal." (diff)
parentMerge "applypatch: Compile libimgpatch for target and host." (diff)
downloadandroid_bootable_recovery-725833e024211012fd7bf6c2af9c781b4a289fbf.tar
android_bootable_recovery-725833e024211012fd7bf6c2af9c781b4a289fbf.tar.gz
android_bootable_recovery-725833e024211012fd7bf6c2af9c781b4a289fbf.tar.bz2
android_bootable_recovery-725833e024211012fd7bf6c2af9c781b4a289fbf.tar.lz
android_bootable_recovery-725833e024211012fd7bf6c2af9c781b4a289fbf.tar.xz
android_bootable_recovery-725833e024211012fd7bf6c2af9c781b4a289fbf.tar.zst
android_bootable_recovery-725833e024211012fd7bf6c2af9c781b4a289fbf.zip
Diffstat (limited to 'applypatch/Android.mk')
-rw-r--r--applypatch/Android.mk24
1 files changed, 23 insertions, 1 deletions
diff --git a/applypatch/Android.mk b/applypatch/Android.mk
index 93a272997..3cb8bebde 100644
--- a/applypatch/Android.mk
+++ b/applypatch/Android.mk
@@ -20,7 +20,7 @@ LOCAL_CLANG := true
LOCAL_SRC_FILES := applypatch.cpp bspatch.cpp freecache.cpp imgpatch.cpp utils.cpp
LOCAL_MODULE := libapplypatch
LOCAL_MODULE_TAGS := eng
-LOCAL_C_INCLUDES += external/bzip2 external/zlib bootable/recovery
+LOCAL_C_INCLUDES += bootable/recovery
LOCAL_STATIC_LIBRARIES += libbase libmtdutils libmincrypt libbz libz
include $(BUILD_STATIC_LIBRARY)
@@ -28,6 +28,28 @@ include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_CLANG := true
+LOCAL_SRC_FILES := bspatch.cpp imgpatch.cpp utils.cpp
+LOCAL_MODULE := libimgpatch
+LOCAL_C_INCLUDES += bootable/recovery
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
+LOCAL_STATIC_LIBRARIES += libmincrypt libbz libz
+
+include $(BUILD_STATIC_LIBRARY)
+
+include $(CLEAR_VARS)
+
+LOCAL_CLANG := true
+LOCAL_SRC_FILES := bspatch.cpp imgpatch.cpp utils.cpp
+LOCAL_MODULE := libimgpatch
+LOCAL_C_INCLUDES += bootable/recovery
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
+LOCAL_STATIC_LIBRARIES += libmincrypt libbz libz
+
+include $(BUILD_HOST_STATIC_LIBRARY)
+
+include $(CLEAR_VARS)
+
+LOCAL_CLANG := true
LOCAL_SRC_FILES := main.cpp
LOCAL_MODULE := applypatch
LOCAL_C_INCLUDES += bootable/recovery