diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/xxhash | |
Diffstat (limited to 'vcpkg/ports/xxhash')
| -rw-r--r-- | vcpkg/ports/xxhash/portfile.cmake | 31 | ||||
| -rw-r--r-- | vcpkg/ports/xxhash/vcpkg.json | 22 |
2 files changed, 53 insertions, 0 deletions
diff --git a/vcpkg/ports/xxhash/portfile.cmake b/vcpkg/ports/xxhash/portfile.cmake new file mode 100644 index 0000000..f562c12 --- /dev/null +++ b/vcpkg/ports/xxhash/portfile.cmake @@ -0,0 +1,31 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO Cyan4973/xxHash + REF "v${VERSION}" + SHA512 8b5c8b9aad4e869f28310b12cc314037feda81d92f26c23eaecdb35dc65042ca2e65f2e9606033e62a31bcc737a9a950500ffcbdb8677d6ab20e820ea14f2b79 + HEAD_REF dev +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES xxhsum XXHASH_BUILD_XXHSUM +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}/cmake_unofficial" + OPTIONS ${FEATURE_OPTIONS} +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/xxHash) + +if("xxhsum" IN_LIST FEATURES) + vcpkg_copy_tools(TOOL_NAMES xxhsum AUTO_CLEAN) +endif() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +vcpkg_fixup_pkgconfig() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/xxhash/vcpkg.json b/vcpkg/ports/xxhash/vcpkg.json new file mode 100644 index 0000000..5507972 --- /dev/null +++ b/vcpkg/ports/xxhash/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "xxhash", + "version": "0.8.3", + "description": "Extremely fast hash algorithm", + "homepage": "https://github.com/Cyan4973/xxHash", + "license": "BSD-2-Clause", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "xxhsum": { + "description": "Build the xxhsum binary" + } + } +} |