aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cpp-async
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/cpp-async
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/cpp-async')
-rw-r--r--vcpkg/ports/cpp-async/portfile.cmake13
-rw-r--r--vcpkg/ports/cpp-async/usage4
-rw-r--r--vcpkg/ports/cpp-async/vcpkg.json7
3 files changed, 24 insertions, 0 deletions
diff --git a/vcpkg/ports/cpp-async/portfile.cmake b/vcpkg/ports/cpp-async/portfile.cmake
new file mode 100644
index 0000000..ed15312
--- /dev/null
+++ b/vcpkg/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 3ee150d37b8d5f9f4153407a796ec23b10d567bc316253091cf1f052ad96a1097e730496db49ec1333d3a824856a5d242500dfe6b8bba4a1e0ac942168548df9
+ 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/vcpkg/ports/cpp-async/usage b/vcpkg/ports/cpp-async/usage
new file mode 100644
index 0000000..13d5608
--- /dev/null
+++ b/vcpkg/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/vcpkg/ports/cpp-async/vcpkg.json b/vcpkg/ports/cpp-async/vcpkg.json
new file mode 100644
index 0000000..81594cd
--- /dev/null
+++ b/vcpkg/ports/cpp-async/vcpkg.json
@@ -0,0 +1,7 @@
+{
+ "name": "cpp-async",
+ "version": "1.2.0",
+ "description": "Support types and functions for C++20 coroutines",
+ "homepage": "https://github.com/microsoft/cpp-async",
+ "license": "MIT"
+}