diff options
Diffstat (limited to 'vcpkg/ports/utf8-range')
| -rw-r--r-- | vcpkg/ports/utf8-range/fix-cmake.patch | 12 | ||||
| -rw-r--r-- | vcpkg/ports/utf8-range/portfile.cmake | 27 | ||||
| -rw-r--r-- | vcpkg/ports/utf8-range/vcpkg.json | 18 |
3 files changed, 57 insertions, 0 deletions
diff --git a/vcpkg/ports/utf8-range/fix-cmake.patch b/vcpkg/ports/utf8-range/fix-cmake.patch new file mode 100644 index 0000000..d006c70 --- /dev/null +++ b/vcpkg/ports/utf8-range/fix-cmake.patch @@ -0,0 +1,12 @@ +diff --git a/third_party/utf8_range/CMakeLists.txt b/third_party/utf8_range/CMakeLists.txt
+index 344952d38..dd855df17 100644
+--- a/third_party/utf8_range/CMakeLists.txt
++++ b/third_party/utf8_range/CMakeLists.txt
+@@ -63,6 +63,7 @@ if (utf8_range_ENABLE_INSTALL)
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
+ )
+
+ configure_package_config_file(
diff --git a/vcpkg/ports/utf8-range/portfile.cmake b/vcpkg/ports/utf8-range/portfile.cmake new file mode 100644 index 0000000..79ac79b --- /dev/null +++ b/vcpkg/ports/utf8-range/portfile.cmake @@ -0,0 +1,27 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO protocolbuffers/protobuf + REF "v${VERSION}" + SHA512 46d60de626480f5bac256a09c57300fe5ec990664876edbe04c9385769b500ec88409da976acc28fcb2b2e987afc1bbbf5669f4fed4033c5464ab8bbd38723bc + HEAD_REF main + PATCHES + fix-cmake.patch +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}/third_party/utf8_range" + OPTIONS + "-Dutf8_range_ENABLE_TESTS=off" +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME "utf8_range" CONFIG_PATH "lib/cmake/utf8_range") + +vcpkg_fixup_pkgconfig() +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/third_party/utf8_range/LICENSE") diff --git a/vcpkg/ports/utf8-range/vcpkg.json b/vcpkg/ports/utf8-range/vcpkg.json new file mode 100644 index 0000000..4aa0d59 --- /dev/null +++ b/vcpkg/ports/utf8-range/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "utf8-range", + "version": "5.29.5", + "description": "Fast UTF-8 validation with Range algorithm (NEON+SSE4+AVX2)", + "homepage": "https://github.com/protocolbuffers/protobuf", + "license": "MIT", + "dependencies": [ + "abseil", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |