Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions scripts/test_ports/cmake/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ vcpkg_from_gitlab(
HEAD_REF master
PATCHES
curl.diff
rhash.diff
fix-dependency-libuv.patch
)
set(OPTIONS)
Expand Down Expand Up @@ -38,22 +39,14 @@ vcpkg_cmake_configure(
OPTIONS
${OPTIONS}
-DBUILD_TESTING=OFF
#-DCMAKE_USE_SYSTEM_LIBRARIES=ON
-DCMAKE_USE_SYSTEM_LIBARCHIVE=ON
-DCMAKE_USE_SYSTEM_CURL=ON
-DCMAKE_USE_SYSTEM_EXPAT=ON
-DCMAKE_USE_SYSTEM_ZLIB=ON
-DCMAKE_USE_SYSTEM_BZIP2=ON
-DCMAKE_USE_SYSTEM_ZSTD=ON
-DCMAKE_USE_SYSTEM_FORM=ON
-DCMAKE_USE_SYSTEM_JSONCPP=ON
-DCMAKE_USE_SYSTEM_LIBRHASH=OFF # not yet in VCPKG
-DCMAKE_USE_SYSTEM_LIBUV=ON
-DCMAKE_USE_SYSTEM_LIBRARIES=ON
-DBUILD_QtDialog=ON # Just to test Qt with CMake
-DCMake_QT_MAJOR_VERSION:STRING=6
--trace-expand
)
file(COPY_FILE "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/cmake_install.cmake" "${CURRENT_BUILDTREES_DIR}/cmake_install.cmake-${TARGET_TRIPLET}-dbg.log")

vcpkg_cmake_install(ADD_BIN_TO_PATH)
vcpkg_cmake_install()
vcpkg_copy_pdbs()

if(NOT VCPKG_TARGET_IS_OSX)
Expand Down
14 changes: 14 additions & 0 deletions scripts/test_ports/cmake/rhash.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a5d69b41..9789ffb6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -435,7 +435,8 @@ macro (CMAKE_BUILD_UTILITIES)
endif()

if(CMAKE_USE_SYSTEM_LIBRHASH)
- find_package(LibRHash)
+ find_package(LibRHash NAMES unofficial-rhash REQUIRED)
+ add_library(LibRHash::LibRHash ALIAS unofficial::rhash::rhash)
if(NOT LibRHash_FOUND)
message(FATAL_ERROR
"CMAKE_USE_SYSTEM_LIBRHASH is ON but LibRHash is not found!")
23 changes: 14 additions & 9 deletions scripts/test_ports/cmake/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,29 @@
"homepage": "https://cmake.org/",
"license": "BSD-3-Clause",
"dependencies": [
"bzip2",
"curl",
{
"name": "curl",
"default-features": false
},
"expat",
"jsoncpp",
"libarchive",
"liblzma",
{
"name": "libarchive",
"default-features": false
},
"libuv",
{
"name": "ncurses",
"platform": "!(windows | uwp)"
},
"nghttp2",
"qtbase",
"rhash",
{
"name": "qtbase",
"default-features": false
Comment on lines +26 to +27
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is probably wrong. needs at least widgets and gui

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True. And doesn't matter for CI. (What I really want is a feature, but it is not a priority.)

},
{
"name": "vcpkg-cmake",
"host": true
},
"zlib",
"zstd"
}
]
}
9 changes: 0 additions & 9 deletions scripts/test_ports/vcpkg-ci-curl/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
{
"name": "curl",
"features": [
"c-ares",
"http2",
"zstd"
]
Expand All @@ -30,7 +29,6 @@
{
"name": "curl",
"features": [
"gsasl",
"psl"
],
"platform": "!uwp"
Expand All @@ -49,13 +47,6 @@
"tool"
],
"platform": "!android & !uwp"
},
{
"name": "curl",
"features": [
"gnutls"
],
"platform": "!arm & !xbox"
}
]
}