Skip to content

Commit

Permalink
[constexpr-contracts] Adds new port (microsoft#12818)
Browse files Browse the repository at this point in the history
* adds constexpr-contracts to vcpkg

* Update ports/constexpr-contracts/CONTROL

Co-authored-by: NancyLi1013 <[email protected]>

* Apply suggestions from code review

Co-authored-by: ras0219 <[email protected]>

Co-authored-by: NancyLi1013 <[email protected]>
Co-authored-by: nicole mazzuca <[email protected]>
Co-authored-by: ras0219 <[email protected]>
  • Loading branch information
4 people authored Aug 13, 2020
1 parent 4935f12 commit e1a0367
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ports/constexpr-contracts/CONTROL
Original file line number Diff line number Diff line change
@@ -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.
20 changes: 20 additions & 0 deletions ports/constexpr-contracts/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)
1 change: 1 addition & 0 deletions scripts/ci.baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1a0367

Please sign in to comment.