Files
Build-System/.gitea/cmake/mingw-w64-toolchain.cmake
T
faumaray 51d437d339 ci: rely on the Void CI images for the toolchain
The windows-gcc image already ships MinGW-w64 GCC 16 (UCRT), Wine and
CMake/Ninja, and the vulkan image ships GCC 16, CMake 4 and the Void
dependencies. Drop the MinGW download, the apt package installs and the
Wine install; the Windows lane now uses the repository's PATH-based
MinGW toolchain file and stages the runtime DLLs from the MinGW sysroot.
2026-12-06 07:40:05 +03:00

18 lines
758 B
CMake

# Cross-compiles VoidBuildSystem for 64-bit Windows (UCRT) with the MinGW-w64
# toolchain on PATH (the Void CI `windows-gcc` image provides GCC 16).
# The Wine CI lane runs the executables on Linux.
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_PROCESSOR x86_64)
set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
set(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
set(CMAKE_AR x86_64-w64-mingw32-ar)
set(CMAKE_RANLIB x86_64-w64-mingw32-ranlib)
# Look for target libraries and headers in the MinGW sysroot, but run host
# programs (cmake, ninja, python, ...) from the normal PATH.
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)