aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/constexpr-contracts
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/constexpr-contracts')
-rw-r--r--vcpkg/ports/constexpr-contracts/portfile.cmake19
-rw-r--r--vcpkg/ports/constexpr-contracts/vcpkg.json17
2 files changed, 36 insertions, 0 deletions
diff --git a/vcpkg/ports/constexpr-contracts/portfile.cmake b/vcpkg/ports/constexpr-contracts/portfile.cmake
new file mode 100644
index 0000000..c1334bb
--- /dev/null
+++ b/vcpkg/ports/constexpr-contracts/portfile.cmake
@@ -0,0 +1,19 @@
+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 main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(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/vcpkg/ports/constexpr-contracts/vcpkg.json b/vcpkg/ports/constexpr-contracts/vcpkg.json
new file mode 100644
index 0000000..5a4e0d7
--- /dev/null
+++ b/vcpkg/ports/constexpr-contracts/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "constexpr-contracts",
+ "version-date": "2020-08-09",
+ "port-version": 3,
+ "description": "A constexpr-friendly, optimisation-friendly contracts library.",
+ "homepage": "https://github.com/cjdb/constexpr-contracts",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}