diff options
| author | myd7349 <myd7349@gmail.com> | 2019-02-26 03:09:41 +0800 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-02-25 11:09:41 -0800 |
| commit | 5b4cd3fc82b760a9d108805fc2ab9b75f528447c (patch) | |
| tree | c0147a61be408f9e3b578592f9f7cdc70fa8361c | |
| parent | 9b9b178d4c7834ce210e5baa46a9364436674a5f (diff) | |
| download | vcpkg-5b4cd3fc82b760a9d108805fc2ab9b75f528447c.tar.gz vcpkg-5b4cd3fc82b760a9d108805fc2ab9b75f528447c.zip | |
[libcuckoo] Add new port (#5436)
[libcuckoo] Add new port
| -rw-r--r-- | ports/libcuckoo/CONTROL | 3 | ||||
| -rw-r--r-- | ports/libcuckoo/portfile.cmake | 34 |
2 files changed, 37 insertions, 0 deletions
diff --git a/ports/libcuckoo/CONTROL b/ports/libcuckoo/CONTROL new file mode 100644 index 000000000..b9c1440b3 --- /dev/null +++ b/ports/libcuckoo/CONTROL @@ -0,0 +1,3 @@ +Source: libcuckoo
+Version: 2018-12-24-1
+Description: A high-performance, concurrent hash table
diff --git a/ports/libcuckoo/portfile.cmake b/ports/libcuckoo/portfile.cmake new file mode 100644 index 000000000..15d6df316 --- /dev/null +++ b/ports/libcuckoo/portfile.cmake @@ -0,0 +1,34 @@ +# Header-only library
+
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO efficient/libcuckoo
+ REF f3138045810b2c2e9b59dbede296b4a5194af4f9
+ SHA512 b1682b7175b2a7fd22c34cbaf9770f2f1bfb3f0d1be046338a8a489c302f0434ca1cbf2ffe5845e09aba132b0be6a1d6472b66b4518bb172b82af93a9d27cd21
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DBUILD_EXAMPLES=OFF
+ -DBUILD_TESTS=OFF
+ -DBUILD_STRESS_TESTS=OFF
+ -DBUILD_UNIT_TESTS=OFF
+ -DBUILD_UNIVERSAL_BENCHMARK=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/${PORT})
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
+
+# Handle copyright
+configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
+
+# CMake integration test
+#vcpkg_test_cmake(PACKAGE_NAME ${PORT})
|
