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-02-25 05:33:26 +08:00
|
|
|
REF 5c586e2480dc0a43fb76a23a3dcc3daecb3764e8
|
|
|
|
SHA512 2a0720d654946bcdb2313353c41ecd420a812dd678b04538e999881790c1c3636605204f0271a2faa1965a1445bd2d8973ffe8fdabf128afb51adb6523e90358
|
2020-01-31 04:55:19 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
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()
|