Skip to content

Commit

Permalink
Use mingw packages from out mirrors
Browse files Browse the repository at this point in the history
  • Loading branch information
garbear committed Jan 13, 2024
1 parent 0b4a8bb commit 54862d3
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions templates/addon/depends/windows/mingw/CMakeLists.txt.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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_)
Expand Down

0 comments on commit 54862d3

Please sign in to comment.