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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user