[slick-object-pool] new port (#48302)

Co-authored-by: kzhdev <kzhdev@gmail.com>
This commit is contained in:
freshthinking 2025-11-18 00:41:42 -06:00 committed by GitHub
parent 1063bb2987
commit 6b986b83a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,24 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO SlickQuant/slick_object_pool
REF "v${VERSION}"
SHA512 fa1aac51f829b92ae297f0e4bc469af374e80c464d1e644139482782fa95ada99fd4e5b77b2fab6741c851afa612364a1d908eeb27a611c043720a3c47e1a986
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_SLICK_OBJECTPOOL_TESTS=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/slick_object_pool)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

View File

@ -0,0 +1,4 @@
slick-object-pool is header-only and can be used from CMake via:
find_package(slick_object_pool CONFIG REQUIRED)
target_link_libraries(main PRIVATE slick::slick_object_pool)

View File

@ -0,0 +1,19 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "slick-object-pool",
"version": "0.1.2",
"description": "A high-performance, lock-free object pool for C++20 with multi-threading support",
"homepage": "https://github.com/SlickQuant/slick_object_pool",
"license": "MIT",
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -9064,6 +9064,10 @@
"baseline": "2025-02-08",
"port-version": 0
},
"slick-object-pool": {
"baseline": "0.1.2",
"port-version": 0
},
"slick-logger": {
"baseline": "1.0.1",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "f04d9b77888512324e08d6380a9e9d6a58741c9d",
"version": "0.1.2",
"port-version": 0
}
]
}