[boost-stacktrace] add libbacktrace (#40079)

Co-authored-by: Monica <liuyumei01@beyondsoft.com>
This commit is contained in:
moritz-h 2024-08-21 08:15:36 +02:00 committed by GitHub
parent 6f1de1de8e
commit abe69d7c9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 56 additions and 17 deletions

View File

@ -22,16 +22,10 @@
# When ON, builds the boost_stacktrace_windbg_cached library variant. Defaults to ON under Windows when WinDbg support is autodetected and when thread_local is supported, otherwise OFF. # When ON, builds the boost_stacktrace_windbg_cached library variant. Defaults to ON under Windows when WinDbg support is autodetected and when thread_local is supported, otherwise OFF.
list(APPEND FEATURE_OPTIONS vcpkg_check_features(
-DBOOST_STACKTRACE_ENABLE_BACKTRACE=OFF OUT_FEATURE_OPTIONS
) FEATURE_OPTIONS
FEATURES
if(VCPKG_TARGET_IS_WINDOWS) "backtrace" BOOST_STACKTRACE_ENABLE_BACKTRACE
list(APPEND FEATURE_OPTIONS "windbg" BOOST_STACKTRACE_ENABLE_WINDBG
-DBOOST_STACKTRACE_ENABLE_WINDBG=ON )
)
else()
list(APPEND FEATURE_OPTIONS
-DBOOST_STACKTRACE_ENABLE_WINDBG=OFF
)
endif()

View File

@ -2,7 +2,7 @@
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1", "$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
"name": "boost-stacktrace", "name": "boost-stacktrace",
"version": "1.85.0", "version": "1.85.0",
"port-version": 2, "port-version": 3,
"description": "Boost stacktrace module", "description": "Boost stacktrace module",
"homepage": "https://www.boost.org/libs/stacktrace", "homepage": "https://www.boost.org/libs/stacktrace",
"license": "BSL-1.0", "license": "BSL-1.0",
@ -40,5 +40,31 @@
"name": "boost-winapi", "name": "boost-winapi",
"version>=": "1.85.0" "version>=": "1.85.0"
} }
],
"default-features": [
{
"name": "backtrace",
"platform": "!windows"
},
{
"name": "windbg",
"platform": "windows"
}
],
"features": {
"backtrace": {
"description": "Use boost_stacktrace_backtrace",
"supports": "!windows",
"dependencies": [
{
"name": "libbacktrace",
"platform": "!windows"
}
] ]
},
"windbg": {
"description": "Use boost_stacktrace_windbg",
"supports": "windows"
}
}
} }

View File

@ -147,7 +147,21 @@ $portData = @{
} }
} }
} }
"boost-stacktrace" = @{ "supports" = "!uwp" }; "boost-stacktrace" = @{
"default-features" = @(@{ "name" = "backtrace"; "platform" = "!windows" }; @{ "name" = "windbg"; "platform" = "windows" });
"supports" = "!uwp";
"features" = @{
"backtrace" = @{
"description" = "Use boost_stacktrace_backtrace";
"supports" = "!windows";
"dependencies" = @(@{ "name" = "libbacktrace"; "platform" = "!windows" });
};
"windbg" = @{
"description" = "Use boost_stacktrace_windbg";
"supports" = "windows";
};
}
};
"boost-test" = @{ "supports" = "!uwp" }; "boost-test" = @{ "supports" = "!uwp" };
"boost-wave" = @{ "supports" = "!uwp" }; "boost-wave" = @{ "supports" = "!uwp" };
} }

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "a81aa3960c8e5eb5c5d3dbc77ba97b830c89667c",
"version": "1.85.0",
"port-version": 3
},
{ {
"git-tree": "0c354b5302458460959a9dd1ef3e80b813e8513a", "git-tree": "0c354b5302458460959a9dd1ef3e80b813e8513a",
"version": "1.85.0", "version": "1.85.0",

View File

@ -1222,7 +1222,7 @@
}, },
"boost-stacktrace": { "boost-stacktrace": {
"baseline": "1.85.0", "baseline": "1.85.0",
"port-version": 2 "port-version": 3
}, },
"boost-statechart": { "boost-statechart": {
"baseline": "1.85.0", "baseline": "1.85.0",