aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/parallel-hashmap
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/parallel-hashmap
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/parallel-hashmap')
-rw-r--r--vcpkg/ports/parallel-hashmap/portfile.cmake26
-rw-r--r--vcpkg/ports/parallel-hashmap/vcpkg.json12
2 files changed, 38 insertions, 0 deletions
diff --git a/vcpkg/ports/parallel-hashmap/portfile.cmake b/vcpkg/ports/parallel-hashmap/portfile.cmake
new file mode 100644
index 0000000..47670dd
--- /dev/null
+++ b/vcpkg/ports/parallel-hashmap/portfile.cmake
@@ -0,0 +1,26 @@
+#header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO greg7mdp/parallel-hashmap
+ REF "v${VERSION}"
+ SHA512 edd5ff6eb492bf0b34fcbb6594d3d07256c9498b677a3d8b41fd14329d7149f0fc11c697591447e4ea14e83268d98e129c34dfb11c87401c3cee35aaa016fc6e
+ HEAD_REF master
+)
+
+# Use greg7mdp/parallel-hashmap's own build process, skipping examples and tests
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DPHMAP_BUILD_TESTS=OFF
+ -DPHMAP_BUILD_EXAMPLES=OFF
+)
+vcpkg_cmake_install()
+
+# Delete redundant directories
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/share/doc)
+
+file(COPY ${SOURCE_PATH}/phmap.natvis DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+
+# Put the licence file where vcpkg expects it
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/vcpkg/ports/parallel-hashmap/vcpkg.json b/vcpkg/ports/parallel-hashmap/vcpkg.json
new file mode 100644
index 0000000..d953374
--- /dev/null
+++ b/vcpkg/ports/parallel-hashmap/vcpkg.json
@@ -0,0 +1,12 @@
+{
+ "name": "parallel-hashmap",
+ "version": "2.0.0",
+ "description": "A header-only, very fast and memory-friendly family of C++ hash map & btree containers.",
+ "license": "Apache-2.0",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}