[slick-socket] add new port (#49829)

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
kzhdev 2026-02-06 19:40:30 -08:00 committed by GitHub
parent 6283825b81
commit afcc8a3cdf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 74 additions and 0 deletions

View File

@ -0,0 +1,34 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO SlickQuant/slick-socket
REF "v${VERSION}"
SHA512 92e06ba13bdc08991b3b41b7b4d0acfa6585b478dda267ece8082b8bac11590c71fc0e3509703565048dfe97612f9ab577ca87ab1cf694ef52affe347f32a6e9
HEAD_REF main
)
# Header-only library (header-only wrapper, links to wepoll on Windows)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_SLICK_SOCKET_EXAMPLES=OFF
-DBUILD_SLICK_SOCKET_TESTING=OFF
)
vcpkg_cmake_install()
# Fix up CMake config files
vcpkg_cmake_config_fixup(
PACKAGE_NAME slick-socket
CONFIG_PATH lib/cmake/slick-socket
)
# Header-only library - remove lib and debug directories
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
# Install license
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
# Install usage
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

4
ports/slick-socket/usage Normal file
View File

@ -0,0 +1,4 @@
slick-socket provides CMake targets:
find_package(slick-socket CONFIG REQUIRED)
target_link_libraries(main PRIVATE slick::socket)

View File

@ -0,0 +1,23 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "slick-socket",
"version-semver": "1.0.6",
"description": "A C++20 networking library providing cross-platform TCP and UDP multicast communication.",
"homepage": "https://github.com/SlickQuant/slick-socket",
"license": "MIT",
"supports": "windows | linux | osx",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
{
"name": "wepoll",
"platform": "windows"
}
]
}

View File

@ -9180,6 +9180,10 @@
"baseline": "0.1.4",
"port-version": 0
},
"slick-socket": {
"baseline": "1.0.6",
"port-version": 0
},
"slikenet": {
"baseline": "2021-06-07",
"port-version": 3

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "4246b5674e9a0885dc87e558e4ba78099ccebfa3",
"version-semver": "1.0.6",
"port-version": 0
}
]
}