mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[seal] Add new port (#9698)
* Add Microsoft SEAL as a new port * Fix to choose either static or shared binaries * Fix to fail port install on Windows platforms * Fix to enable a command line build on windows * Fix to fail port install on UWP
This commit is contained in:
parent
3cc9a6f743
commit
9986c559b8
4
ports/seal/CONTROL
Normal file
4
ports/seal/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: seal
|
||||
Version: 3.4.5
|
||||
Homepage: https://github.com/microsoft/SEAL
|
||||
Description: Microsoft SEAL is an easy-to-use and powerful homomorphic encryption library.
|
46
ports/seal/portfile.cmake
Normal file
46
ports/seal/portfile.cmake
Normal file
@ -0,0 +1,46 @@
|
||||
set(SEAL_VERSION_MAJOR 3)
|
||||
set(SEAL_VERSION_MINOR 4)
|
||||
set(SEAL_VERSION_MICRO 5)
|
||||
|
||||
vcpkg_fail_port_install(ON_TARGET "uwp")
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SEAL_BUILD_STATIC)
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SEAL_BUILD_STATIC)
|
||||
|
||||
if (SEAL_BUILD_STATIC)
|
||||
set(SEAL_LIB_BUILD_TYPE "Static_PIC")
|
||||
endif ()
|
||||
|
||||
if (SEAL_BUILD_DYNAMIC)
|
||||
set(SEAL_LIB_BUILD_TYPE "Shared")
|
||||
endif ()
|
||||
|
||||
string(TOUPPER ${PORT} PORT_UPPER)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO microsoft/SEAL
|
||||
REF 9fc376c19488be2bfd213780ee06789754f4b2c2
|
||||
SHA512 198f75371c7b0b88066495a40c687c32725a033fd1b3e3dadde3165da8546d44e9eaa9355366dd5527058ae2171175f757f69189cf7f5255f51eba14c6f38b78
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}/native/src
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DALLOW_COMMAND_LINE_BUILD=ON
|
||||
-DSEAL_LIB_BUILD_TYPE=${SEAL_LIB_BUILD_TYPE}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT_UPPER}-${SEAL_VERSION_MAJOR}.${SEAL_VERSION_MINOR})
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
${CURRENT_PACKAGES_DIR}/debug/include
|
||||
${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
@ -1534,6 +1534,8 @@ sdl2-mixer:arm-uwp=fail
|
||||
sdl2-mixer:x64-uwp=fail
|
||||
sdl2-net:arm-uwp=fail
|
||||
sdl2-net:x64-uwp=fail
|
||||
seal:arm-uwp=fail
|
||||
seal:x64-uwp=fail
|
||||
secp256k1:x64-linux=fail
|
||||
secp256k1:x64-osx=fail
|
||||
selene:x64-linux=ignore
|
||||
|
Loading…
x
Reference in New Issue
Block a user