aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/dp-thread-pool
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/dp-thread-pool')
-rw-r--r--vcpkg/ports/dp-thread-pool/include.diff13
-rw-r--r--vcpkg/ports/dp-thread-pool/portfile.cmake31
-rw-r--r--vcpkg/ports/dp-thread-pool/vcpkg.json19
3 files changed, 63 insertions, 0 deletions
diff --git a/vcpkg/ports/dp-thread-pool/include.diff b/vcpkg/ports/dp-thread-pool/include.diff
new file mode 100644
index 0000000..3655fa2
--- /dev/null
+++ b/vcpkg/ports/dp-thread-pool/include.diff
@@ -0,0 +1,13 @@
+diff --git a/include/thread_pool/thread_pool.h b/include/thread_pool/thread_pool.h
+index 4dbe54f..4b97ec5 100644
+--- a/include/thread_pool/thread_pool.h
++++ b/include/thread_pool/thread_pool.h
+@@ -15,7 +15,7 @@
+ # endif
+ #endif
+
+-#include "thread_pool/thread_safe_queue.h"
++#include "thread_safe_queue.h"
+
+ namespace dp {
+ namespace details {
diff --git a/vcpkg/ports/dp-thread-pool/portfile.cmake b/vcpkg/ports/dp-thread-pool/portfile.cmake
new file mode 100644
index 0000000..390c2d0
--- /dev/null
+++ b/vcpkg/ports/dp-thread-pool/portfile.cmake
@@ -0,0 +1,31 @@
+set(VCPKG_BUILD_TYPE release)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO DeveloperPaul123/thread-pool
+ REF ${VERSION}
+ SHA512 c2a75117f7def0dacc2679f8eb70835acfba58d1aba7beec9bf0a29cdb23883222294dc4b04b77e323f8ecb8623b70d728bee46bf2c5a4fd6711a749c9709981
+ HEAD_REF master
+ PATCHES
+ include.diff
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DTP_BUILD_TESTS=OFF
+ -DTP_BUILD_EXAMPLES=OFF
+ -DTP_BUILD_BENCHMARKS=OFF
+ -DTP_CXX_STANDARD=20
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(
+ PACKAGE_NAME thread-pool
+ CONFIG_PATH lib/cmake/thread-pool-${VERSION}
+)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/dp-thread-pool/vcpkg.json b/vcpkg/ports/dp-thread-pool/vcpkg.json
new file mode 100644
index 0000000..23667f6
--- /dev/null
+++ b/vcpkg/ports/dp-thread-pool/vcpkg.json
@@ -0,0 +1,19 @@
+{
+ "name": "dp-thread-pool",
+ "version": "0.7.0",
+ "port-version": 1,
+ "maintainers": "Paul Tsouchlos <developer.paul.123@gmail.com>",
+ "description": "dp::thread_pool - fast, lightweight C++20 thread pool.",
+ "homepage": "https://github.com/DeveloperPaul123/thread-pool",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}