2021-09-04 08:03:15 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO simdutf/simdutf
|
2023-08-11 01:24:31 +08:00
|
|
|
REF "v${VERSION}"
|
2024-10-15 04:25:14 +08:00
|
|
|
SHA512 57748cadd07a265e7297408f20ab7a7e899f8676972027b09b168464f7b68de82790a6877bfad8197501be95a754b18458be4c36740bafb7e0a32630c7bd1d2d
|
2021-09-04 08:03:15 +08:00
|
|
|
HEAD_REF master
|
2023-08-11 01:24:31 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
"tools" SIMDUTF_TOOLS
|
2021-09-04 08:03:15 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2023-08-11 01:24:31 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
|
|
-DSIMDUTF_TESTS=OFF
|
|
|
|
-DSIMDUTF_BENCHMARKS=OFF
|
2021-09-04 08:03:15 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2024-03-05 17:23:22 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2023-08-11 01:24:31 +08:00
|
|
|
if ("tools" IN_LIST FEATURES)
|
2024-07-19 00:40:36 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES fastbase64 sutf AUTO_CLEAN)
|
2023-08-11 01:24:31 +08:00
|
|
|
endif()
|
2021-09-04 08:03:15 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2023-08-11 01:24:31 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE-APACHE")
|