aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/vit-vit-ctpl
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/vit-vit-ctpl')
-rw-r--r--vcpkg/ports/vit-vit-ctpl/portfile.cmake24
-rw-r--r--vcpkg/ports/vit-vit-ctpl/vcpkg.json25
2 files changed, 49 insertions, 0 deletions
diff --git a/vcpkg/ports/vit-vit-ctpl/portfile.cmake b/vcpkg/ports/vit-vit-ctpl/portfile.cmake
new file mode 100644
index 0000000..3a25a10
--- /dev/null
+++ b/vcpkg/ports/vit-vit-ctpl/portfile.cmake
@@ -0,0 +1,24 @@
+# Header-only library
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO vit-vit/ctpl
+ REF "ctpl_v.${VERSION}"
+ SHA512 5ab83a342e70559687c15f9ab8e7ca47d609713d64bf4248f05b9f311fddb44502ccd54d8352193c00ae570ebde3ea1149389ecdd0207ef46325eb8b648fb0e3
+ HEAD_REF master
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ lockfree WITH_LOCKFREE
+)
+
+if(WITH_LOCKFREE)
+ file(INSTALL "${SOURCE_PATH}/ctpl.h"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/include")
+endif()
+
+file(INSTALL "${SOURCE_PATH}/ctpl_stl.h"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/include")
+
+# Handle copyright
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/vit-vit-ctpl/vcpkg.json b/vcpkg/ports/vit-vit-ctpl/vcpkg.json
new file mode 100644
index 0000000..c650a6c
--- /dev/null
+++ b/vcpkg/ports/vit-vit-ctpl/vcpkg.json
@@ -0,0 +1,25 @@
+{
+ "name": "vit-vit-ctpl",
+ "version": "0.0.2",
+ "description": "Modern and efficient C++ Thread Pool Library",
+ "homepage": "https://github.com/vit-vit/ctpl",
+ "license": "Apache-2.0",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ],
+ "features": {
+ "lockfree": {
+ "description": "Depends on Boost Lockfree Queue library",
+ "dependencies": [
+ "boost-lockfree"
+ ]
+ }
+ }
+}