# https://github.com/google/diff-match-patch
#
# https://github.com/google/diff-match-patch/archive/refs/heads/master.zip

### DEPENDS ###
#DKDEPEND(libname)


### VERSION ###
DKSET(DIFF_MATCH_PATCH_VERSION master)
DKSET(DIFF_MATCH_PATCH_NAME diff-match-patch-${DIFF_MATCH_PATCH_VERSION})
DKSET(DIFF_MATCH_PATCH_DL https://github.com/google/diff-match-patch/archive/refs/heads/${DIFF_MATCH_PATCH_VERSION}.zip)
DKSET(DIFF_MATCH_PATCH ${3RDPARTY}/${DIFF_MATCH_PATCH_NAME})


### INSTALL ###
DKINSTALL(${DIFF_MATCH_PATCH_DL} diff-match-patch ${DIFF_MATCH_PATCH})


### LINK ###
# DKINCLUDE(${DIFF_MATCH_PATCH}/include)
# WIN_DEBUG_LIB(${DIFF_MATCH_PATCH}/${OS}/${DEBUG_DIR}/diff-match-patchd.lib)
# WIN_RELEASE_LIB(${DIFF_MATCH_PATCH}/${OS}/${RELEASE_DIR}/diff-match-patch.lib)
# APPLE_DEBUG_LIB(${DIFF_MATCH_PATCH}/${OS}/${DEBUG_DIR}/libdiff-match-patchd.a)
# APPLE_RELEASE_LIB(${DIFF_MATCH_PATCH}/${OS}/${RELEASE_DIR}/libdiff-match-patch.a)
# LINUX_DEBUG_LIB(${DIFF_MATCH_PATCH}/${OS}/${DEBUG_DIR}/libdiff-match-patchd.a)
# LINUX_RELEASE_LIB(${DIFF_MATCH_PATCH}/${OS}/${RELEASE_DIR}/libdiff-match-patch.a)
# RASPBERRY_DEBUG_LIB(${DIFF_MATCH_PATCH}/${OS}/${DEBUG_DIR}/libdiff-match-patchd.a)
# RASPBERRY_RELEASE_LIB(${DIFF_MATCH_PATCH}/${OS}/${RELEASE_DIR}/libdiff-match-patch.a)
# ANDROID_DEBUG_LIB(${DIFF_MATCH_PATCH}/${OS}/${DEBUG_DIR}/libdiff-match-patchd.a)
# ANDROID_RELEASE_LIB(${DIFF_MATCH_PATCH}/${OS}/${RELEASE_DIR}/libdiff-match-patch.a)


### COMPILE ###
# WIN_PATH(${DIFF_MATCH_PATCH}/${OS})
# WIN32_COMMAND(${DKCMAKE_WIN32} ${DIFF_MATCH_PATCH})
# WIN64_COMMAND(${DKCMAKE_WIN64} ${DIFF_MATCH_PATCH})
# WIN_VS(${DIFF_MATCH_PATCH_NAME} diff-match-patch.sln diff-match-patch)


# MAC_PATH(${DIFF_MATCH_PATCH}/${OS})
# MAC32_COMMAND(${DKCMAKE_MAC32} ${DIFF_MATCH_PATCH})
# MAC64_COMMAND(${DKCMAKE_MAC64} ${DIFF_MATCH_PATCH})
# MAC_XCODE(${DIFF_MATCH_PATCH_NAME} diff-match-patch)


# IOS_PATH(${DIFF_MATCH_PATCH}/${OS})
# IOS32_COMMAND(${DKCMAKE_IOS32} ${DIFF_MATCH_PATCH})
# IOS64_COMMAND(${DKCMAKE_IOS64} ${DIFF_MATCH_PATCH})
# IOS_XCODE(${DIFF_MATCH_PATCH_NAME} diff-match-patch)


# IOSSIM_PATH(${DIFF_MATCH_PATCH}/${OS})
# IOSSIM32_COMMAND(${DKCMAKE_IOSSIM32} ${DIFF_MATCH_PATCH})
# IOSSIM64_COMMAND(${DKCMAKE_IOSSIM64} ${DIFF_MATCH_PATCH})
# IOSSIM_XCODE(${DIFF_MATCH_PATCH_NAME} diff-match-patch)


# LINUX_DEBUG_PATH(${DIFF_MATCH_PATCH}/${OS}/${DEBUG_DIR})
# LINUX_DEBUG_COMMAND(${DKCMAKE_LINUX_DEBUG} ${DIFF_MATCH_PATCH})
# LINUX_DEBUG_COMMAND(make diff-match-patch)

# LINUX_RELEASE_PATH(${DIFF_MATCH_PATCH}/${OS}/${RELEASE_DIR})
# LINUX_RELEASE_COMMAND(${DKCMAKE_LINUX_RELEASE} ${DIFF_MATCH_PATCH})
# LINUX_RELEASE_COMMAND(make diff-match-patch)


# RASPBERRY_DEBUG_PATH(${DIFF_MATCH_PATCH}/${OS}/${DEBUG_DIR})
# RASPBERRY_DEBUG_COMMAND(${DKCMAKE_RASPBERRY_DEBUG} ${DIFF_MATCH_PATCH})
# RASPBERRY_DEBUG_COMMAND(make diff-match-patch)

# RASPBERRY_RELEASE_PATH(${DIFF_MATCH_PATCH}/${OS}/${RELEASE_DIR})
# RASPBERRY_RELEASE_COMMAND(${DKCMAKE_RASPBERRY_RELEASE} ${DIFF_MATCH_PATCH})
# RASPBERRY_RELEASE_COMMAND(make diff-match-patch)


##ANDROID_NDK(${DIFF_MATCH_PATCH_NAME})
# ANDROID_PATH(${DIFF_MATCH_PATCH}/${OS})
# ANDROID32_COMMAND(${DKCMAKE_ANDROID32} ${DIFF_MATCH_PATCH})
# ANDROID64_COMMAND(${DKCMAKE_ANDROID64} ${DIFF_MATCH_PATCH})
# ANDROID_VS(${DIFF_MATCH_PATCH_NAME} diff-match-patch.sln diff-match-patch)
