CMake/.gitlab/ci/configure_windows_arm64_package.cmake
Brad King 7a21173b0e gitlab-ci: Add job to build Windows arm64 binaries
Base it on the approach from commit 4c7c66dcf5 (gitlab-ci: Add jobs to
make Windows x86_64 and i386 packages, 2022-05-19).  Leave out the
packaging and upload steps for now because they are only for the nightly
binaries, and will need a new release of CPack to pass the `arm64`
architecture to WiX.

Issue: #21902
2022-06-13 15:04:24 -04:00

17 lines
742 B
CMake

# CPack package file name component for this platform.
set(CPACK_SYSTEM_NAME "windows-arm64" CACHE STRING "")
# Tell WiX to package for this architecture.
set(CPACK_WIX_ARCHITECTURE "arm64" CACHE STRING "")
# Use APIs from at most Windows 7
set(CMAKE_C_FLAGS "-D_WIN32_WINNT=0x0A00 -DNTDDI_VERSION=0x0A000008" CACHE STRING "")
set(CMAKE_CXX_FLAGS "-GR -EHsc -D_WIN32_WINNT=0x0A00 -DNTDDI_VERSION=0x0A000008" CACHE STRING "")
set(CMAKE_EXE_LINKER_FLAGS "-machine:arm64 -subsystem:console,6.02" CACHE STRING "")
set(qt "$ENV{CI_PROJECT_DIR}/.gitlab/qt")
set(qt_host "$ENV{CI_PROJECT_DIR}/.gitlab/qt-host")
set(CMAKE_PREFIX_PATH "${qt};${qt_host}" CACHE STRING "")
include("${CMAKE_CURRENT_LIST_DIR}/configure_windows_package_common.cmake")