mirror of https://github.com/microsoft/vcpkg.git
Enable [compact] feature for pugixml port, reducing memory consumption (#47627)
Co-authored-by: Marton Ady <marton.ady@cern.ch>
This commit is contained in:
parent
70b56f6ad7
commit
26edb47cb0
|
|
@ -6,10 +6,17 @@ vcpkg_from_github(
|
|||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_check_features(
|
||||
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
compact PUGIXML_COMPACT
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DPUGIXML_BUILD_TESTS=OFF
|
||||
${FEATURE_OPTIONS}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "pugixml",
|
||||
"version": "1.15",
|
||||
"port-version": 1,
|
||||
"description": "Light-weight, simple and fast XML parser for C++ with XPath support",
|
||||
"homepage": "https://github.com/zeux/pugixml",
|
||||
"license": "MIT",
|
||||
|
|
@ -13,5 +14,10 @@
|
|||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
],
|
||||
"features": {
|
||||
"compact": {
|
||||
"description": "Enable compact memory mode (reduces memory consumption at the cost of performance)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7766,7 +7766,7 @@
|
|||
},
|
||||
"pugixml": {
|
||||
"baseline": "1.15",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"pulsar-client-cpp": {
|
||||
"baseline": "3.7.0",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "e210d4650721b32c1e83bf0da6a0cf4c145bbbd9",
|
||||
"version": "1.15",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "a3181de4dee35567b45611a938eb0f44f5ee016d",
|
||||
"version": "1.15",
|
||||
|
|
|
|||
Loading…
Reference in New Issue