2020-09-26 20:09:15 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2020-01-31 04:55:19 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO microsoft/SEAL
|
2021-05-07 04:40:53 +08:00
|
|
|
REF 0b058d99b7f18a00e5ebb2b80caee593804b0500
|
|
|
|
SHA512 eed4e4360e32c8506a8f84b9bcfd2c8debf0013ee181f37fb34c6b94e62bbde1993ee400a3f589fe2378b598dd4fdb2e8532b706691a9348e464cd1a202ef23c
|
|
|
|
HEAD_REF main
|
2020-01-31 04:55:19 +08:00
|
|
|
)
|
|
|
|
|
2020-11-19 07:39:36 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-01-29 05:49:30 +08:00
|
|
|
FEATURES
|
2020-11-19 07:39:36 +08:00
|
|
|
ms-gsl SEAL_USE_MSGSL
|
|
|
|
zlib SEAL_USE_ZLIB
|
|
|
|
zstd SEAL_USE_ZSTD
|
2021-01-29 05:49:30 +08:00
|
|
|
|
|
|
|
INVERTED_FEATURES
|
|
|
|
no-throw-tran SEAL_THROW_ON_TRANSPARENT_CIPHERTEXT
|
2020-11-19 07:39:36 +08:00
|
|
|
)
|
2020-05-27 11:42:09 +08:00
|
|
|
|
2020-01-31 04:55:19 +08:00
|
|
|
vcpkg_configure_cmake(
|
2020-09-26 20:09:15 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2020-01-31 04:55:19 +08:00
|
|
|
PREFER_NINJA
|
2020-11-19 07:39:36 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2020-09-26 20:09:15 +08:00
|
|
|
OPTIONS
|
2020-11-19 07:39:36 +08:00
|
|
|
-DSEAL_BUILD_DEPS=OFF
|
|
|
|
-DSEAL_BUILD_EXAMPLES=OFF
|
|
|
|
-DSEAL_BUILD_TESTS=OFF
|
2020-09-26 20:09:15 +08:00
|
|
|
-DSEAL_BUILD_SEAL_C=OFF
|
2020-11-19 07:39:36 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2020-01-31 04:55:19 +08:00
|
|
|
)
|
|
|
|
|
2020-09-26 20:09:15 +08:00
|
|
|
vcpkg_build_cmake(TARGET seal LOGFILE_ROOT build)
|
2020-11-19 07:39:36 +08:00
|
|
|
|
2020-01-31 04:55:19 +08:00
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2020-09-26 20:09:15 +08:00
|
|
|
file(GLOB CONFIG_PATH RELATIVE "${CURRENT_PACKAGES_DIR}" "${CURRENT_PACKAGES_DIR}/lib/cmake/SEAL-*")
|
|
|
|
if(NOT CONFIG_PATH)
|
|
|
|
message(FATAL_ERROR "Could not find installed cmake config files.")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH "${CONFIG_PATH}")
|
2020-11-19 07:39:36 +08:00
|
|
|
|
2020-09-26 20:09:15 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-01-31 04:55:19 +08:00
|
|
|
|
2020-09-26 20:09:15 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2020-01-31 04:55:19 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2020-11-19 07:39:36 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|