2020-09-26 05:09:15 -07:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2020-01-31 05:55:19 +09:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO microsoft/SEAL
|
2020-11-18 15:39:36 -08:00
|
|
|
REF 3eea4353d4768c79899a67ca4d36bfc3005d5412
|
|
|
|
SHA512 ee3d8926f4a26c8f67a9e79fe5da9883195d2e9f9fffa47bb9c3526150d1e0c179968af7222ca280574921feb3c45200da1ca4dc0b012b82aa57dbdef26dcc0a
|
2020-01-31 05:55:19 +09:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2020-11-18 15:39:36 -08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
ms-gsl SEAL_USE_MSGSL
|
|
|
|
zlib SEAL_USE_ZLIB
|
|
|
|
zstd SEAL_USE_ZSTD
|
|
|
|
)
|
2020-05-27 11:42:09 +08:00
|
|
|
|
2020-01-31 05:55:19 +09:00
|
|
|
vcpkg_configure_cmake(
|
2020-09-26 05:09:15 -07:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2020-01-31 05:55:19 +09:00
|
|
|
PREFER_NINJA
|
2020-11-18 15:39:36 -08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2020-09-26 05:09:15 -07:00
|
|
|
OPTIONS
|
2020-11-18 15:39:36 -08:00
|
|
|
-DSEAL_BUILD_DEPS=OFF
|
|
|
|
-DSEAL_BUILD_EXAMPLES=OFF
|
|
|
|
-DSEAL_BUILD_TESTS=OFF
|
2020-09-26 05:09:15 -07:00
|
|
|
-DSEAL_BUILD_SEAL_C=OFF
|
2020-11-18 15:39:36 -08:00
|
|
|
${FEATURE_OPTIONS}
|
2020-01-31 05:55:19 +09:00
|
|
|
)
|
|
|
|
|
2020-09-26 05:09:15 -07:00
|
|
|
vcpkg_build_cmake(TARGET seal LOGFILE_ROOT build)
|
2020-11-18 15:39:36 -08:00
|
|
|
|
2020-01-31 05:55:19 +09:00
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2020-09-26 05:09:15 -07: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-18 15:39:36 -08:00
|
|
|
|
2020-09-26 05:09:15 -07:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-01-31 05:55:19 +09:00
|
|
|
|
2020-09-26 05:09:15 -07:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2020-01-31 05:55:19 +09:00
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2020-11-18 15:39:36 -08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|