mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 01:39:01 +08:00
[scope-guard] Add new port (#29821)
* Add port files for scope_guard * Add version for scope_guard * Update portfile.cmake with suggested changes * Update scope-guard.json --------- Co-authored-by: Frank <1433351828@qq.com>
This commit is contained in:
parent
1f6508708b
commit
5aa33f1076
12
ports/scope-guard/portfile.cmake
Normal file
12
ports/scope-guard/portfile.cmake
Normal file
@ -0,0 +1,12 @@
|
||||
# Header-only library
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ricab/scope_guard
|
||||
REF "v${VERSION}"
|
||||
SHA512 48d75658c9f2c8770b6379f968ee498bc90b5e5e14f26c6e89ffd7d50a8230260db262da27fe4aa3c6c1b302fe73d9aa9a7c853e01adcf5a6313e3462d3a8407
|
||||
HEAD_REF main
|
||||
)
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/scope_guard.hpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
7
ports/scope-guard/vcpkg.json
Normal file
7
ports/scope-guard/vcpkg.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "scope-guard",
|
||||
"version-semver": "1.0.0",
|
||||
"description": "A public, general, simple, and fast C++11 scope guard that defends against implicitly ignored returns and optionally enforces noexcept at compile time (in C++17), all in a SFINAE-friendly maner.",
|
||||
"homepage": "https://github.com/ricab/scope_guard",
|
||||
"license": "Unlicense"
|
||||
}
|
@ -7036,6 +7036,10 @@
|
||||
"baseline": "1.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"scope-guard": {
|
||||
"baseline": "1.0.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"scottt-debugbreak": {
|
||||
"baseline": "1.0",
|
||||
"port-version": 0
|
||||
|
9
versions/s-/scope-guard.json
Normal file
9
versions/s-/scope-guard.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "84d4275d14e561b098485b74025ec3f57a2efb84",
|
||||
"version-semver": "1.0.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user