Skip to content

Commit

Permalink
Add liboqs
Browse files Browse the repository at this point in the history
Signed-off-by: Tal Regev <[email protected]>
  • Loading branch information
talregev committed Jan 12, 2025
1 parent 81ab9a8 commit 64cafda
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ports/liboqs/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO open-quantum-safe/liboqs
REF ${VERSION}
SHA512 93260f15c02108157fa595e252685c49c5fb6433d04b989c381da4e27169577f3011d9174b2ec0c110fff15d2d3c640a9833bf28aa53949e8f33c0e674b6e781
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DOQS_BUILD_ONLY_LIB=ON
-DOQS_PERMIT_UNSUPPORTED_ARCHITECTURE=ON
)

vcpkg_cmake_install(DISABLE_PARALLEL)
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
vcpkg_fixup_pkgconfig()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
19 changes: 19 additions & 0 deletions ports/liboqs/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "liboqs",
"version": "0.12.0",
"description": "open source C library for quantum-safe cryptographic algorithms.",
"homepage": "https://openquantumsafe.org/",
"license": "MIT",
"supports": "!uwp & !(windows & static)",
"dependencies": [
"openssl",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4940,6 +4940,10 @@
"baseline": "0.2.1",
"port-version": 3
},
"liboqs": {
"baseline": "0.12.0",
"port-version": 0
},
"liborigin": {
"baseline": "3.0.3",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/l-/liboqs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "4982bd95d9f9c2e18292ad98152eb260f5fdf943",
"version": "0.12.0",
"port-version": 0
}
]
}

0 comments on commit 64cafda

Please sign in to comment.