2023-11-28 02:19:37 +01:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
2020-01-31 05:55:19 +09:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO microsoft/SEAL
|
2023-11-28 02:19:37 +01:00
|
|
|
REF "v${VERSION}"
|
2024-09-10 11:30:40 +08:00
|
|
|
SHA512 8e97e8106ae2eeceee743634b0db1936b3a3a1381ceceb5646f6de8008d2147cdc9b847219dafd7d8b8f7457e63c7463f155694e8a192d13531171b468e8f365
|
2021-05-06 13:40:53 -07:00
|
|
|
HEAD_REF main
|
2022-02-01 14:53:10 -08:00
|
|
|
PATCHES
|
2022-02-15 20:35:04 -08:00
|
|
|
shared-zstd.patch
|
2024-04-24 05:51:01 -07:00
|
|
|
fix-hexl.patch
|
2020-01-31 05:55:19 +09:00
|
|
|
)
|
|
|
|
|
2022-04-29 11:40:30 -07:00
|
|
|
vcpkg_replace_string(
|
|
|
|
"${SOURCE_PATH}/cmake/CheckCXXIntrinsicsSpecific.cmake"
|
|
|
|
"check_cxx_source_runs"
|
|
|
|
"check_cxx_source_compiles"
|
|
|
|
)
|
|
|
|
|
2020-11-18 15:39:36 -08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-01-28 13:49:30 -08:00
|
|
|
FEATURES
|
2021-06-21 14:07:53 -07:00
|
|
|
ms-gsl SEAL_USE_MSGSL
|
|
|
|
zlib SEAL_USE_ZLIB
|
|
|
|
zstd SEAL_USE_ZSTD
|
|
|
|
hexl SEAL_USE_INTEL_HEXL
|
2021-01-28 13:49:30 -08:00
|
|
|
INVERTED_FEATURES
|
2021-06-21 14:07:53 -07:00
|
|
|
no-throw-tran SEAL_THROW_ON_TRANSPARENT_CIPHERTEXT
|
2020-11-18 15:39:36 -08:00
|
|
|
)
|
2020-05-27 11:42:09 +08:00
|
|
|
|
2021-06-21 14:07:53 -07:00
|
|
|
vcpkg_cmake_configure(
|
2022-11-23 04:28:19 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-09-26 05:09:15 -07:00
|
|
|
OPTIONS
|
2023-11-28 02:19:37 +01:00
|
|
|
-DSEAL_BUILD_DEPS=OFF
|
|
|
|
-DSEAL_BUILD_EXAMPLES=OFF
|
|
|
|
-DSEAL_BUILD_TESTS=OFF
|
|
|
|
-DSEAL_BUILD_SEAL_C=OFF
|
2020-11-18 15:39:36 -08:00
|
|
|
${FEATURE_OPTIONS}
|
2020-01-31 05:55:19 +09:00
|
|
|
)
|
|
|
|
|
2021-06-21 14:07:53 -07:00
|
|
|
vcpkg_cmake_install()
|
2020-11-18 15:39:36 -08:00
|
|
|
|
2023-11-28 02:19:37 +01:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/SEAL-4.1)
|
2020-01-31 05:55:19 +09:00
|
|
|
|
2023-11-28 02:19:37 +01:00
|
|
|
# provides pkgconfig files only on UNIX
|
|
|
|
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
endif()
|
2020-09-26 05:09:15 -07:00
|
|
|
|
2021-06-21 14:07:53 -07:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-01-31 05:55:19 +09:00
|
|
|
|
2023-11-28 02:19:37 +01:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|