aboutsummaryrefslogtreecommitdiff
path: root/cmake/scripts/windowsstore
diff options
context:
space:
mode:
authorAnton Fedchin <anightik@gmail.com>2018-03-18 00:04:22 +0300
committerAnton Fedchin <anightik@gmail.com>2018-03-18 00:04:22 +0300
commit3670f4c4507b2eb50dbb711b935c2c11ea6cf107 (patch)
treeab8a9c00bf0ed34a1a25b2e2adbcce0817e54c57 /cmake/scripts/windowsstore
parent165f86154d2b9e970cbe727902f27b2b4a839a85 (diff)
windows: update patch utility to 2.7.6
Diffstat (limited to 'cmake/scripts/windowsstore')
-rw-r--r--cmake/scripts/windowsstore/tools/patch.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/scripts/windowsstore/tools/patch.cmake b/cmake/scripts/windowsstore/tools/patch.cmake
index 0a342fa1b3..b955b4cdcf 100644
--- a/cmake/scripts/windowsstore/tools/patch.cmake
+++ b/cmake/scripts/windowsstore/tools/patch.cmake
@@ -2,7 +2,7 @@ find_program(PATCH_FOUND NAMES patch patch.exe)
if(PATCH_FOUND)
message(STATUS "patch utility found at ${PATCH_FOUND}")
else()
- set(PATCH_ARCHIVE_NAME "patch-2.5.9-7-bin-3")
+ set(PATCH_ARCHIVE_NAME "patch-2.7.6-bin")
set(PATCH_ARCHIVE "${PATCH_ARCHIVE_NAME}.zip")
set(PATCH_URL "${KODI_MIRROR}/build-deps/win32/${PATCH_ARCHIVE}")
set(PATCH_DOWNLOAD ${BUILD_DIR}/download/${PATCH_ARCHIVE})
@@ -28,6 +28,11 @@ else()
# copy patch.exe into the output directory
file(INSTALL ${PATCH_BINARY_PATH} DESTINATION ${ADDON_DEPENDS_PATH}/bin)
+ # copy patch depends
+ file(GLOB PATCH_BINARIES ${PATCH_PATH}/bin/*.dll)
+ if(NOT "${PATCH_BINARIES}" STREQUAL "")
+ file(INSTALL ${PATCH_BINARIES} DESTINATION ${ADDON_DEPENDS_PATH}/bin)
+ endif()
# make sure that cmake can find the copied patch.exe
find_program(PATCH_FOUND NAMES patch patch.exe)