Skip to content

Commit

Permalink
[cpp-async] Add new port (#31523)
Browse files Browse the repository at this point in the history
* Add cpp-async 2023-05-19

* Update CI baseline

* Add new line

* Update CI baseline

* Fix HEAD_REF

* Update CI baseline

* Update to v1.0.0

* Update CI baseline

* Remove old version

---------

Co-authored-by: chausner <[email protected]>
  • Loading branch information
chausner and chausner authored May 22, 2023
1 parent 7f2a9d7 commit f2328e8
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ports/cpp-async/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO microsoft/cpp-async
REF "v${VERSION}"
SHA512 c3a6700c86d6bec2680c9d0edfe3ed02e83f8ecec134163243a7bfa4e12d4867a47d64eadd377de9b2a69401b8b512e0ee274275895a8f301c266db24b6e0a4b
HEAD_REF main
)

file(COPY "${SOURCE_PATH}/include/async" DESTINATION "${CURRENT_PACKAGES_DIR}/include")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
4 changes: 4 additions & 0 deletions ports/cpp-async/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cpp-async is header-only and can be used from CMake via:

find_path(CPP_ASYNC_INCLUDE_DIRS "async/task.h")
target_include_directories(main PRIVATE ${CPP_ASYNC_INCLUDE_DIRS})
7 changes: 7 additions & 0 deletions ports/cpp-async/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "cpp-async",
"version": "1.0.0",
"description": "Support types and functions for C++20 coroutines",
"homepage": "https://github.com/microsoft/cpp-async",
"license": "MIT"
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1728,6 +1728,10 @@
"baseline": "2020.06",
"port-version": 5
},
"cpp-async": {
"baseline": "1.0.0",
"port-version": 0
},
"cpp-base64": {
"baseline": "V2.rc.08",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/c-/cpp-async.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "f1eaddcca26f72bb7be5a6227bffd3897798341c",
"version": "1.0.0",
"port-version": 0
}
]
}

0 comments on commit f2328e8

Please sign in to comment.