[g3log] Add dynamic-logging feature (#47224)

This commit is contained in:
Jonathan Sweemer 2025-09-08 15:59:58 +09:00 committed by GitHub
parent c14fd46aa4
commit db2808a4dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 19 additions and 3 deletions

View File

@ -10,9 +10,14 @@ vcpkg_from_github(
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" G3_SHARED_LIB)
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "dynamic" G3_SHARED_RUNTIME)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
dynamic-logging USE_DYNAMIC_LOGGING_LEVELS
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
OPTIONS ${FEATURE_OPTIONS}
-DG3_SHARED_LIB=${G3_SHARED_LIB} # Options.cmake
-DG3_SHARED_RUNTIME=${G3_SHARED_RUNTIME} # Options.cmake
-DADD_FATAL_EXAMPLE=OFF

View File

@ -1,6 +1,7 @@
{
"name": "g3log",
"version": "2.6",
"port-version": 1,
"description": "Asynchronous logger with Dynamic Sinks",
"homepage": "https://github.com/KjellKod/g3log",
"license": "Unlicense",
@ -14,5 +15,10 @@
"name": "vcpkg-cmake-config",
"host": true
}
]
],
"features": {
"dynamic-logging": {
"description": "Enable dynamic logging levels"
}
}
}

View File

@ -3138,7 +3138,7 @@
},
"g3log": {
"baseline": "2.6",
"port-version": 0
"port-version": 1
},
"gainput": {
"baseline": "1.0.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3e1548337703da81e267235ed5a4416888be4580",
"version": "2.6",
"port-version": 1
},
{
"git-tree": "f20671b45e773a71b84f8c8ae9bb0b8105b3cdce",
"version": "2.6",