mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 11:42:48 +08:00
[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:
parent
7f2a9d7891
commit
f2328e89e9
13
ports/cpp-async/portfile.cmake
Normal file
13
ports/cpp-async/portfile.cmake
Normal 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
4
ports/cpp-async/usage
Normal 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})
|
7
ports/cpp-async/vcpkg.json
Normal file
7
ports/cpp-async/vcpkg.json
Normal 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"
|
||||||
|
}
|
@ -1728,6 +1728,10 @@
|
|||||||
"baseline": "2020.06",
|
"baseline": "2020.06",
|
||||||
"port-version": 5
|
"port-version": 5
|
||||||
},
|
},
|
||||||
|
"cpp-async": {
|
||||||
|
"baseline": "1.0.0",
|
||||||
|
"port-version": 0
|
||||||
|
},
|
||||||
"cpp-base64": {
|
"cpp-base64": {
|
||||||
"baseline": "V2.rc.08",
|
"baseline": "V2.rc.08",
|
||||||
"port-version": 0
|
"port-version": 0
|
||||||
|
9
versions/c-/cpp-async.json
Normal file
9
versions/c-/cpp-async.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "f1eaddcca26f72bb7be5a6227bffd3897798341c",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"port-version": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user