diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/yandex-disk-cpp-client | |
Diffstat (limited to 'vcpkg/ports/yandex-disk-cpp-client')
| -rw-r--r-- | vcpkg/ports/yandex-disk-cpp-client/portfile.cmake | 22 | ||||
| -rw-r--r-- | vcpkg/ports/yandex-disk-cpp-client/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/yandex-disk-cpp-client/vcpkg.json | 14 |
3 files changed, 40 insertions, 0 deletions
diff --git a/vcpkg/ports/yandex-disk-cpp-client/portfile.cmake b/vcpkg/ports/yandex-disk-cpp-client/portfile.cmake new file mode 100644 index 0000000..fd49682 --- /dev/null +++ b/vcpkg/ports/yandex-disk-cpp-client/portfile.cmake @@ -0,0 +1,22 @@ +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")
diff --git a/vcpkg/ports/yandex-disk-cpp-client/usage b/vcpkg/ports/yandex-disk-cpp-client/usage new file mode 100644 index 0000000..8de2c22 --- /dev/null +++ b/vcpkg/ports/yandex-disk-cpp-client/usage @@ -0,0 +1,4 @@ +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)
diff --git a/vcpkg/ports/yandex-disk-cpp-client/vcpkg.json b/vcpkg/ports/yandex-disk-cpp-client/vcpkg.json new file mode 100644 index 0000000..129ef8e --- /dev/null +++ b/vcpkg/ports/yandex-disk-cpp-client/vcpkg.json @@ -0,0 +1,14 @@ +{ + "name": "yandex-disk-cpp-client", + "version": "1.0.3", + "description": "Modern C++ client 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" + ] +} |