[cpp-async] Add new port (#31523)

* 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 <chausner@users.noreply.github.com>
This commit is contained in:
chausner 2023-05-22 20:56:55 +02:00 committed by GitHub
parent 7f2a9d7891
commit f2328e89e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 37 additions and 0 deletions

View File

@ -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
ports/cpp-async/usage Normal file
View File

@ -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})

View File

@ -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"
}

View File

@ -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

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "f1eaddcca26f72bb7be5a6227bffd3897798341c",
"version": "1.0.0",
"port-version": 0
}
]
}