aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/coroutine/portfile.cmake
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/coroutine/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/coroutine/portfile.cmake')
-rw-r--r--vcpkg/ports/coroutine/portfile.cmake32
1 files changed, 32 insertions, 0 deletions
diff --git a/vcpkg/ports/coroutine/portfile.cmake b/vcpkg/ports/coroutine/portfile.cmake
new file mode 100644
index 0000000..fb349a2
--- /dev/null
+++ b/vcpkg/ports/coroutine/portfile.cmake
@@ -0,0 +1,32 @@
+if(VCPKG_TARGET_IS_LINUX)
+ message("Warning: `coroutine` requires libc++ and Clang or GCC 10+ on Linux")
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO luncliff/coroutine
+ REF 1.5.0
+ SHA512 61b91fdc641b6905b884e99c5bf193ec2cf6962144ab3baafdb9432115757d96f3797f116b30356f0d21417b23082bc908f75042721caeab3329c4910b654594
+ HEAD_REF master
+ PATCHES
+ fix-errorC7651.patch
+ add-noexcept-to-frame.patch
+ gsl-4_0_0.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ "-DGSL_INCLUDE_DIR=${CURRENT_INSTALLED_DIR}/include"
+ -DBUILD_TESTING=False
+)
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup()
+
+file(INSTALL "${SOURCE_PATH}/LICENSE"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
+ RENAME copyright
+)
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")