[yandex-disk-cpp-client] Update to 1.0.4 (#51261)

Co-authored-by: Billy O'Neal <bion@microsoft.com>
This commit is contained in:
Fyodor Krasnov 2026-04-21 20:57:22 +03:00 committed by GitHub
parent b8b8d01f8d
commit e6926402d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 46 additions and 31 deletions

View File

@ -1,22 +1,30 @@
set(VCPKG_POLICY_ALLOW_DEBUG_SHARE enabled)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Krasnovvvvv/yandex-disk-cpp-client
REF v1.0.3
SHA512 de0e68aa0419f9918afea9fa7741477941d63c21e08cbe50d27a5fe9de7160a7a1f5ce4d307c906001aa757f82951295189c5d213b788987449d1a1b102da945
HEAD_REF main
)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(
PACKAGE_NAME "yandex-disk-cpp-client"
CONFIG_PATH "lib/cmake/yandex-disk-cpp-client"
)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
set(VCPKG_POLICY_ALLOW_DEBUG_SHARE enabled)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Krasnovvvvv/yandex-disk-cpp-client
REF v1.0.4
SHA512 93a142d5bce93fe9f751decede2dfd715f5f21cd72f716a58b16202483cab8fdc4102f558e738864e1ac57e941e95d62ba4af6a9b60a89c1bdb72e8ffe24dd88
HEAD_REF main
)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_EXAMPLES=OFF
-DBUILD_TESTS=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(
PACKAGE_NAME "yandex-disk-cpp-client"
CONFIG_PATH "lib/cmake/yandex-disk-cpp-client"
)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

View File

@ -1,4 +0,0 @@
yandex-disk-cpp-client provides CMake targets:
find_package(yandex-disk-cpp-client CONFIG REQUIRED)
target_link_libraries(your_target PRIVATE yandex-disk-cpp-client::yandex-disk-cpp-client)

View File

@ -1,14 +1,20 @@
{
"name": "yandex-disk-cpp-client",
"version": "1.0.3",
"description": "Modern C++ client for Yandex.Disk REST API",
"version": "1.0.4",
"description": "C++ client library for Yandex Disk REST API",
"homepage": "https://github.com/Krasnovvvvv/yandex-disk-cpp-client",
"documentation": "https://krasnovvvvv.github.io/yandex-disk-cpp-client/",
"license": "MIT",
"dependencies": [
"curl",
"nlohmann-json",
"vcpkg-cmake",
"vcpkg-cmake-config"
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -11085,7 +11085,7 @@
"port-version": 0
},
"yandex-disk-cpp-client": {
"baseline": "1.0.3",
"baseline": "1.0.4",
"port-version": 0
},
"yara": {

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "dbdde105b62ce251a679ff80f6485c228a96d44f",
"version": "1.0.4",
"port-version": 0
},
{
"git-tree": "4ddb20a4777c4b753db8bb364238b33e36dee2ca",
"version": "1.0.3",