vcpkg/ports/simdutf/portfile.cmake

31 lines
841 B
CMake
Raw Normal View History

2021-09-04 08:03:15 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO simdutf/simdutf
REF "v${VERSION}"
2024-08-26 15:48:21 +08:00
SHA512 8889aad6655e3c2119ed037aafbce1bfcd19304486c674e44b0dcdcae8674b1fe7ae0093536c33a1a0e8fecf6fc436863160c12797542655785fa11ca33b41e9
2021-09-04 08:03:15 +08:00
HEAD_REF master
)
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}"
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})
vcpkg_fixup_pkgconfig()
if ("tools" IN_LIST FEATURES)
2024-07-19 00:40:36 +08:00
vcpkg_copy_tools(TOOL_NAMES fastbase64 sutf AUTO_CLEAN)
endif()
2021-09-04 08:03:15 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE-APACHE")