diff options
| author | Blaž Kranjc <blaz.kranjc91@gmail.com> | 2021-01-08 21:01:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-08 12:01:00 -0800 |
| commit | 1ef1ed0d82c7418b5314cf334b67afd1762e90d2 (patch) | |
| tree | bde7ad1b9997514de858dbc828a33912770a126d /ports/debug-assert | |
| parent | 271f58aa0c89cfbf066e1679531c5b02c605ee42 (diff) | |
| download | vcpkg-1ef1ed0d82c7418b5314cf334b67afd1762e90d2.tar.gz vcpkg-1ef1ed0d82c7418b5314cf334b67afd1762e90d2.zip | |
[type-safe] New port. (#15468)
* [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 <bkranjc@cosylab.lan>
Diffstat (limited to 'ports/debug-assert')
| -rw-r--r-- | ports/debug-assert/portfile.cmake | 24 | ||||
| -rw-r--r-- | ports/debug-assert/vcpkg.json | 6 |
2 files changed, 30 insertions, 0 deletions
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" +} |
