diff options
| author | Wei Dai <wei.dai@microsoft.com> | 2021-07-22 15:36:06 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-22 15:36:06 -0700 |
| commit | f241ffc3f03cd3664f242125d21e9967c20ae94a (patch) | |
| tree | 4bb8c019ea98e965d4b9bdf85ef980c77aa06958 | |
| parent | 5abd47dd40d39171a2b6926cd32bb775444368a7 (diff) | |
| download | vcpkg-f241ffc3f03cd3664f242125d21e9967c20ae94a.tar.gz vcpkg-f241ffc3f03cd3664f242125d21e9967c20ae94a.zip | |
[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>
| -rw-r--r-- | ports/apsi/portfile.cmake | 38 | ||||
| -rw-r--r-- | ports/apsi/vcpkg.json | 57 | ||||
| -rw-r--r-- | versions/a-/apsi.json | 9 | ||||
| -rw-r--r-- | versions/baseline.json | 4 |
4 files changed, 108 insertions, 0 deletions
diff --git a/ports/apsi/portfile.cmake b/ports/apsi/portfile.cmake new file mode 100644 index 000000000..d13a9e388 --- /dev/null +++ b/ports/apsi/portfile.cmake @@ -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() diff --git a/ports/apsi/vcpkg.json b/ports/apsi/vcpkg.json new file mode 100644 index 000000000..01926f583 --- /dev/null +++ b/ports/apsi/vcpkg.json @@ -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" + ] + } + } +} diff --git a/versions/a-/apsi.json b/versions/a-/apsi.json new file mode 100644 index 000000000..30b4da132 --- /dev/null +++ b/versions/a-/apsi.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "2de75d2b02f3a434d3b95f53ca60b71598d9f8b5", + "version-semver": "0.2.0", + "port-version": 0 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 936a9e382..38b30fc8c 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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 |
