aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/debug-assert
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/debug-assert
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/debug-assert')
-rw-r--r--vcpkg/ports/debug-assert/portfile.cmake23
-rw-r--r--vcpkg/ports/debug-assert/vcpkg.json16
2 files changed, 39 insertions, 0 deletions
diff --git a/vcpkg/ports/debug-assert/portfile.cmake b/vcpkg/ports/debug-assert/portfile.cmake
new file mode 100644
index 0000000..afac848
--- /dev/null
+++ b/vcpkg/ports/debug-assert/portfile.cmake
@@ -0,0 +1,23 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO foonathan/debug_assert
+ REF "v${VERSION}"
+ SHA512 0cc2f301e5f604501d29bab0e05ab9b667c1e0160003fc26da4f3edf747c761ff6d409cacc6bbe7fb15cd5caf9d3175fd4e88c0b066e659b41966916fab45ba8
+ HEAD_REF v1.3.3
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DDEBUG_ASSERT_INSTALL=ON
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/debug_assert PACKAGE_NAME debug_assert)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
+
+vcpkg_copy_pdbs()
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/debug-assert/vcpkg.json b/vcpkg/ports/debug-assert/vcpkg.json
new file mode 100644
index 0000000..81564b7
--- /dev/null
+++ b/vcpkg/ports/debug-assert/vcpkg.json
@@ -0,0 +1,16 @@
+{
+ "name": "debug-assert",
+ "version": "1.3.4",
+ "description": "Provides flexible DEBUG_ASSERT() macro.",
+ "homepage": "https://github.com/foonathan/debug_assert",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}