mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 02:29:00 +08:00
[Log4cxx] add features (#41928)
Co-authored-by: Stephen Webb <swebb2066@gmail.com>
This commit is contained in:
parent
0a5716d650
commit
23f96aeb4c
@ -10,9 +10,15 @@ vcpkg_extract_source_archive(
|
||||
fix-find-package.patch
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
qt LOG4CXX_QT_SUPPORT
|
||||
fmt ENABLE_FMT_LAYOUT
|
||||
)
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
${FEATURE_OPTIONS}
|
||||
-DLOG4CXX_INSTALL_PDB=OFF # Installing pdbs failed on debug static. So, disable it and let vcpkg_copy_pdbs() do it
|
||||
-DBUILD_TESTING=OFF
|
||||
)
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "log4cxx",
|
||||
"version": "1.2.0",
|
||||
"port-version": 1,
|
||||
"description": "Apache log4cxx is a logging framework for C++ patterned after Apache log4j, which uses Apache Portable Runtime for most platform-specific code and should be usable on any platform supported by APR",
|
||||
"homepage": "https://logging.apache.org/log4cxx",
|
||||
"license": "Apache-2.0",
|
||||
@ -17,5 +18,22 @@
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
],
|
||||
"features": {
|
||||
"fmt": {
|
||||
"description": "Include the log4cxx::FMTLayout class that uses libfmt to layout messages",
|
||||
"dependencies": [
|
||||
"fmt"
|
||||
]
|
||||
},
|
||||
"qt": {
|
||||
"description": "Allow QString values in the LOG4CXX_WARN, LOG4CXX_INFO, LOG4CXX_DEBUG etc. macros",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "qt5-base",
|
||||
"default-features": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5582,7 +5582,7 @@
|
||||
},
|
||||
"log4cxx": {
|
||||
"baseline": "1.2.0",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"loguru": {
|
||||
"baseline": "2.1.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "69b1cd84fe4dce29fda6b300bf18ebc8de1aa0de",
|
||||
"version": "1.2.0",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "d24b9474cf8ec8bca0ec3dce1f0d9e4a030836bd",
|
||||
"version": "1.2.0",
|
||||
|
Loading…
Reference in New Issue
Block a user