aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
Diffstat (limited to 'ports')
-rw-r--r--ports/asio-grpc/portfile.cmake26
-rw-r--r--ports/asio-grpc/vcpkg.json29
2 files changed, 55 insertions, 0 deletions
diff --git a/ports/asio-grpc/portfile.cmake b/ports/asio-grpc/portfile.cmake
new file mode 100644
index 000000000..7dd32692b
--- /dev/null
+++ b/ports/asio-grpc/portfile.cmake
@@ -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)
diff --git a/ports/asio-grpc/vcpkg.json b/ports/asio-grpc/vcpkg.json
new file mode 100644
index 000000000..2b33b17ff
--- /dev/null
+++ b/ports/asio-grpc/vcpkg.json
@@ -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"
+ ]
+ }
+ }
+}