From 54862d38b4c5812d76de752e89a63ac036053953 Mon Sep 17 00:00:00 2001 From: Garrett Brown Date: Wed, 27 Dec 2023 17:26:49 -0800 Subject: [PATCH] Use mingw packages from out mirrors --- .../addon/depends/windows/mingw/CMakeLists.txt.j2 | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/templates/addon/depends/windows/mingw/CMakeLists.txt.j2 b/templates/addon/depends/windows/mingw/CMakeLists.txt.j2 index 019f0fa9..afb4c8c8 100644 --- a/templates/addon/depends/windows/mingw/CMakeLists.txt.j2 +++ b/templates/addon/depends/windows/mingw/CMakeLists.txt.j2 @@ -2,14 +2,13 @@ cmake_minimum_required(VERSION 3.5) project(mingw) -# TODO: Upload msys2 packages to mirrors -#foreach(repo msys mingw32 mingw64) -# if(${repo} STREQUAL msys) -# file(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/etc/pacman.d/mirrorlist.${repo} "Server = http://mirrors.kodi.tv/build-deps/win32/msys2/repos/${repo}2/$arch\n") -# else() -# file(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/etc/pacman.d/mirrorlist.${repo} "Server = http://mirrors.kodi.tv/build-deps/win32/msys2/repos/${repo}\n") -# endif() -#endforeach() +foreach(repo msys mingw32 mingw64) + if(${repo} STREQUAL msys) + file(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/etc/pacman.d/mirrorlist.${repo} "Server = http://mirrors.kodi.tv/build-deps/win32/msys2/repos/${repo}2/$arch\n") + else() + file(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/etc/pacman.d/mirrorlist.${repo} "Server = http://mirrors.kodi.tv/build-deps/win32/msys2/repos/${repo}\n") + endif() +endforeach() include(CheckSymbolExists) check_symbol_exists(_X86_ "Windows.h" _X86_)