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}"
|
|
|
|
SHA512 f9d307bc769450cc0ff967ad5d764db15a7c38011c17096fcb824e4a89c0ae29ae66137c9063b8c54a42937600d058a8bd31439cf12c68d31a0053b1b8dd619f
|
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})
|
2023-08-11 01:24:31 +08:00
|
|
|
if ("tools" IN_LIST FEATURES)
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES sutf AUTO_CLEAN)
|
|
|
|
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")
|