Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions ports/kissnet/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Ybalrid/kissnet
REF 6c2bbbc1a114d83f11cea86d4370766ac12fbbd0 # 2022-10-18
SHA512 40182631e1c32628380369b7f8ca4dbae2049b0c0480396efb6a8197cca5006c8b68bc64553182c129ef8366a52a2434fd4f134bf5ffa1c0303af80b2e2a8cee
HEAD_REF master
)

# Install the header-only library
file(INSTALL "${SOURCE_PATH}/kissnet.hpp"
DESTINATION "${CURRENT_PACKAGES_DIR}/include")

file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
4 changes: 4 additions & 0 deletions ports/kissnet/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The package kissnet is header only and can be used from CMake via:

find_path(KISSNET_INCLUDE_DIRS "kissnet.hpp")
target_include_directories(main PRIVATE ${KISSNET_INCLUDE_DIRS})
17 changes: 17 additions & 0 deletions ports/kissnet/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "kissnet",
"version-date": "2022-10-18",
"description": "Keep It Simple Stupid NETwork - C++17 wrapping of your OS's native socket API",
"homepage": "https://github.com/Ybalrid/kissnet",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3432,6 +3432,10 @@
"baseline": "2021-11-14",
"port-version": 0
},
"kissnet": {
"baseline": "2022-10-18",
"port-version": 0
},
"klein": {
"baseline": "2021-05-09",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/k-/kissnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "a8b6b18919cd26da45a720b5fb0b22fcc0282180",
"version-date": "2022-10-18",
"port-version": 0
}
]
}