vcpkg/ports/simdutf/portfile.cmake
jim wang 6a2f050cc9
[simdutf] Update to 5.2.5 (#38342)
Fixes https://github.com/microsoft/vcpkg/issues/38028
Update the upstream version to fix compilation issues.
- [X] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [X] SHA512s are updated for each updated download.
- [ ] ~~The "supports" clause reflects platforms that may be fixed by
this new version.~~
- [ ] ~~Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.~~
- [ ] ~~Any patches that are no longer applied are deleted from the
port's directory.~~
- [X] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [X] Only one version is added to each modified port's versions file.

Usage test pass with following triplets:

```
x86-windows
x64-windows
x64-windows-static
```
2024-04-23 12:07:09 -04:00

31 lines
830 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO simdutf/simdutf
REF "v${VERSION}"
SHA512 c854d7b5959ca173588686657c8774cfe6b27b03e19abcb3f5280f5182672e6094203707fe700934efec44388b3db31ee0a55840cc00de6cc83da6d2fbf958f2
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 sutf AUTO_CLEAN)
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE-APACHE")