mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
[apsi] Add new port (#18847)
* Added a new port, apsi. * Updated versioning. * Added platform to a feature in apsi. * Updated versioning. Co-authored-by: Billy Robert ONeal III <bion@microsoft.com>
This commit is contained in:
parent
5abd47dd40
commit
f241ffc3f0
38
ports/apsi/portfile.cmake
Normal file
38
ports/apsi/portfile.cmake
Normal file
@ -0,0 +1,38 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
if("hexl" IN_LIST FEATURES)
|
||||
vcpkg_fail_port_install(ON_ARCH "x86" "arm" "arm64")
|
||||
endif()
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO microsoft/APSI
|
||||
REF 2eba8a245872755a76282c4f1b14aefd67b1a199
|
||||
SHA512 fd21e41b9a3241dc3454fadb54feb7843d9d4d4563da26d0f4a29b67ea22ead24ff6d89029050f5c54225cb95cb181f346f381b98873d3c55173444c0650d581
|
||||
HEAD_REF main
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
log4cplus APSI_USE_LOG4CPLUS
|
||||
zeromq APSI_USE_ZMQ
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
DISABLE_PARALLEL_CONFIGURE
|
||||
OPTIONS
|
||||
"-DAPSI_BUILD_TESTS=OFF"
|
||||
"-DAPSI_BUILD_CLI=OFF"
|
||||
${FEATURE_OPTIONS}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME "APSI" CONFIG_PATH "lib/cmake/APSI-0.2")
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME "copyright")
|
||||
|
||||
vcpkg_copy_pdbs()
|
57
ports/apsi/vcpkg.json
Normal file
57
ports/apsi/vcpkg.json
Normal file
@ -0,0 +1,57 @@
|
||||
{
|
||||
"name": "apsi",
|
||||
"version-semver": "0.2.0",
|
||||
"description": "APSI is a research library for asymmetric private set intersection.",
|
||||
"homepage": "https://github.com/microsoft/APSI",
|
||||
"supports": "static",
|
||||
"dependencies": [
|
||||
"flatbuffers",
|
||||
"jsoncpp",
|
||||
"kuku",
|
||||
{
|
||||
"name": "seal",
|
||||
"features": [
|
||||
"no-throw-tran"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"default-features": [
|
||||
"log4cplus",
|
||||
"zeromq"
|
||||
],
|
||||
"features": {
|
||||
"hexl": {
|
||||
"description": "Use Intel® HEXL to accelerate Microsoft SEAL.",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "seal",
|
||||
"features": [
|
||||
"hexl",
|
||||
"no-throw-tran"
|
||||
],
|
||||
"platform": "x64"
|
||||
}
|
||||
]
|
||||
},
|
||||
"log4cplus": {
|
||||
"description": "Use log4cplus for logging.",
|
||||
"dependencies": [
|
||||
"log4cplus"
|
||||
]
|
||||
},
|
||||
"zeromq": {
|
||||
"description": "Use ZeroMQ for networking.",
|
||||
"dependencies": [
|
||||
"cppzmq"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
9
versions/a-/apsi.json
Normal file
9
versions/a-/apsi.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "2de75d2b02f3a434d3b95f53ca60b71598d9f8b5",
|
||||
"version-semver": "0.2.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
@ -112,6 +112,10 @@
|
||||
"baseline": "1.6.1",
|
||||
"port-version": 3
|
||||
},
|
||||
"apsi": {
|
||||
"baseline": "0.2.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"arb": {
|
||||
"baseline": "2.18.1",
|
||||
"port-version": 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user