aboutsummaryrefslogtreecommitdiff
path: root/scripts/test_ports
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test_ports')
-rw-r--r--scripts/test_ports/cmake/portfile.cmake18
-rw-r--r--scripts/test_ports/cmake/vcpkg.json6
2 files changed, 16 insertions, 8 deletions
diff --git a/scripts/test_ports/cmake/portfile.cmake b/scripts/test_ports/cmake/portfile.cmake
index 9df7b3f43..3a74a2e65 100644
--- a/scripts/test_ports/cmake/portfile.cmake
+++ b/scripts/test_ports/cmake/portfile.cmake
@@ -9,15 +9,27 @@ vcpkg_from_gitlab(
3b0de26910bceaf4bc6546255bada4c502cd0fd32f44bc28b067f347c09d028c175a3243551bbe4bb64bcf312df9ff827e8fdbcb0b34a12e1ce4a26ba0799ee2
HEAD_REF master
)
-
+set(OPTIONS)
if(NOT VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_UWP)
- set(BUILD_CURSES_DIALOG ON)
+ list(APPEND OPTIONS -DBUILD_CursesDialog=ON)
+else()
+ list(APPEND OPTIONS -DBUILD_CursesDialog=OFF)
+endif()
+
+if(VCPKG_CROSSCOMPILING)
+ list(APPEND OPTIONS -DQt6CoreTools_DIR=${CURRENT_HOST_INSTALLED_DIR}/share/Qt6CoreTools)
+ list(APPEND OPTIONS -DQt6WidgetsTools_DIR=${CURRENT_HOST_INSTALLED_DIR}/share/Qt6WidgetsTools)
+ list(APPEND OPTIONS -DQt6GuiTools_DIR=${CURRENT_HOST_INSTALLED_DIR}/share/Qt6GuiTools)
+ if(VCPKG_TARGET_ARCHITECTURE STREQUAL arm64 AND VCPKG_TARGET_IS_WINDOWS) # Remove if PR #16111 is merged
+ list(APPEND OPTIONS -DCMAKE_CROSSCOMPILING=ON -DCMAKE_SYSTEM_PROCESSOR:STRING=ARM64 -DCMAKE_SYSTEM_NAME:STRING=Windows)
+ endif()
endif()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
+ ${OPTIONS}
-DBUILD_TESTING=OFF
#-DCMAKE_USE_SYSTEM_LIBRARIES=ON
-DCMAKE_USE_SYSTEM_LIBARCHIVE=ON
@@ -30,8 +42,8 @@ vcpkg_configure_cmake(
-DCMAKE_USE_SYSTEM_JSONCPP=ON
-DCMAKE_USE_SYSTEM_LIBRHASH=OFF # not yet in VCPKG
-DCMAKE_USE_SYSTEM_LIBUV=ON
- -DBUILD_CursesDialog=${BUILD_CURSES_DIALOG}
-DBUILD_QtDialog=ON # Just to test Qt with CMake
+ -DCMake_QT_MAJOR_VERSION:STRING=6
)
vcpkg_install_cmake(ADD_BIN_TO_PATH)
diff --git a/scripts/test_ports/cmake/vcpkg.json b/scripts/test_ports/cmake/vcpkg.json
index c2c4d9752..541ea1d77 100644
--- a/scripts/test_ports/cmake/vcpkg.json
+++ b/scripts/test_ports/cmake/vcpkg.json
@@ -16,11 +16,7 @@
"platform": "!(windows | uwp)"
},
"nghttp2",
- "qt5-base",
- {
- "name": "qt5-winextras",
- "platform": "windows"
- },
+ "qtbase",
"zlib",
"zstd"
]