[ng-log] Add new port (#46413)

This commit is contained in:
myd7349 2025-08-19 04:23:04 +08:00 committed by GitHub
parent 2d1606564a
commit 1b642417a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 74 additions and 0 deletions

View File

@ -0,0 +1,39 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ng-log/ng-log
REF "v${VERSION}"
SHA512 0685e92f5d147d162be71e666cfaae52aaf23b7f3e3d5bc1384345ac05dfd16e7163ff7c1c7d83a70fb00fb56a5c9be6a246c0690d9fb01ba2b5c1576ee8787b
HEAD_REF master
)
set(CROSSCOMP_OPTIONS "")
if(VCPKG_CROSSCOMPILING)
set(CROSSCOMP_OPTIONS -DHAVE_SYMBOLIZE_EXITCODE=0)
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_COMPAT=OFF
-DBUILD_EXAMPLES=OFF
-DBUILD_TESTING=OFF
-DPRINT_UNSYMBOLIZED_STACK_TRACES=OFF
-DWITH_GFLAGS=ON
-DWITH_GTEST=OFF
-DWITH_PKGCONFIG=ON
-DWITH_SYMBOLIZE=ON
-DWITH_TLS=ON
${CROSSCOMP_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")

22
ports/ng-log/vcpkg.json Normal file
View File

@ -0,0 +1,22 @@
{
"name": "ng-log",
"version": "0.8.2",
"description": "C++ library for application-level logging",
"homepage": "https://ng-log.github.io/ng-log/",
"license": "BSD-3-Clause",
"dependencies": [
"gflags",
{
"name": "libunwind",
"platform": "linux"
},
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -6688,6 +6688,10 @@
"baseline": "2.0.1",
"port-version": 4
},
"ng-log": {
"baseline": "0.8.2",
"port-version": 0
},
"nghttp2": {
"baseline": "1.66.0",
"port-version": 0

9
versions/n-/ng-log.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "2baad2edeaffc28162ace5cc5fc5744fab48bb92",
"version": "0.8.2",
"port-version": 0
}
]
}