[etcd-cpp-apiv3] Add etcd-cpp-apiv3 ports. (#29363)

* Add etcd-cpp-vpiv3 ports.

Signed-off-by: Tao He <sighingnow@gmail.com>

* Add version files

Signed-off-by: Tao He <sighingnow@gmail.com>

* Address linter comments

Signed-off-by: Tao He <sighingnow@gmail.com>

* Format

Signed-off-by: Tao He <sighingnow@gmail.com>

* Update the version

Signed-off-by: Tao He <sighingnow@gmail.com>

* Adding usage text

Signed-off-by: Tao He <sighingnow@gmail.com>

* Update version

Signed-off-by: Tao He <sighingnow@gmail.com>

* Double quotes

Signed-off-by: Tao He <sighingnow@gmail.com>

* Update the version

Signed-off-by: Tao He <sighingnow@gmail.com>

---------

Signed-off-by: Tao He <sighingnow@gmail.com>
This commit is contained in:
Tao He 2023-02-08 08:00:58 +08:00 committed by GitHub
parent 2d0bfea99b
commit 4f7e4b0193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,31 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO etcd-cpp-apiv3/etcd-cpp-apiv3
REF 9e1e60af2ee99eafb4ea9b8d275870776b7d8507
SHA512 07e7922c96b0b9cb6502820d9dac96c60390e5d3c4d94e9eed7e847a3d1197e79dbfd4259cd1510ca02d669713a976bb027ba5decc2a44ca8e851109f2ef9c15
HEAD_REF v0.2.12
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBUILD_ETCD_TESTS=OFF
)
set(VCPKG_POLICY_DLLS_WITHOUT_LIBS enabled)
set(VCPKG_POLICY_DLLS_WITHOUT_EXPORTS enabled)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/etcd-cpp-api)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_copy_pdbs()
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/etcd-cpp-apiv3" RENAME copyright)
# Adding usage text
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

View File

@ -0,0 +1,11 @@
The package etcd-cpp-apiv3 is compatible with built-in CMake targets:
find_package(etcd-cpp-api CONFIG REQUIRED)
target_link_libraries(main PRIVATE etcd-cpp-api)
In cases where you only need the synchronous runtime and want to avoid the initialization
of builtin thread pool, use:
find_package(etcd-cpp-api CONFIG REQUIRED)
target_link_libraries(main PRIVATE etcd-cpp-api-core)

View File

@ -0,0 +1,25 @@
{
"name": "etcd-cpp-apiv3",
"version": "0.2.12",
"description": "The etcd-cpp-apiv3 is a C++ API for etcd's v3 client API, i.e., ETCDCTL_API=3.",
"homepage": "https://github.com/etcd-cpp-apiv3/etcd-cpp-apiv3",
"license": "BSD-3-Clause",
"dependencies": [
"boost-asio",
"boost-random",
"boost-system",
"boost-thread",
"cpprestsdk",
"grpc",
"openssl",
"protobuf",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -2244,6 +2244,10 @@
"baseline": "ca7cb332011ec37",
"port-version": 1
},
"etcd-cpp-apiv3": {
"baseline": "0.2.12",
"port-version": 0
},
"etl": {
"baseline": "20.35.4",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "86cc86be00d148aaf3c011e1c248ea16e7e6d2fc",
"version": "0.2.12",
"port-version": 0
}
]
}