diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libfork | |
Diffstat (limited to 'vcpkg/ports/libfork')
| -rw-r--r-- | vcpkg/ports/libfork/portfile.cmake | 24 | ||||
| -rw-r--r-- | vcpkg/ports/libfork/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/libfork/vcpkg.json | 18 |
3 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/libfork/portfile.cmake b/vcpkg/ports/libfork/portfile.cmake new file mode 100644 index 0000000..b2df3fe --- /dev/null +++ b/vcpkg/ports/libfork/portfile.cmake @@ -0,0 +1,24 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO conorwilliams/libfork + REF "v${VERSION}" + SHA512 38a8a6fe0f360f1caa123b227996490f192f8b58340ecb5d91922c15d7ca9b364031716e139a3ab0d89cd7cdf3bfb22fcf75272e76a40513c55adaf00ff6454d + HEAD_REF main +) + +vcpkg_find_acquire_program(PKGCONFIG) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS "-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}" +) + +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/vcpkg/ports/libfork/usage b/vcpkg/ports/libfork/usage new file mode 100644 index 0000000..06d186a --- /dev/null +++ b/vcpkg/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/vcpkg/ports/libfork/vcpkg.json b/vcpkg/ports/libfork/vcpkg.json new file mode 100644 index 0000000..9860564 --- /dev/null +++ b/vcpkg/ports/libfork/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "libfork", + "version": "3.8.0", + "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": [ + "hwloc", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |