diff options
Diffstat (limited to 'vcpkg/ports/simdutf')
| -rw-r--r-- | vcpkg/ports/simdutf/portfile.cmake | 30 | ||||
| -rw-r--r-- | vcpkg/ports/simdutf/vcpkg.json | 22 |
2 files changed, 52 insertions, 0 deletions
diff --git a/vcpkg/ports/simdutf/portfile.cmake b/vcpkg/ports/simdutf/portfile.cmake new file mode 100644 index 0000000..ea8dd39 --- /dev/null +++ b/vcpkg/ports/simdutf/portfile.cmake @@ -0,0 +1,30 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO simdutf/simdutf + REF "v${VERSION}" + SHA512 c64e048258787624c2afa0619c4b2a89c4a7f1992e56b4cd72f956dc41023bd0c423fd476a8dfeeacc48e131c19d771a1189cce29e2dc2256170f72a3c356fc4 + HEAD_REF master +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + "tools" SIMDUTF_TOOLS +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS ${FEATURE_OPTIONS} + -DSIMDUTF_TESTS=OFF + -DSIMDUTF_BENCHMARKS=OFF +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT}) +vcpkg_fixup_pkgconfig() +if ("tools" IN_LIST FEATURES) + vcpkg_copy_tools(TOOL_NAMES fastbase64 sutf AUTO_CLEAN) +endif() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE-APACHE") diff --git a/vcpkg/ports/simdutf/vcpkg.json b/vcpkg/ports/simdutf/vcpkg.json new file mode 100644 index 0000000..874f6b8 --- /dev/null +++ b/vcpkg/ports/simdutf/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "simdutf", + "version-semver": "7.5.0", + "description": "Unicode validation and transcoding at billions of characters per second", + "homepage": "https://github.com/simdutf/simdutf", + "license": "Apache-2.0 OR MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "tools": { + "description": "Build the fastbase64 and simdutf command line tools for transcoding strings" + } + } +} |