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-06-22 05:07:53 +08:00
|
|
|
REF d045f1beff96dff0fccc7fa0c5acb1493a65338c
|
|
|
|
SHA512 9b5d3c4342608d8e3d9826d3b52cbefc1c21eb0094d0cae4add8bb0960f931e9080f248eb8ad8385fc0a08e2a1da10020185148ffd2ef02e7a4fac879e27aa69
|
2021-05-07 04:40:53 +08:00
|
|
|
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
|
2021-06-22 05:07:53 +08:00
|
|
|
ms-gsl SEAL_USE_MSGSL
|
|
|
|
zlib SEAL_USE_ZLIB
|
|
|
|
zstd SEAL_USE_ZSTD
|
|
|
|
hexl SEAL_USE_INTEL_HEXL
|
2021-01-29 05:49:30 +08:00
|
|
|
INVERTED_FEATURES
|
2021-06-22 05:07:53 +08:00
|
|
|
no-throw-tran SEAL_THROW_ON_TRANSPARENT_CIPHERTEXT
|
2020-11-19 07:39:36 +08:00
|
|
|
)
|
2020-05-27 11:42:09 +08:00
|
|
|
|
2021-06-22 05:07:53 +08:00
|
|
|
vcpkg_cmake_configure(
|
2020-09-26 20:09:15 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2020-11-19 07:39:36 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2020-09-26 20:09:15 +08:00
|
|
|
OPTIONS
|
2021-06-22 05:07:53 +08:00
|
|
|
"-DSEAL_BUILD_DEPS=OFF"
|
|
|
|
"-DSEAL_BUILD_EXAMPLES=OFF"
|
|
|
|
"-DSEAL_BUILD_TESTS=OFF"
|
|
|
|
"-DSEAL_BUILD_SEAL_C=OFF"
|
2020-11-19 07:39:36 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2020-01-31 04:55:19 +08:00
|
|
|
)
|
|
|
|
|
2021-06-22 05:07:53 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-11-19 07:39:36 +08:00
|
|
|
|
2021-07-01 23:41:40 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME "SEAL" CONFIG_PATH "lib/cmake/SEAL-3.6")
|
2020-01-31 04:55:19 +08:00
|
|
|
|
2021-06-22 05:07:53 +08:00
|
|
|
if("hexl" IN_LIST FEATURES)
|
|
|
|
vcpkg_fixup_pkgconfig(SKIP_CHECK)
|
|
|
|
else()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-09-26 20:09:15 +08:00
|
|
|
endif()
|
|
|
|
|
2021-06-22 05:07:53 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-01-31 04:55:19 +08:00
|
|
|
|
2021-06-22 05:07:53 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME "copyright")
|
2020-11-19 07:39:36 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|