From 1ef1ed0d82c7418b5314cf334b67afd1762e90d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Kranjc?= Date: Fri, 8 Jan 2021 21:01:00 +0100 Subject: [type-safe] New port. (#15468) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [type-safe] New port. [debug-assert] Added as it is a dependency. * [type-safe] Formatting fix. * [debug-assert] Add homepage to vcpkg.json Co-authored-by: Blaž Kranjc --- ports/debug-assert/portfile.cmake | 24 ++++++++++++++++++++++++ ports/debug-assert/vcpkg.json | 6 ++++++ 2 files changed, 30 insertions(+) create mode 100644 ports/debug-assert/portfile.cmake create mode 100644 ports/debug-assert/vcpkg.json (limited to 'ports/debug-assert') diff --git a/ports/debug-assert/portfile.cmake b/ports/debug-assert/portfile.cmake new file mode 100644 index 000000000..41f9385ff --- /dev/null +++ b/ports/debug-assert/portfile.cmake @@ -0,0 +1,24 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO foonathan/debug_assert + REF 0144b6532ec80349780ffac3cf85a92d87eb7b1b + SHA512 16cf38406d5f71585b763ff8af59b09c7b8b05372b07714cdc82f6f27292597c0b6d9025f823515744f8235b326b95e1d630af34db4a0e15d4ded79364290630 + HEAD_REF v1.3.3 +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DDEBUG_ASSERT_INSTALL=ON +) + +vcpkg_install_cmake() + +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/debug_assert TARGET_PATH share/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/ports/debug-assert/vcpkg.json b/ports/debug-assert/vcpkg.json new file mode 100644 index 000000000..413b23d30 --- /dev/null +++ b/ports/debug-assert/vcpkg.json @@ -0,0 +1,6 @@ +{ + "name": "debug-assert", + "version-string": "1.3.3", + "description": "Provides flexible DEBUG_ASSERT() macro.", + "homepage": "https://github.com/foonathan/debug_assert" +} -- cgit v1.2.3