diff options
Diffstat (limited to 'cmake/scripts/windowsstore/tools/patch.cmake')
| -rw-r--r-- | cmake/scripts/windowsstore/tools/patch.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/scripts/windowsstore/tools/patch.cmake b/cmake/scripts/windowsstore/tools/patch.cmake index 0a342fa..b955b4c 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) | |||
| 2 | if(PATCH_FOUND) | 2 | if(PATCH_FOUND) |
| 3 | message(STATUS "patch utility found at ${PATCH_FOUND}") | 3 | message(STATUS "patch utility found at ${PATCH_FOUND}") |
| 4 | else() | 4 | else() |
| 5 | set(PATCH_ARCHIVE_NAME "patch-2.5.9-7-bin-3") | 5 | set(PATCH_ARCHIVE_NAME "patch-2.7.6-bin") |
| 6 | set(PATCH_ARCHIVE "${PATCH_ARCHIVE_NAME}.zip") | 6 | set(PATCH_ARCHIVE "${PATCH_ARCHIVE_NAME}.zip") |
| 7 | set(PATCH_URL "${KODI_MIRROR}/build-deps/win32/${PATCH_ARCHIVE}") | 7 | set(PATCH_URL "${KODI_MIRROR}/build-deps/win32/${PATCH_ARCHIVE}") |
| 8 | set(PATCH_DOWNLOAD ${BUILD_DIR}/download/${PATCH_ARCHIVE}) | 8 | set(PATCH_DOWNLOAD ${BUILD_DIR}/download/${PATCH_ARCHIVE}) |
| @@ -28,6 +28,11 @@ else() | |||
| 28 | 28 | ||
| 29 | # copy patch.exe into the output directory | 29 | # copy patch.exe into the output directory |
| 30 | file(INSTALL ${PATCH_BINARY_PATH} DESTINATION ${ADDON_DEPENDS_PATH}/bin) | 30 | file(INSTALL ${PATCH_BINARY_PATH} DESTINATION ${ADDON_DEPENDS_PATH}/bin) |
| 31 | # copy patch depends | ||
| 32 | file(GLOB PATCH_BINARIES ${PATCH_PATH}/bin/*.dll) | ||
| 33 | if(NOT "${PATCH_BINARIES}" STREQUAL "") | ||
| 34 | file(INSTALL ${PATCH_BINARIES} DESTINATION ${ADDON_DEPENDS_PATH}/bin) | ||
| 35 | endif() | ||
| 31 | 36 | ||
| 32 | # make sure that cmake can find the copied patch.exe | 37 | # make sure that cmake can find the copied patch.exe |
| 33 | find_program(PATCH_FOUND NAMES patch patch.exe) | 38 | find_program(PATCH_FOUND NAMES patch patch.exe) |
