[asio-grpc] new port (#20602)

* Add asio-grpc

* Migrate deprecated functions in ports/asio-grpc/portfile.cmake
This commit is contained in:
Dennis 2021-10-12 06:05:57 +02:00 committed by GitHub
parent 1c91b14312
commit 0ab80cc66d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,26 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Tradias/asio-grpc
REF v1.1.2
SHA512 f55b219b9805f193b5673e91e58c3c5fc98957110fadf523c1729c92a06c8befe4ad58052c6e9aaabcf8327f2df31780d7e072a0923d77598974fa0145bf9e7f
HEAD_REF master
)
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
boost-container ASIO_GRPC_USE_BOOST_CONTAINER
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS ${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/asio-grpc)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -0,0 +1,29 @@
{
"name": "asio-grpc",
"version": "1.1.2",
"description": "Asynchronous gRPC with Boost.Asio executors",
"homepage": "https://github.com/Tradias/asio-grpc",
"dependencies": [
"boost-asio",
"boost-core",
"boost-intrusive",
"boost-lockfree",
"grpc",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"boost-container": {
"description": "Use Boost.Container instead of <memory_resource>",
"dependencies": [
"boost-container"
]
}
}
}

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "39ad0d8203c21698ba153d6951de8295954028eb",
"version": "1.1.2",
"port-version": 0
}
]
}

View File

@ -176,6 +176,10 @@
"baseline": "1.19.2",
"port-version": 0
},
"asio-grpc": {
"baseline": "1.1.2",
"port-version": 0
},
"asiosdk": {
"baseline": "2.3.3",
"port-version": 3