mirror of https://github.com/microsoft/vcpkg.git
[neko-log] Add new port (#48478)
This commit is contained in:
parent
c70c929e48
commit
e492ceb4cf
|
|
@ -0,0 +1,26 @@
|
|||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO moehoshio/NekoLog
|
||||
REF v1.0.6
|
||||
SHA512 acd86782fab0d3be5e1b4a4b54819b73018d9c14d2347a21d96e01fb2f7cf3641dc83b2363320d0564ad8cc77bb71ad6880dacc55aee8af77a04390d5f509d3c
|
||||
HEAD_REF main
|
||||
)
|
||||
|
||||
set(VCPKG_BUILD_TYPE release)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DNEKO_LOG_BUILD_TESTS=OFF
|
||||
-DNEKO_LOG_AUTO_FETCH_DEPS=OFF
|
||||
-DNEKO_LOG_ENABLE_MODULE=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/NekoLog PACKAGE_NAME nekolog)
|
||||
|
||||
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}")
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
NekoLog provides CMake targets:
|
||||
|
||||
find_package(NekoLog CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE Neko::Log)
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"name": "neko-log",
|
||||
"version": "1.0.6",
|
||||
"description": "An easy-to-use, modern, lightweight, and efficient C++20 logging library",
|
||||
"homepage": "https://github.com/moehoshio/NekoLog",
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
"neko-schema",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -6796,6 +6796,10 @@
|
|||
"baseline": "1.0.11",
|
||||
"port-version": 0
|
||||
},
|
||||
"neko-log": {
|
||||
"baseline": "1.0.6",
|
||||
"port-version": 0
|
||||
},
|
||||
"neko-schema": {
|
||||
"baseline": "1.1.4",
|
||||
"port-version": 0
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "54d5d66ee783ba6aa5ca2d39d3bf55d2f7551597",
|
||||
"version": "1.0.6",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue