[netcpp] new port (#40245)

Co-authored-by: MonicaLiu <110024546+MonicaLiu0311@users.noreply.github.com>
This commit is contained in:
한태현 2024-08-06 16:44:46 +09:00 committed by GitHub
parent 07c9f1e31b
commit 4a405540d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,22 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO index1207/netcpp
REF "v${VERSION}"
SHA512 5f4f99a65ce373f1712bf8fb90e5de4f9945f3467e6535e69fad49898fd8dae1fa534e27070d16557b05ee9fa4e3551900062f6c8220a2bd3b197cce82a57182
HEAD_REF release
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/netcpp PACKAGE_NAME netcpp)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)

4
ports/netcpp/usage Normal file
View File

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

19
ports/netcpp/vcpkg.json Normal file
View File

@ -0,0 +1,19 @@
{
"name": "netcpp",
"version": "0.3.4",
"description": "A simple asynchronous network library",
"homepage": "https://github.com/index1207/netcpp",
"license": "MIT",
"supports": "windows",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
"winsock2"
]
}

View File

@ -6192,6 +6192,10 @@
"baseline": "4.3.1",
"port-version": 5
},
"netcpp": {
"baseline": "0.3.4",
"port-version": 0
},
"netgen": {
"baseline": "6.2.2401",
"port-version": 2

9
versions/n-/netcpp.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "367142eff1e20648f9eda61fb0544233e255c806",
"version": "0.3.4",
"port-version": 0
}
]
}