From a38f06a3c698f58f7cd8cb49a1d8cfea6bd4f629 Mon Sep 17 00:00:00 2001 From: Hernan Martinez Date: Wed, 4 Oct 2023 20:28:47 -0600 Subject: [PATCH 1/3] First build of Stellarium Windows on ARM --- .appveyor.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 98e52ba5c0cfe..8e8459d92b0a9 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -24,18 +24,25 @@ environment: qtver: 6.5 qtbin: msvc2019_64 msvcname: Visual Studio 16 2019 + cmake_args: -A x64 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 qtver: 5.12 qtbin: msvc2017_64 msvcname: Visual Studio 15 2017 Win64 + cmake_args: -A x64 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 qtver: 5.12 qtbin: msvc2017 msvcname: Visual Studio 15 2017 + cmake_args: + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 + qtver: 6.5 + qtbin: msvc2019_arm64 + msvcname: Visual Studio 17 2022 + cmake_args: -A ARM64 -DQT_HOST_PATH=C:/Qt/6.5/msvc2019_64 -DENABLE_SPOUT=OFF -DENABLE_QTWEBENGINE=OFF before_build: - ps: if($env:qtbin.contains('_64')) { $env:BITS=64 } else { $env:BITS=32 } - - ps: if($env:qtbin.contains('_64')) { $env:cmake_args:="-A x64" } - ps: if($env:qtver.contains('6.')) { $env:SSL="OpenSSL-" } else { $env:SSL="OpenSSL-1-" } - set PUBLISH_BINARY=false - set USE_EXT_LIBGLES=false @@ -67,7 +74,7 @@ build: verbosity: minimal test_script: - - if [%PUBLISH_BINARY%]==[false] ctest --output-on-failure + - ps: if($env:PUBLISH_BINARY -eq "false" -and $env:qtbin -ne "msvc2019_arm64") { ctest --output-on-failure } after_test: - if [%PUBLISH_BINARY%]==[true] cmake --build c:\stellarium\build-%qtver%-%qtbin%\ --config %configuration% --target install From c7f791e9c9021daa5083b63109111ebcd9e7d475 Mon Sep 17 00:00:00 2001 From: Hernan Martinez Date: Thu, 5 Oct 2023 00:59:15 -0600 Subject: [PATCH 2/3] Add conditional parameter for windeployqt when x-compiling --- .appveyor.yml | 2 +- src/CMakeLists.txt | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index 8e8459d92b0a9..4af114782bdaf 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -39,7 +39,7 @@ environment: qtver: 6.5 qtbin: msvc2019_arm64 msvcname: Visual Studio 17 2022 - cmake_args: -A ARM64 -DQT_HOST_PATH=C:/Qt/6.5/msvc2019_64 -DENABLE_SPOUT=OFF -DENABLE_QTWEBENGINE=OFF + cmake_args: -A ARM64 -DQT_HOST_PATH=C:/Qt/6.5/msvc2019_64 -DQT_PATHS=C:/Qt/6.5/msvc2019_arm64/bin/qtpaths.bat -DENABLE_SPOUT=OFF -DENABLE_QTWEBENGINE=OFF before_build: - ps: if($env:qtbin.contains('_64')) { $env:BITS=64 } else { $env:BITS=32 } diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 731e1822ef813..2d92cf0e57b35 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -611,6 +611,12 @@ IF(WIN32) SET(VIRTUAL_KBD_SETTING "--no-virtualkeyboard") ENDIF() + IF("${QT_PATHS}" STREQUAL "") + SET(_qt_paths "") + ELSE() + SET(_qt_paths "--qtpaths \"${QTPATHS}\"") + ENDIF() + INSTALL(CODE " EXECUTE_PROCESS( @@ -619,6 +625,7 @@ IF(WIN32) --no-translations --verbose 1 ${VIRTUAL_KBD_SETTING} + ${_qt_paths} --compiler-runtime \"\${CMAKE_INSTALL_PREFIX}/bin/stellarium.exe\" WORKING_DIRECTORY \"\${CMAKE_INSTALL_PREFIX}/bin\" From 7accc4c8bd1fc652a29f8985d49bc011a9bb63be Mon Sep 17 00:00:00 2001 From: Hernan Martinez Date: Thu, 5 Oct 2023 01:32:20 -0600 Subject: [PATCH 3/3] VS 15 2017 generator does not accept `-A ` params --- .appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index 4af114782bdaf..aaf47a727eb7c 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -29,7 +29,7 @@ environment: qtver: 5.12 qtbin: msvc2017_64 msvcname: Visual Studio 15 2017 Win64 - cmake_args: -A x64 + cmake_args: - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 qtver: 5.12 qtbin: msvc2017