summaryrefslogtreecommitdiffstats
path: root/applypatch/Android.mk
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-01-29 05:58:59 +0100
committerTao Bao <tbao@google.com>2016-01-29 05:58:59 +0100
commit484c49e99ec501960672a1dcceb38dbb7bde1956 (patch)
tree1538cb19c557e756a3ff6c9ab17d73001c4b8c43 /applypatch/Android.mk
parentMerge "edify: accept long string literal." am: d379b4410b (diff)
parentMerge "applypatch: Compile libimgpatch for target and host." (diff)
downloadandroid_bootable_recovery-484c49e99ec501960672a1dcceb38dbb7bde1956.tar
android_bootable_recovery-484c49e99ec501960672a1dcceb38dbb7bde1956.tar.gz
android_bootable_recovery-484c49e99ec501960672a1dcceb38dbb7bde1956.tar.bz2
android_bootable_recovery-484c49e99ec501960672a1dcceb38dbb7bde1956.tar.lz
android_bootable_recovery-484c49e99ec501960672a1dcceb38dbb7bde1956.tar.xz
android_bootable_recovery-484c49e99ec501960672a1dcceb38dbb7bde1956.tar.zst
android_bootable_recovery-484c49e99ec501960672a1dcceb38dbb7bde1956.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 49f9989ae..0a04c0626 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 libotafault 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