mirror of https://github.com/microsoft/vcpkg.git
[neko-network] Add new port (#48536)
This commit is contained in:
parent
7a29cb220b
commit
95b2189e24
|
|
@ -0,0 +1,21 @@
|
|||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO moehoshio/NekoNetwork
|
||||
REF v1.0.1
|
||||
SHA512 367b836c255234352b270253b8bde4f781ca317d16e019741eabacd0ca86941a2be95f8e94a1a04eaa9bd58ace83b26da862d935ef03c5ed1ceabac310812cf8
|
||||
HEAD_REF main
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DNEKO_NETWORK_BUILD_TESTS=OFF
|
||||
-DNEKO_NETWORK_AUTO_FETCH_DEPS=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/NekoNetwork PACKAGE_NAME nekonetwork)
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
NekoNetwork provides CMake targets:
|
||||
|
||||
find_package(NekoNetwork CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE Neko::Network)
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"name": "neko-network",
|
||||
"version": "1.0.1",
|
||||
"description": "Neko Network is a modern, easy-to-use, and efficient C++20 network library built on top of libcurl.",
|
||||
"homepage": "https://github.com/moehoshio/NekoNetwork",
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"dependencies": [
|
||||
"curl",
|
||||
"neko-function",
|
||||
"neko-schema",
|
||||
"neko-system",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"default-features": [
|
||||
"nlog"
|
||||
],
|
||||
"features": {
|
||||
"nlog": {
|
||||
"description": "Use nlog as the default logger.",
|
||||
"dependencies": [
|
||||
"neko-log"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -6804,6 +6804,10 @@
|
|||
"baseline": "1.0.6",
|
||||
"port-version": 0
|
||||
},
|
||||
"neko-network": {
|
||||
"baseline": "1.0.1",
|
||||
"port-version": 0
|
||||
},
|
||||
"neko-schema": {
|
||||
"baseline": "1.1.4",
|
||||
"port-version": 0
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "62e58b2aea0cd7dca73ffe8a0c910dbe225570d1",
|
||||
"version": "1.0.1",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue