moar ci changes

This commit is contained in:
Agel committed 2026-11-13 10:56:08 +01:00
1 parent 5940d86ed2
commit 1ef94b910a
19 files changed
+1313 -663

No files matched your search

+16 -16
View File
@@ -1,27 +1,27 @@
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_PROCESSOR x86_64)
# Explicitly prefer GCC toolchain in /usr/bin when available to prevent collision with llvm-mingw
if(EXISTS "/usr/bin/x86_64-w64-mingw32-gcc")
set(CMAKE_C_COMPILER /usr/bin/x86_64-w64-mingw32-gcc)
set(CMAKE_CXX_COMPILER /usr/bin/x86_64-w64-mingw32-g++)
set(CMAKE_RC_COMPILER /usr/bin/x86_64-w64-mingw32-windres)
else()
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)
endif()
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)
# Append default sysroot paths. list(APPEND) preserves any paths already set via
# -DCMAKE_FIND_ROOT_PATH on the cmake command line (e.g. the Qt Windows install dir),
# while plain set() would silently override them and break find_package(Qt6).
list(APPEND CMAKE_FIND_ROOT_PATH /opt/mingw-sysroot /usr/x86_64-w64-mingw32)
# -DCMAKE_FIND_ROOT_PATH on the cmake command line (e.g. the Qt Windows install dir).
list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_PREFIX_PATH} /opt/mingw-sysroot /opt/llvm-mingw/x86_64-w64-mingw32 /usr/x86_64-w64-mingw32)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
# Point pkg-config at the MinGW sysroot so it finds cross-compiled .pc files
set(ENV{PKG_CONFIG_LIBDIR} "$ENV{MINGW_SYSROOT}/lib/pkgconfig")
set(ENV{PKG_CONFIG_PATH} "")
set(QT_NO_PACKAGE_VERSION_CHECK TRUE)
set(QT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING TRUE)
# Point pkg-config at the MinGW x86_64 sysroot so it never picks up host Linux .pc files
if(DEFINED ENV{MINGW_SYSROOT} AND NOT "$ENV{MINGW_SYSROOT}" STREQUAL "")
set(ENV{PKG_CONFIG_LIBDIR} "$ENV{MINGW_SYSROOT}/lib/pkgconfig:$ENV{MINGW_SYSROOT}/share/pkgconfig")
elseif(DEFINED ENV{QT_WINDOWS_DIR} AND NOT "$ENV{QT_WINDOWS_DIR}" STREQUAL "")
set(ENV{PKG_CONFIG_LIBDIR} "$ENV{QT_WINDOWS_DIR}/lib/pkgconfig:$ENV{QT_WINDOWS_DIR}/share/pkgconfig")
else()
set(ENV{PKG_CONFIG_LIBDIR} "/opt/mingw-sysroot/lib/pkgconfig:/opt/mingw-sysroot/share/pkgconfig")
endif()