diff --git a/ports/toomanycooks/portfile.cmake b/ports/toomanycooks/portfile.cmake new file mode 100644 index 0000000000..c13e520fa4 --- /dev/null +++ b/ports/toomanycooks/portfile.cmake @@ -0,0 +1,29 @@ +set(VCPKG_BUILD_TYPE release) # header-only port + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO tzcnt/TooManyCooks + REF e3e1e5f399a9c02ad3665ad87b181e868ce8f8c0 + SHA512 17e0aff92c848009793f4712202764e3d0ec2ed388a8b807cc31e12977b1dc2bdf9f2ac67177c9dc1bfac2691c721eecbef8bfffeb79539d0d48464697da539d + HEAD_REF main +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DTMC_USE_HWLOC=ON + -DTMC_USE_BOOST_ASIO=ON +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME TooManyCooks CONFIG_PATH lib/cmake/TooManyCooks) + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug" + "${CURRENT_PACKAGES_DIR}/lib" + "${CURRENT_PACKAGES_DIR}/licenses" +) + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/toomanycooks/usage b/ports/toomanycooks/usage new file mode 100644 index 0000000000..d2f372b1d5 --- /dev/null +++ b/ports/toomanycooks/usage @@ -0,0 +1,8 @@ +toomanycooks provides CMake targets: + + find_package(TooManyCooks CONFIG REQUIRED) + target_link_libraries(main PRIVATE TooManyCooks::TooManyCooks) + +Additional configurations, including replacing the boost-asio backend with standalone asio, +are available via the overlay port located in the library repo: +https://github.com/tzcnt/TooManyCooks/tree/main/ports/toomanycooks diff --git a/ports/toomanycooks/vcpkg.json b/ports/toomanycooks/vcpkg.json new file mode 100644 index 0000000000..d0d555c955 --- /dev/null +++ b/ports/toomanycooks/vcpkg.json @@ -0,0 +1,21 @@ +{ + "name": "toomanycooks", + "version": "1.5.0", + "description": "The C++20 coroutine framework with no compromises. Excellent performance, simple syntax, and powerful features.", + "homepage": "https://github.com/tzcnt/TooManyCooks", + "documentation": "https://fleetcode.com/oss/tmc/docs", + "license": "BSL-1.0", + "supports": "!uwp & !android", + "dependencies": [ + "boost-asio", + "hwloc", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index de38579cd2..b77a352104 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -10192,6 +10192,10 @@ "baseline": "1.0.1", "port-version": 0 }, + "toomanycooks": { + "baseline": "1.5.0", + "port-version": 0 + }, "torch-th": { "baseline": "2019-04-19", "port-version": 6 diff --git a/versions/t-/toomanycooks.json b/versions/t-/toomanycooks.json new file mode 100644 index 0000000000..9e585e831b --- /dev/null +++ b/versions/t-/toomanycooks.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "b298f7e7678fc4a7c2d3478e50f090d714a80e32", + "version": "1.5.0", + "port-version": 0 + } + ] +}