[snitch] Add new port (#36499)

* Add snitch library to vcpkg

* version database
This commit is contained in:
Andrey Nekrasov 2024-02-01 21:18:08 +01:00 committed by GitHub
parent 55ac9ea4a9
commit c89c3507e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,23 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO snitch-org/snitch
REF v1.2.4
SHA512 783c4667d5c75d5d719d6c85a47ee795099256bacd01324d9bd5550be5f77be265f3372190b89ac109a11479bbf99f90a9e7afb32e6bdfeaab3a936ad50a219a
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DSNITCH_DEFINE_MAIN=0
-DCMAKE_CXX_STANDARD=20
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(
CONFIG_PATH lib/cmake/snitch
)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

17
ports/snitch/vcpkg.json Normal file
View File

@ -0,0 +1,17 @@
{
"name": "snitch",
"version": "1.2.4",
"description": "Lightweight C++20 testing framework.",
"homepage": "https://github.com/snitch-org/snitch",
"license": "BSL-1.0",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -8052,6 +8052,10 @@
"baseline": "0",
"port-version": 2
},
"snitch": {
"baseline": "1.2.4",
"port-version": 0
},
"snowhouse": {
"baseline": "5.0.0",
"port-version": 2

9
versions/s-/snitch.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "565f1464cf23c18da8ac0f547d3907f732249957",
"version": "1.2.4",
"port-version": 0
}
]
}