mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 13:39:08 +08:00
f5f494d087
* Updated SEAL's version to the latest. * Updated version number in ports/seal/CONTROL. * update version Co-authored-by: Jonliu1993 <13720414433@163.com>
52 lines
1.4 KiB
CMake
52 lines
1.4 KiB
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO microsoft/SEAL
|
|
REF 5c586e2480dc0a43fb76a23a3dcc3daecb3764e8
|
|
SHA512 2a0720d654946bcdb2313353c41ecd420a812dd678b04538e999881790c1c3636605204f0271a2faa1965a1445bd2d8973ffe8fdabf128afb51adb6523e90358
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
ms-gsl SEAL_USE_MSGSL
|
|
zlib SEAL_USE_ZLIB
|
|
zstd SEAL_USE_ZSTD
|
|
|
|
INVERTED_FEATURES
|
|
no-throw-tran SEAL_THROW_ON_TRANSPARENT_CIPHERTEXT
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
OPTIONS
|
|
-DSEAL_BUILD_DEPS=OFF
|
|
-DSEAL_BUILD_EXAMPLES=OFF
|
|
-DSEAL_BUILD_TESTS=OFF
|
|
-DSEAL_BUILD_SEAL_C=OFF
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_build_cmake(TARGET seal LOGFILE_ROOT build)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
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}")
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
|
|
vcpkg_copy_pdbs()
|