Files
keepassxc/cmake/KPXCWindowsDeployQt.cmake
2b58033398 Add native Windows Arm64 support on Qt-vcpkg builds (#13678)
* Add minimal native Windows Arm64 support

Extend the Qt-via-vcpkg work from #13473 with only the source changes required for Windows Arm64 triplet selection, deployqt resolution, ordered runtime dependency deployment, and architecture-correct MSI metadata.

Co-authored-by: Janek Bevendorff <[email protected]>
Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Gordon Lam (SH) (from Dev Box) <[email protected]>
Co-authored-by: Janek Bevendorff <[email protected]>
Co-authored-by: Copilot <[email protected]>
2026-09-20 23:59:34 +02:00

13 lines
734 B
CMake

# vcpkg builds *deployqt (e.g. windeployqt.exe) for the host triplet only, which can
# differ from VCPKG_TARGET_TRIPLET when cross-compiling for Windows on Arm64 (e.g. a
# x64-windows host building an arm64-windows target). VCPKG_HOST_TRIPLET is set
# automatically by the vcpkg toolchain file and must be used as-is: it must not be
# re-derived from CMAKE_HOST_SYSTEM_PROCESSOR/NAME, which does not match vcpkg's
# triplet naming (e.g. "AMD64" vs. "x64").
function(kpxc_resolve_windows_deployqt_host_triplet out_var)
if(NOT VCPKG_HOST_TRIPLET)
message(FATAL_ERROR "VCPKG_HOST_TRIPLET is not set; cannot locate a Windows *deployqt tool.")
endif()
set(${out_var} "${VCPKG_HOST_TRIPLET}" PARENT_SCOPE)
endfunction()