diff options
| author | Christopher Di Bella <cjdb.ns@gmail.com> | 2020-08-13 13:33:59 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-13 13:33:59 -0700 |
| commit | e1a0367273a71a6dd9826b5b177ffc302dafcaaa (patch) | |
| tree | 1e61a5dfc83217dcb1effa043c6c64b8d2dbdbab | |
| parent | 4935f12b6d1ed030efe7783e8987a1a2b382859f (diff) | |
| download | vcpkg-e1a0367273a71a6dd9826b5b177ffc302dafcaaa.tar.gz vcpkg-e1a0367273a71a6dd9826b5b177ffc302dafcaaa.zip | |
[constexpr-contracts] Adds new port (#12818)
* adds constexpr-contracts to vcpkg
* Update ports/constexpr-contracts/CONTROL
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com>
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com>
| -rw-r--r-- | ports/constexpr-contracts/CONTROL | 4 | ||||
| -rw-r--r-- | ports/constexpr-contracts/portfile.cmake | 20 | ||||
| -rw-r--r-- | scripts/ci.baseline.txt | 1 |
3 files changed, 25 insertions, 0 deletions
diff --git a/ports/constexpr-contracts/CONTROL b/ports/constexpr-contracts/CONTROL new file mode 100644 index 000000000..515b9b2b5 --- /dev/null +++ b/ports/constexpr-contracts/CONTROL @@ -0,0 +1,4 @@ +Source: constexpr-contracts +Version: 2020-08-09 +Homepage: https://github.com/cjdb/constexpr-contracts +Description: A constexpr-friendly, optimisation-friendly contracts library. diff --git a/ports/constexpr-contracts/portfile.cmake b/ports/constexpr-contracts/portfile.cmake new file mode 100644 index 000000000..0a6e167b5 --- /dev/null +++ b/ports/constexpr-contracts/portfile.cmake @@ -0,0 +1,20 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO cjdb/constexpr-contracts + REF 58154e9010cb80aad4e95ef6f1835ebd7db3780a # commit 2020-05-25 + SHA512 b634267a4044cd712c8e52f65cd305f437864cab591f2b22104581f70b305ba52889dd46724e6047386463a010ee78fdd951411ea3691b5725d52d13f7adda76 + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA +) + +vcpkg_install_cmake() +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/constexpr-contracts) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib + ${CURRENT_PACKAGES_DIR}/debug) +file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index 9bf7bcf16..0ca4b30d9 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -232,6 +232,7 @@ coin:arm64-windows=fail coin:arm-uwp=fail coin:x64-uwp=fail collada-dom:x64-windows-static=fail +constexpr-contracts:x64-linux=fail coolprop:arm-uwp=fail coolprop:x64-linux=fail coolprop:x64-osx=fail |
