early-access version 2853
This commit is contained in:
13
externals/vcpkg/ports/offscale-libetcd-cpp/fix-dependency-grpc.patch
vendored
Executable file
13
externals/vcpkg/ports/offscale-libetcd-cpp/fix-dependency-grpc.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 0d9aad9..d68c5f7 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -70,7 +70,7 @@ endif()
|
||||
target_include_directories(etcdcpp PRIVATE "generated/")
|
||||
target_include_directories(etcdcpp INTERFACE "${CMAKE_INSTALL_PREFIX}/include")
|
||||
|
||||
-target_link_libraries(etcdcpp PRIVATE gRPC::gpr gRPC::grpc gRPC::grpc++ gRPC::grpc_cronet)
|
||||
+target_link_libraries(etcdcpp PRIVATE gRPC::gpr gRPC::grpc gRPC::grpc++ gRPC::grpc++_alts)
|
||||
target_link_libraries(etcdcpp PRIVATE protobuf::libprotoc protobuf::libprotobuf)
|
||||
|
||||
install(TARGETS etcdcpp EXPORT etcdcpp DESTINATION lib)
|
11
externals/vcpkg/ports/offscale-libetcd-cpp/install-debug.patch
vendored
Executable file
11
externals/vcpkg/ports/offscale-libetcd-cpp/install-debug.patch
vendored
Executable file
@@ -0,0 +1,11 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 0d9aad9..7bdde1b 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -77,5 +77,5 @@ install(TARGETS etcdcpp EXPORT etcdcpp DESTINATION lib)
|
||||
|
||||
if (${CMAKE_BUILD_TYPE} STREQUAL "Release")
|
||||
install(FILES ${proto_hs} DESTINATION include/libetcd/)
|
||||
- install(EXPORT etcdcpp DESTINATION share/etcdcpp/ FILE etcdcppConfig.cmake)
|
||||
endif()
|
||||
+install(EXPORT etcdcpp DESTINATION share/etcdcpp/ FILE etcdcppConfig.cmake)
|
20
externals/vcpkg/ports/offscale-libetcd-cpp/portfile.cmake
vendored
Executable file
20
externals/vcpkg/ports/offscale-libetcd-cpp/portfile.cmake
vendored
Executable file
@@ -0,0 +1,20 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO offscale/libetcd-cpp
|
||||
REF 8607d8d7080c6eb447bc41b799a24bfdb87cf638
|
||||
SHA512 9bf4bf14fd52f4f6bbf8cf68de61e6a19eeffbdc501f05c8f614b5f13f206410884afd7fe226a077448e58e02990c65a6b27ee895ed34ba5ee701abe0500b875
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix-dependency-grpc.patch
|
||||
install-debug.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
DISABLE_PARALLEL_CONFIGURE # see https://github.com/microsoft/vcpkg/pull/21168#issuecomment-961588989 why
|
||||
)
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME etcdcpp)
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE-MIT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
19
externals/vcpkg/ports/offscale-libetcd-cpp/vcpkg.json
vendored
Executable file
19
externals/vcpkg/ports/offscale-libetcd-cpp/vcpkg.json
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "offscale-libetcd-cpp",
|
||||
"version-date": "2019-07-10",
|
||||
"port-version": 3,
|
||||
"description": "A C++ client library for etcd. etcd is a distributed, reliable key-value store.",
|
||||
"homepage": "https://github.com/offscale/libetcd-cpp",
|
||||
"dependencies": [
|
||||
"grpc",
|
||||
"protobuf",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user