mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 05:39:06 +08:00
[turbobase64] update to 2023.08 (#41748)
This commit is contained in:
parent
e2edf52610
commit
bb1ca2757b
@ -1,66 +0,0 @@
|
|||||||
cmake_minimum_required(VERSION 3.14)
|
|
||||||
|
|
||||||
project(turbobase64 C)
|
|
||||||
if (SOURCE_PATH)
|
|
||||||
set(CMAKE_SOURCE_DIR ${SOURCE_PATH})
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
#Copyright 2016-2020 Yandex LLC
|
|
||||||
# https://github.com/ClickHouse/ClickHouse/blob/master/contrib/base64-cmake/CMakeLists.txt
|
|
||||||
#
|
|
||||||
#Apache License
|
|
||||||
#Version 2.0, January 2004
|
|
||||||
#http://www.apache.org/licenses/
|
|
||||||
#Yandex code starts
|
|
||||||
|
|
||||||
SET(LIBRARY_DIR ${CMAKE_SOURCE_DIR})
|
|
||||||
|
|
||||||
add_library(base64_scalar OBJECT ${LIBRARY_DIR}/turbob64c.c ${LIBRARY_DIR}/turbob64d.c)
|
|
||||||
add_library(base64_ssse3 OBJECT ${LIBRARY_DIR}/turbob64sse.c) # This file also contains code for ARM NEON
|
|
||||||
|
|
||||||
if (ARCH_AMD64)
|
|
||||||
add_library(base64_avx OBJECT ${LIBRARY_DIR}/turbob64sse.c) # This is not a mistake. One file is compiled twice.
|
|
||||||
add_library(base64_avx2 OBJECT ${LIBRARY_DIR}/turbob64avx2.c)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
target_compile_options(base64_scalar PRIVATE -falign-loops)
|
|
||||||
|
|
||||||
if (ARCH_AMD64)
|
|
||||||
target_compile_options(base64_ssse3 PRIVATE -mssse3 -falign-loops)
|
|
||||||
target_compile_options(base64_avx PRIVATE -falign-loops -mavx)
|
|
||||||
target_compile_options(base64_avx2 PRIVATE -falign-loops -mavx2)
|
|
||||||
else ()
|
|
||||||
target_compile_options(base64_ssse3 PRIVATE -falign-loops)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (ARCH_AMD64)
|
|
||||||
add_library(tb64
|
|
||||||
$<TARGET_OBJECTS:base64_scalar>
|
|
||||||
$<TARGET_OBJECTS:base64_ssse3>
|
|
||||||
$<TARGET_OBJECTS:base64_avx>
|
|
||||||
$<TARGET_OBJECTS:base64_avx2>)
|
|
||||||
else ()
|
|
||||||
add_library(tb64
|
|
||||||
$<TARGET_OBJECTS:base64_scalar>
|
|
||||||
$<TARGET_OBJECTS:base64_ssse3>)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
# End of Yandex code
|
|
||||||
|
|
||||||
include(CMakePackageConfigHelpers)
|
|
||||||
include(GNUInstallDirs)
|
|
||||||
|
|
||||||
target_include_directories(tb64 PUBLIC
|
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
||||||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
|
||||||
)
|
|
||||||
|
|
||||||
install(TARGETS tb64
|
|
||||||
EXPORT unofficial-turbobase64-config
|
|
||||||
)
|
|
||||||
install(FILES "${CMAKE_SOURCE_DIR}/turbob64.h" TYPE INCLUDE)
|
|
||||||
|
|
||||||
install(EXPORT unofficial-turbobase64-config
|
|
||||||
DESTINATION "${CMAKE_INSTALL_DATADIR}/unofficial-turbobase64"
|
|
||||||
NAMESPACE unofficial::turbobase64::
|
|
||||||
)
|
|
@ -1,20 +1,23 @@
|
|||||||
|
string(REGEX REPLACE "^([0-9]+)[.]([0-9])$" "\\1.0\\2" TURBO_VERSION "${VERSION}")
|
||||||
|
|
||||||
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||||
|
|
||||||
vcpkg_from_github(
|
vcpkg_from_github(
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
REPO powturbo/Turbo-Base64
|
REPO powturbo/Turbo-Base64
|
||||||
REF 95ba56a9b041f9933f5cd2bbb2ee4e083468c20a
|
REF ${TURBO_VERSION}
|
||||||
SHA512 bacab8ede5e20974207e01c13a93e6d8afc8d08bc84f1da2b6efa1b4d17408cef6cea085e209a8b7d3b2e2a7223a785f8c76aa954c3c787e9b8d891880b63606
|
SHA512 de8aaace0faf6552cf692f131a4d03882b88252732bb4160c48e5cc630a0c2f637fa27309e084d02305cdf7ef28020e6c9fbb82b50c1916e46aabc95baea75ad
|
||||||
HEAD_REF master
|
HEAD_REF master
|
||||||
)
|
)
|
||||||
|
|
||||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
||||||
|
|
||||||
vcpkg_cmake_configure(
|
vcpkg_cmake_configure(
|
||||||
SOURCE_PATH "${SOURCE_PATH}"
|
SOURCE_PATH "${SOURCE_PATH}"
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_cmake_install()
|
vcpkg_cmake_install()
|
||||||
|
|
||||||
vcpkg_cmake_config_fixup(PACKAGE_NAME "unofficial-${PORT}")
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
||||||
|
|
||||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||||
|
|
||||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "turbobase64",
|
"name": "turbobase64",
|
||||||
"version-date": "2020-01-12",
|
"version": "2023.8",
|
||||||
"port-version": 3,
|
|
||||||
"description": "Fastest Base64 SIMD/Neon library",
|
"description": "Fastest Base64 SIMD/Neon library",
|
||||||
"homepage": "https://github.com/powturbo/Turbo-Base64",
|
"homepage": "https://github.com/powturbo/Turbo-Base64",
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
"supports": "!windows",
|
"supports": "!android & !(windows & arm)",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
{
|
{
|
||||||
"name": "vcpkg-cmake",
|
"name": "vcpkg-cmake",
|
||||||
|
@ -1125,7 +1125,6 @@ torch-th:arm64-uwp=fail
|
|||||||
torch-th:x64-android=fail
|
torch-th:x64-android=fail
|
||||||
torch-th:x64-uwp=fail
|
torch-th:x64-uwp=fail
|
||||||
torch-th:x64-windows-static=fail
|
torch-th:x64-windows-static=fail
|
||||||
turbobase64:arm-neon-android=fail
|
|
||||||
tvision:arm-neon-android=fail
|
tvision:arm-neon-android=fail
|
||||||
tvision:arm64-android=fail
|
tvision:arm64-android=fail
|
||||||
tvision:x64-android=fail
|
tvision:x64-android=fail
|
||||||
|
@ -9113,8 +9113,8 @@
|
|||||||
"port-version": 0
|
"port-version": 0
|
||||||
},
|
},
|
||||||
"turbobase64": {
|
"turbobase64": {
|
||||||
"baseline": "2020-01-12",
|
"baseline": "2023.8",
|
||||||
"port-version": 3
|
"port-version": 0
|
||||||
},
|
},
|
||||||
"tvision": {
|
"tvision": {
|
||||||
"baseline": "2024-05-22",
|
"baseline": "2024-05-22",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "d5b6dbbd578854ad389a0e63b4921bb7e5a3b7ec",
|
||||||
|
"version": "2023.8",
|
||||||
|
"port-version": 0
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "20d23821ef39944689c9ec0e8cf02d17c7b68901",
|
"git-tree": "20d23821ef39944689c9ec0e8cf02d17c7b68901",
|
||||||
"version-date": "2020-01-12",
|
"version-date": "2020-01-12",
|
||||||
|
Loading…
Reference in New Issue
Block a user