Skip to content

Commit

Permalink
[asio-grpc] Update to 1.3.1 (microsoft#21263)
Browse files Browse the repository at this point in the history
* Update asio-grpc to v1.3.0

* Update asio-grpc baseline and versions

* Remove boost-asio, libunifex and standalone-asio features from asio-grpc. Add a usage file. Update it to 1.3.1

* Remove asio-grpc 1.3.0 from versions/
  • Loading branch information
Tradias authored Nov 13, 2021
1 parent d5df964 commit 796d677
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 9 deletions.
5 changes: 3 additions & 2 deletions ports/asio-grpc/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Tradias/asio-grpc
REF v1.1.2
SHA512 f55b219b9805f193b5673e91e58c3c5fc98957110fadf523c1729c92a06c8befe4ad58052c6e9aaabcf8327f2df31780d7e072a0923d77598974fa0145bf9e7f
REF v1.3.1
SHA512 c7a9f9c85e0611fd73a827270edf27deefe59b424e6d572efc8b532d305bf41e8fccb24a6507819dca0712f40e1d6abd56a4e6b099dbee729b125b0b610cd4fb
HEAD_REF master
)

Expand All @@ -23,4 +23,5 @@ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/asio-grpc)

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")

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 changes: 15 additions & 0 deletions ports/asio-grpc/usage
Original file line number Diff line number Diff line change
@@ -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)
8 changes: 2 additions & 6 deletions ports/asio-grpc/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
{
"name": "asio-grpc",
"version": "1.1.2",
"description": "Asynchronous gRPC with Boost.Asio executors",
"version": "1.3.1",
"description": "Asynchronous gRPC with Asio/unified executors",
"homepage": "https://github.com/Tradias/asio-grpc",
"dependencies": [
"boost-asio",
"boost-core",
"boost-intrusive",
"boost-lockfree",
"grpc",
{
"name": "vcpkg-cmake",
Expand Down
5 changes: 5 additions & 0 deletions versions/a-/asio-grpc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b68efdc2a8b782df2489156675bb4a4e95c7a221",
"version": "1.3.1",
"port-version": 0
},
{
"git-tree": "39ad0d8203c21698ba153d6951de8295954028eb",
"version": "1.1.2",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
"port-version": 0
},
"asio-grpc": {
"baseline": "1.1.2",
"baseline": "1.3.1",
"port-version": 0
},
"asiosdk": {
Expand Down

0 comments on commit 796d677

Please sign in to comment.