early-access version 2853

This commit is contained in:
pineappleEA
2022-07-23 03:01:36 +02:00
parent 1f2b5081b5
commit 1f111bb69c
8955 changed files with 418777 additions and 999 deletions

13
externals/vcpkg/ports/seal/gsl.patch vendored Executable file
View File

@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0039517..4cc8a01 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -149,7 +149,7 @@ if(SEAL_USE_MSGSL)
message(STATUS "Microsoft GSL: download ...")
seal_fetch_thirdparty_content(ExternalMSGSL)
else()
- find_package(Microsoft.GSL 3 CONFIG)
+ find_package(Microsoft.GSL 4 CONFIG)
if(NOT Microsoft.GSL_FOUND)
message(FATAL_ERROR "Microsoft GSL: not found")
else()

51
externals/vcpkg/ports/seal/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,51 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO microsoft/SEAL
REF 79234726053c45eede688400aa219fdec0810bd8
SHA512 634ad75d70f04cce220bfa9f6d13e8ddb293e8403ebd195e2c8b522b751a1a268021feea7843038037ed6d1b354b2e470ad565966a117613cf5371073afda9a4
HEAD_REF main
PATCHES
gsl.patch
shared-zstd.patch
)
vcpkg_replace_string(
"${SOURCE_PATH}/cmake/CheckCXXIntrinsicsSpecific.cmake"
"check_cxx_source_runs"
"check_cxx_source_compiles"
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
ms-gsl SEAL_USE_MSGSL
zlib SEAL_USE_ZLIB
zstd SEAL_USE_ZSTD
hexl SEAL_USE_INTEL_HEXL
INVERTED_FEATURES
no-throw-tran SEAL_THROW_ON_TRANSPARENT_CIPHERTEXT
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
DISABLE_PARALLEL_CONFIGURE
OPTIONS
"-DSEAL_BUILD_DEPS=OFF"
"-DSEAL_BUILD_EXAMPLES=OFF"
"-DSEAL_BUILD_TESTS=OFF"
"-DSEAL_BUILD_SEAL_C=OFF"
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME "SEAL" CONFIG_PATH "lib/cmake/SEAL-3.7")
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME "copyright")
vcpkg_copy_pdbs()

13
externals/vcpkg/ports/seal/shared-zstd.patch vendored Executable file
View File

@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4cc8a01..b8c92c2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -205,7 +205,7 @@ if(SEAL_USE_ZSTD)
message(FATAL_ERROR "Zstandard: must be static")
endif()
elseif(TARGET zstd::libzstd_shared)
- message(FATAL_ERROR "Zstandard: must be static")
+ set(zstd_static "zstd::libzstd_shared")
else()
message(FATAL_ERROR "Zstandard: not found")
endif()

51
externals/vcpkg/ports/seal/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,51 @@
{
"name": "seal",
"version-semver": "3.7.2",
"port-version": 3,
"description": "Microsoft SEAL is an easy-to-use and powerful homomorphic encryption library.",
"homepage": "https://github.com/microsoft/SEAL",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"default-features": [
"ms-gsl",
"zlib",
"zstd"
],
"features": {
"hexl": {
"description": "Use Intel® HEXL for acceleration of low-level kernels.",
"dependencies": [
"hexl"
]
},
"ms-gsl": {
"description": "Use ms-gsl for span view",
"dependencies": [
"ms-gsl"
]
},
"no-throw-tran": {
"description": "Do not throw when operating on transparent ciphertexts"
},
"zlib": {
"description": "Use zlib for compressed serialization",
"dependencies": [
"zlib"
]
},
"zstd": {
"description": "Use zstd for compressed serialization",
"dependencies": [
"zstd"
]
}
}
}