Skip to content

Commit

Permalink
[backward-cpp] new port (#30101)
Browse files Browse the repository at this point in the history
* [backward-cpp] new port

* Update ports/backward-cpp/portfile.cmake

Co-authored-by: jim wang <[email protected]>

* fix version after patch

* backward is header only

* disable arm and uwp

* disable only windows arm

---------

Co-authored-by: jim wang <[email protected]>
  • Loading branch information
fran6co and jimwang118 authored Mar 30, 2023
1 parent a095d44 commit 4ee9010
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ports/backward-cpp/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO bombela/backward-cpp
REF "v${VERSION}"
SHA512 db0256a54819952ff1d92e05d6ab81fe979d4826ebb6651b6b08c30e7a0091879dfeff33d81f9599462152ce68e61e2c8c42bf039129bc6b28d1e68b1eab039b
HEAD_REF master
)

set(VCPKG_BUILD_TYPE release) # header-only

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME Backward CONFIG_PATH lib/backward)

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
17 changes: 17 additions & 0 deletions ports/backward-cpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "backward-cpp",
"version": "1.6",
"description": "A beautiful stack trace pretty printer for C++",
"homepage": "https://github.com/bombela/backward-cpp",
"supports": "!uwp & !(windows & arm)",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
9 changes: 9 additions & 0 deletions versions/b-/backward-cpp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "9f204819a5063dea81b56369e5ce424219e56ca5",
"version": "1.6",
"port-version": 0
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,10 @@
"baseline": "2.0.0.1",
"port-version": 2
},
"backward-cpp": {
"baseline": "1.6",
"port-version": 0
},
"basisu": {
"baseline": "1.11",
"port-version": 7
Expand Down

0 comments on commit 4ee9010

Please sign in to comment.