mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 14:03:01 +08:00
add parallel-hashmap package
This commit is contained in:
parent
6f0923ae93
commit
7892184134
3
ports/parallel-hashmap/CONTROL
Normal file
3
ports/parallel-hashmap/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: parallel-hashmap
|
||||
Version: 1.0.0
|
||||
Description: A header-only, very fast and memory-friendly hash map family.
|
25
ports/parallel-hashmap/portfile.cmake
Normal file
25
ports/parallel-hashmap/portfile.cmake
Normal file
@ -0,0 +1,25 @@
|
||||
#header-only library
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO greg7mdp/parallel-hashmap
|
||||
REF 1.0.0
|
||||
SHA512 8e0e6da3f809b177fbeaa30916bd8fed8d4b896e8d8526d10e74169078050e91dc52c48b4ca29847fac669be5fcfb1216a706fe242a2330999273e10975d9439
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
# Use greg7mdp/parallel-hashmap's own build process, skipping examples and tests
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
vcpkg_install_cmake()
|
||||
|
||||
# Delete redundant directories
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/share/doc)
|
||||
|
||||
# Put the licence file where vcpkg expects it
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/parallel-hashmap)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/parallel-hashmap/LICENSE ${CURRENT_PACKAGES_DIR}/share/parallel-hashmap/copyright)
|
||||
|
Loading…
Reference in New Issue
Block a user