aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/asio-grpc
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/asio-grpc
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/asio-grpc')
-rw-r--r--vcpkg/ports/asio-grpc/portfile.cmake24
-rw-r--r--vcpkg/ports/asio-grpc/usage19
-rw-r--r--vcpkg/ports/asio-grpc/vcpkg.json18
3 files changed, 61 insertions, 0 deletions
diff --git a/vcpkg/ports/asio-grpc/portfile.cmake b/vcpkg/ports/asio-grpc/portfile.cmake
new file mode 100644
index 0000000..50eeb71
--- /dev/null
+++ b/vcpkg/ports/asio-grpc/portfile.cmake
@@ -0,0 +1,24 @@
+set(VCPKG_BUILD_TYPE release) # header-only
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Tradias/asio-grpc
+ REF "v${VERSION}"
+ SHA512 27af296ed593aded51d6cd81a678684c9e1e5885719493f78e800d0bab91d2c0b28589b73d14db95b9a605ffd28187f85449e7000f5c2625f0e84ee108f22675
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH ${SOURCE_PATH}
+ 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}")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/asio-grpc/usage b/vcpkg/ports/asio-grpc/usage
new file mode 100644
index 0000000..a34fbb4
--- /dev/null
+++ b/vcpkg/ports/asio-grpc/usage
@@ -0,0 +1,19 @@
+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)
+
+The stdexec backend. Install "stdexec" and link with:
+
+ target_link_libraries(main PRIVATE asio-grpc::asio-grpc-stdexec)
diff --git a/vcpkg/ports/asio-grpc/vcpkg.json b/vcpkg/ports/asio-grpc/vcpkg.json
new file mode 100644
index 0000000..4dc4f0b
--- /dev/null
+++ b/vcpkg/ports/asio-grpc/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "asio-grpc",
+ "version": "3.5.1",
+ "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
+ }
+ ]
+}