aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cpptrace
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/cpptrace
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/cpptrace')
-rw-r--r--vcpkg/ports/cpptrace/portfile.cmake23
-rw-r--r--vcpkg/ports/cpptrace/usage4
-rw-r--r--vcpkg/ports/cpptrace/vcpkg.json22
3 files changed, 49 insertions, 0 deletions
diff --git a/vcpkg/ports/cpptrace/portfile.cmake b/vcpkg/ports/cpptrace/portfile.cmake
new file mode 100644
index 0000000..d54f29a
--- /dev/null
+++ b/vcpkg/ports/cpptrace/portfile.cmake
@@ -0,0 +1,23 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO jeremy-rifkin/cpptrace
+ REF "v${VERSION}"
+ SHA512 e88edddbcdd423d49ed3adb02cf70580ee3a56065db4d81ca69d3f9f6d9b64ac27734842ca3b6d8ff45a548c25900a88f979e39d777af422a153e586d26ac5b5
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS -DCPPTRACE_USE_EXTERNAL_LIBDWARF=ON -DCPPTRACE_USE_EXTERNAL_ZSTD=ON -DCPPTRACE_VCPKG=ON
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(
+ PACKAGE_NAME "cpptrace"
+ CONFIG_PATH "lib/cmake/cpptrace"
+)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/cpptrace/usage b/vcpkg/ports/cpptrace/usage
new file mode 100644
index 0000000..eeebe20
--- /dev/null
+++ b/vcpkg/ports/cpptrace/usage
@@ -0,0 +1,4 @@
+cpptrace provides CMake targets:
+
+ find_package(cpptrace CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE cpptrace::cpptrace)
diff --git a/vcpkg/ports/cpptrace/vcpkg.json b/vcpkg/ports/cpptrace/vcpkg.json
new file mode 100644
index 0000000..756e5f0
--- /dev/null
+++ b/vcpkg/ports/cpptrace/vcpkg.json
@@ -0,0 +1,22 @@
+{
+ "name": "cpptrace",
+ "version": "1.0.4",
+ "description": "Simple, portable, and self-contained stacktrace library for C++11 and newer",
+ "homepage": "https://github.com/jeremy-rifkin/cpptrace",
+ "license": "MIT",
+ "supports": "!(uwp | android)",
+ "dependencies": [
+ {
+ "name": "libdwarf",
+ "platform": "!windows | mingw"
+ },
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}