ci: add Windows on ARM64 cross-compilation and packaging jobs
- Add `build-windows-arm64` and `package-windows-arm64` stages to `.gitlab-ci.yml` and wire download links to wiki updates - Create `scripts/mingw-w64-arm64-toolchain.cmake` targeting `Windows` / `aarch64` with LLVM-MinGW - Update `docker/Dockerfile.build` with LLVM-MinGW toolchain, MSYS2 Qt 6.10 ARM64 packages, and ARM64 cross-compiled static libraries (libiconv, uchardet, zlib, minizip, libarchive) - Isolate GCC x86_64 and LLVM-MinGW ARM64 toolchains in `scripts/mingw-w64-toolchain.cmake` and PATH configuration - Refactor `packaging/package-windows.sh` to package both x86_64 and ARM64 runtime DLLs and support MSYS2 plugin/QML directory layouts - Update `scripts/test-ci-windows.sh` with `--arm64`, `--only-arm64`, `--image`, and local image detection - Guard `-mwindows` link flag with `if(MINGW)` in `CMakeLists.txt` - Document Windows ARM64 build targets and instructions in `AGENTS.md` and `README.md`
This commit is contained in:
9 files changed
+337
-72
No files matched your search
@@ -1,9 +1,16 @@
|
||||
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)
|
||||
# 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()
|
||||
|
||||
# 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),
|
||||
|
||||
Reference in new issue
Block a user