diff --git a/ports/cpp-async/portfile.cmake b/ports/cpp-async/portfile.cmake new file mode 100644 index 00000000000..a9ef1265910 --- /dev/null +++ b/ports/cpp-async/portfile.cmake @@ -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}") diff --git a/ports/cpp-async/usage b/ports/cpp-async/usage new file mode 100644 index 00000000000..13d56082359 --- /dev/null +++ b/ports/cpp-async/usage @@ -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}) diff --git a/ports/cpp-async/vcpkg.json b/ports/cpp-async/vcpkg.json new file mode 100644 index 00000000000..476d22cb1a5 --- /dev/null +++ b/ports/cpp-async/vcpkg.json @@ -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" +} diff --git a/versions/baseline.json b/versions/baseline.json index 0853ac17569..46c7c335bf1 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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 diff --git a/versions/c-/cpp-async.json b/versions/c-/cpp-async.json new file mode 100644 index 00000000000..648cf85f0bc --- /dev/null +++ b/versions/c-/cpp-async.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "f1eaddcca26f72bb7be5a6227bffd3897798341c", + "version": "1.0.0", + "port-version": 0 + } + ] +}