early-access version 2853
This commit is contained in:
28
externals/vcpkg/ports/asio-grpc/portfile.cmake
vendored
Executable file
28
externals/vcpkg/ports/asio-grpc/portfile.cmake
vendored
Executable file
@@ -0,0 +1,28 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO Tradias/asio-grpc
|
||||
REF v1.7.0
|
||||
SHA512 2a9c583678026e1eed4b2128ecf7bb18dff9a39e26de9a29f035cd7c6c838edc5d95015319407d493b09fd650de8b1b7b0bed1b92ba88d40f69d806adf6a0af1
|
||||
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}
|
||||
-DASIO_GRPC_CMAKE_CONFIG_INSTALL_DIR=share/asio-grpc
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
||||
|
||||
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
15
externals/vcpkg/ports/asio-grpc/usage
vendored
Executable file
15
externals/vcpkg/ports/asio-grpc/usage
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
The package asio-grpc can be used with different backends.
|
||||
|
||||
find_package(asio-grpc CONFIG REQUIRED)
|
||||
|
||||
The Boost.Asio backend. Install "boost-asio" and link with:
|
||||
|
||||
target_link_libraries(main PRIVATE asio-grpc::asio-grpc)
|
||||
|
||||
The standalone Asio backend. Install "asio" and link with:
|
||||
|
||||
target_link_libraries(main PRIVATE asio-grpc::asio-grpc-standalone-asio)
|
||||
|
||||
The libunifex backend. Install "libunifex" and link with:
|
||||
|
||||
target_link_libraries(main PRIVATE asio-grpc::asio-grpc-unifex)
|
||||
26
externals/vcpkg/ports/asio-grpc/vcpkg.json
vendored
Executable file
26
externals/vcpkg/ports/asio-grpc/vcpkg.json
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "asio-grpc",
|
||||
"version": "1.7.0",
|
||||
"description": "Asynchronous gRPC with Asio/unified executors",
|
||||
"homepage": "https://github.com/Tradias/asio-grpc",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": [
|
||||
"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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user