Files
Build-System/.gitea/cmake/mingw-w64-toolchain.cmake
T
faumaray d5f2974cdd
VoidBuildSystem CI / 1 · Requirements (push) Successful in 10s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Failing after 48s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Failing after 50s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Skipped
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 4B · Windows package (debug) (push) Skipped
VoidBuildSystem CI / 4B · Windows package (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 3m18s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 3m36s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m41s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m42s
VoidBuildSystem CI / 4A · Linux package (debug) (push) Canceled after 0s
VoidBuildSystem CI / 4A · Linux package (relwithdebinfo) (push) Canceled after 0s
VoidBuildSystem CI / 4A · Linux package (sanitizers) (push) Canceled after 0s
VoidBuildSystem CI / 5 · Release (push) Skipped
VoidBuildSystem CI / 3A · Linux test (debug) (push) Canceled after 8m56s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Canceled after 8m57s
ci: replace the native Windows lane with a packaged Wine build
Drop the MSYS2/native Windows jobs (and their script): the Windows
lane now cross-compiles VBS with MinGW-w64 on the Linux runner, runs
the Windows test executables under Wine and packages the Windows
binaries, SDK and headers. The release takes the RelWithDebInfo
packages from the Linux and the Wine lanes.

The MinGW runtime DLLs are staged next to the executables so Wine can
load them, and the build job fails explicitly when the runner's
MinGW-w64 is older than GCC 16 (C++26 is required).
2026-12-06 06:33:48 +03:00

15 lines
620 B
CMake

# Cross-compiles VoidBuildSystem for 64-bit Windows with MinGW-w64.
# Used by the Wine CI lane: the executables are run under Wine 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)
# 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)