diff options
| author | Rich Randall <rrandall@microsoft.com> | 2018-09-18 02:07:27 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-09-18 02:07:27 -0700 |
| commit | 798f9cae6cf5887eb78bde90b129a68ca05dec89 (patch) | |
| tree | 8f7b707fc021816e2ffc7840742fddbeaf35e4e6 | |
| parent | add489dd755d6b7c48e7c8031aea3619d789c37b (diff) | |
| download | vcpkg-798f9cae6cf5887eb78bde90b129a68ca05dec89.tar.gz vcpkg-798f9cae6cf5887eb78bde90b129a68ca05dec89.zip | |
Add Google Fruit to ports (#4291)
* Add Google Fruit to ports
* [fruit] Use vcpkg_from_github() and configure_file()
| -rw-r--r-- | ports/fruit/CONTROL | 4 | ||||
| -rw-r--r-- | ports/fruit/portfile.cmake | 22 |
2 files changed, 26 insertions, 0 deletions
diff --git a/ports/fruit/CONTROL b/ports/fruit/CONTROL new file mode 100644 index 000000000..4e7bd9f8d --- /dev/null +++ b/ports/fruit/CONTROL @@ -0,0 +1,4 @@ +Source: fruit
+Version: 3.4.0-1
+Description: Fruit, a dependency injection framework for C++ by Google
+
diff --git a/ports/fruit/portfile.cmake b/ports/fruit/portfile.cmake new file mode 100644 index 000000000..a945e63bd --- /dev/null +++ b/ports/fruit/portfile.cmake @@ -0,0 +1,22 @@ +include(vcpkg_common_functions)
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO google/fruit
+ REF v3.4.0
+ SHA512 d78c76432c77acc4cc6ccf3fd9627a3fb2a0aa55d1baf7346422e9f1c1e048237d136588b44cfa943b542b43adbbb62fcd524e4a1cb870e9ffe8b7cf4dadb35d
+ HEAD_REF master
+)
+
+# TODO: Make boost an optional dependency?
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DFRUIT_USES_BOOST=False
+)
+
+vcpkg_install_cmake()
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+# Handle copyright
+configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/fruit/copyright COPYONLY)
|
