diff --git a/ports/libfork/portfile.cmake b/ports/libfork/portfile.cmake new file mode 100644 index 00000000000000..60615da61b4be3 --- /dev/null +++ b/ports/libfork/portfile.cmake @@ -0,0 +1,22 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO conorwilliams/libfork + REF "v${VERSION}" + SHA512 1e94f91924abdda8950af634896fcdc6317b6487a4b51619733758291d3fa2ba9004f9204440b2e6a827b5ba417503e7120e4d32cf3bb3a96495792efb14fcfc + HEAD_REF main +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(PACKAGE_NAME "libfork") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md") + +configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY) + diff --git a/ports/libfork/usage b/ports/libfork/usage new file mode 100644 index 00000000000000..06d186ab6471f1 --- /dev/null +++ b/ports/libfork/usage @@ -0,0 +1,4 @@ +libfork provides CMake targets: + + find_package(libfork CONFIG REQUIRED) + target_link_libraries(main PRIVATE libfork::libfork) diff --git a/ports/libfork/vcpkg.json b/ports/libfork/vcpkg.json new file mode 100644 index 00000000000000..1b6452402766c1 --- /dev/null +++ b/ports/libfork/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "libfork", + "version": "3.7.1", + "description": "A bleeding-edge, lock-free, wait-free, continuation-stealing fork-join library built on C++20's coroutines.", + "homepage": "https://github.com/conorwilliams/libfork", + "license": "MPL-2.0", + "dependencies": [ + "boost-atomic", + "hwloc", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index a05ce31e19b0aa..fa2e93e23b03c8 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4348,6 +4348,10 @@ "baseline": "1.1.4", "port-version": 0 }, + "libfork": { + "baseline": "3.7.1", + "port-version": 0 + }, "libfort": { "baseline": "0.4.2", "port-version": 1 diff --git a/versions/l-/libfork.json b/versions/l-/libfork.json new file mode 100644 index 00000000000000..8a44f4007526e3 --- /dev/null +++ b/versions/l-/libfork.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "5217dcb7548a52356e0ead8c0c671fa4ee4efa41", + "version": "3.7.1", + "port-version": 0 + } + ] +}