mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-20 00:51:32 -08:00
* 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]>
13 lines
734 B
CMake
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()
|