applypatch: Use bsdiff from external/bsdiff.

external/bsdiff uses divsufsort which is much faster, and also include
some bug fixes.

Bug: 26982501
Test: ./imgdiff_test.sh

Change-Id: I089a301c291ee55d79938c7a3ca6d509895440d1
This commit is contained in:
Sen Jiang
2016-05-03 15:49:10 -07:00
parent ecd6e2af50
commit 2fffcb174b
3 changed files with 10 additions and 425 deletions
+7 -2
View File
@@ -89,8 +89,13 @@ include $(BUILD_EXECUTABLE)
# ===============================
include $(CLEAR_VARS)
LOCAL_CLANG := true
LOCAL_SRC_FILES := imgdiff.cpp utils.cpp bsdiff.cpp
LOCAL_SRC_FILES := imgdiff.cpp utils.cpp
LOCAL_MODULE := imgdiff
LOCAL_STATIC_LIBRARIES += libz libbz
LOCAL_STATIC_LIBRARIES += \
libbsdiff \
libbz \
libdivsufsort64 \
libdivsufsort \
libz
LOCAL_FORCE_STATIC_EXECUTABLE := true
include $(BUILD_HOST_EXECUTABLE)