aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorterens <37905314+TerensTare@users.noreply.github.com>2021-07-25 21:49:48 +0200
committerGitHub <noreply@github.com>2021-07-25 12:49:48 -0700
commitf894a2f39a22eed720059055c634be329c86eac2 (patch)
tree53f7c31b500ff93dfa708ce90eb58257d582451d /ports
parentd30657b5337d4563b3ca8204cf3187be15bc8e23 (diff)
downloadvcpkg-f894a2f39a22eed720059055c634be329c86eac2.tar.gz
vcpkg-f894a2f39a22eed720059055c634be329c86eac2.zip
[entt] add `experimental` feature (#18626)
* Update `entt/portfile.cmake` to support the new `experimental` feature. * Added the `experimental` feature on `entt/vcpkg.json`. * Small fix on `entt/vcpkg.json`. * Update vcpkg.json * New branch * Fixup * (Hopefully) fixed entt version * Require specifying `--head` for the feature * update version * update version * [entt] add experimental feature * update version * update vcpkg.json * update version Co-authored-by: Jonliu1993 <13720414433@163.com>
Diffstat (limited to 'ports')
-rw-r--r--ports/entt/portfile.cmake22
-rw-r--r--ports/entt/vcpkg.json8
2 files changed, 22 insertions, 8 deletions
diff --git a/ports/entt/portfile.cmake b/ports/entt/portfile.cmake
index 0e5197e4b..f683c1a09 100644
--- a/ports/entt/portfile.cmake
+++ b/ports/entt/portfile.cmake
@@ -1,10 +1,18 @@
-vcpkg_from_github(
- OUT_SOURCE_PATH SOURCE_PATH
- REPO skypjack/entt
- REF 2d5a3f24aa6dc38ed0c4eee9d4d625586d8e921e #v3.8.0
- SHA512 36b7be2550be5a919548e5c91db218ed9b062804d4f43073d6fc6b432fa2d358b5d36098490359ca2392370b2bf1b99d20e564504eaac619f5cd7f9612d91e2e
- HEAD_REF master
-)
+if ("experimental" IN_LIST FEATURES)
+ vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO skypjack/entt
+ HEAD_REF experimental
+ )
+else()
+ vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO skypjack/entt
+ REF 2d5a3f24aa6dc38ed0c4eee9d4d625586d8e921e #v3.8.0
+ SHA512 36b7be2550be5a919548e5c91db218ed9b062804d4f43073d6fc6b432fa2d358b5d36098490359ca2392370b2bf1b99d20e564504eaac619f5cd7f9612d91e2e
+ HEAD_REF master
+ )
+endif()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
diff --git a/ports/entt/vcpkg.json b/ports/entt/vcpkg.json
index eb925df7c..43beae304 100644
--- a/ports/entt/vcpkg.json
+++ b/ports/entt/vcpkg.json
@@ -1,6 +1,12 @@
{
"name": "entt",
"version": "3.8.0",
+ "port-version": 1,
"description": "Gaming meets modern C++ - a fast and reliable entity-component system and much more",
- "homepage": "https://github.com/skypjack/entt"
+ "homepage": "https://github.com/skypjack/entt",
+ "features": {
+ "experimental": {
+ "description": "Use experimental features right away"
+ }
+ }
}