mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 01:59:00 +08:00
[vit-vit-ctpl] add port (#34956)
* add ctpl port files * add ctpl version * Code review
This commit is contained in:
parent
4e5e6b3fa6
commit
fe1e9f508e
24
ports/vit-vit-ctpl/portfile.cmake
Normal file
24
ports/vit-vit-ctpl/portfile.cmake
Normal file
@ -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")
|
25
ports/vit-vit-ctpl/vcpkg.json
Normal file
25
ports/vit-vit-ctpl/vcpkg.json
Normal file
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -8836,6 +8836,10 @@
|
||||
"baseline": "1.1.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"vit-vit-ctpl": {
|
||||
"baseline": "0.0.2",
|
||||
"port-version": 0
|
||||
},
|
||||
"vk-bootstrap": {
|
||||
"baseline": "0.7",
|
||||
"port-version": 1
|
||||
|
9
versions/v-/vit-vit-ctpl.json
Normal file
9
versions/v-/vit-vit-ctpl.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "05de52269dd018412cc3e79ea4fa116661d07c0f",
|
||||
"version": "0.0.2",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user