mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
Add utfz to ports
utfz is a UTF-8 decoding library. It is notably different from utfcpp because it doesn't use exceptions.
This commit is contained in:
parent
676f55ddda
commit
1c7a52a42a
3
ports/utfz/CONTROL
Normal file
3
ports/utfz/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: utfz
|
||||
Version: 1.2
|
||||
Description: A tiny C++ library for parsing and encoding utf-8
|
22
ports/utfz/portfile.cmake
Normal file
22
ports/utfz/portfile.cmake
Normal file
@ -0,0 +1,22 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/utfz-1.2)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/IMQS/utfz/archive/v1.2.zip"
|
||||
FILENAME "utfz-1.2.zip"
|
||||
SHA512 a3bef8f769c7eb15fbd3a4c3c64f2e70666bfd305ad3c24ef676c7f5a428d95fdb8dcfe18cb5bfa072069e9368a29bf375848f9a775e60bec2eae7ffa5662b55
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
# Copy the include file
|
||||
file(COPY ${SOURCE_PATH}/utfz.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/license DESTINATION ${CURRENT_PACKAGES_DIR}/share/utfz)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/utfz/license ${CURRENT_PACKAGES_DIR}/share/utfz/copyright)
|
Loading…
x
Reference in New Issue
Block a user