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/task-thread-pool | |
Diffstat (limited to 'vcpkg/ports/task-thread-pool')
| -rw-r--r-- | vcpkg/ports/task-thread-pool/find-threads.patch | 14 | ||||
| -rw-r--r-- | vcpkg/ports/task-thread-pool/fix-header-file-path.patch | 13 | ||||
| -rw-r--r-- | vcpkg/ports/task-thread-pool/portfile.cmake | 25 | ||||
| -rw-r--r-- | vcpkg/ports/task-thread-pool/vcpkg.json | 18 |
4 files changed, 70 insertions, 0 deletions
diff --git a/vcpkg/ports/task-thread-pool/find-threads.patch b/vcpkg/ports/task-thread-pool/find-threads.patch new file mode 100644 index 0000000..26497f5 --- /dev/null +++ b/vcpkg/ports/task-thread-pool/find-threads.patch @@ -0,0 +1,14 @@ +diff --git a/cmake/config.cmake.in b/cmake/config.cmake.in +index 6e1cd02..712ed1b 100644 +--- a/cmake/config.cmake.in ++++ b/cmake/config.cmake.in +@@ -1,6 +1,9 @@ + + @PACKAGE_INIT@ + ++include(CMakeFindDependencyMacro) ++find_dependency(Threads) ++ + include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake") + + set_and_check(@PROJECT_NAME@_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@") diff --git a/vcpkg/ports/task-thread-pool/fix-header-file-path.patch b/vcpkg/ports/task-thread-pool/fix-header-file-path.patch new file mode 100644 index 0000000..15a1d3a --- /dev/null +++ b/vcpkg/ports/task-thread-pool/fix-header-file-path.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c155ade..319351c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -23,7 +23,7 @@ target_include_directories( + $<BUILD_INTERFACE:${${PROJECT_NAME}_SOURCE_DIR}/include> + $<INSTALL_INTERFACE:include>) + +-set(HEADER_FILES task_thread_pool.hpp) ++set(HEADER_FILES include/task_thread_pool.hpp) + + set_target_properties(${PROJECT_NAME} PROPERTIES PUBLIC_HEADER "${HEADER_FILES}") + diff --git a/vcpkg/ports/task-thread-pool/portfile.cmake b/vcpkg/ports/task-thread-pool/portfile.cmake new file mode 100644 index 0000000..82f5481 --- /dev/null +++ b/vcpkg/ports/task-thread-pool/portfile.cmake @@ -0,0 +1,25 @@ +set(VCPKG_BUILD_TYPE release) # Header-only library + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO alugowski/task-thread-pool + REF v${VERSION} + SHA512 9ab656fe75dcdafa1fee3fe3d227e8302628894b8dc7d65f80f5d28e7b989dfe299f4f1b5d9c179f238b46b60315fc0be0ff30fdbde570c5709cf2fa4251042e + HEAD_REF main + PATCHES + fix-header-file-path.patch + find-threads.patch +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + ${FEATURE_OPTIONS} + -DTASK_THREAD_POOL_TEST=OFF + -DTASK_THREAD_POOL_BENCH=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME task_thread_pool CONFIG_PATH share/cmake/task_thread_pool) + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE-BSD.txt" "${SOURCE_PATH}/LICENSE-Boost.txt" "${SOURCE_PATH}/LICENSE-MIT.txt") diff --git a/vcpkg/ports/task-thread-pool/vcpkg.json b/vcpkg/ports/task-thread-pool/vcpkg.json new file mode 100644 index 0000000..90c29bb --- /dev/null +++ b/vcpkg/ports/task-thread-pool/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "task-thread-pool", + "version": "1.0.10", + "description": "Fast and lightweight thread pool for C++11 and newer.", + "homepage": "https://github.com/alugowski/task-thread-pool", + "documentation": "https://github.com/alugowski/task-thread-pool/blob/main/README.md", + "license": "BSD-2-Clause OR MIT OR BSL-1.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |