diff --git a/ports/liboqs/portfile.cmake b/ports/liboqs/portfile.cmake new file mode 100644 index 00000000000000..ee93bc8d0a055a --- /dev/null +++ b/ports/liboqs/portfile.cmake @@ -0,0 +1,25 @@ +set(VCPKG_POLICY_ONLY_RELEASE_CRT enabled) + +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") diff --git a/ports/liboqs/vcpkg.json b/ports/liboqs/vcpkg.json new file mode 100644 index 00000000000000..ce11311be6aa42 --- /dev/null +++ b/ports/liboqs/vcpkg.json @@ -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", + "dependencies": [ + "openssl", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index b975d993ce5078..b3e8afcfc40586 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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 diff --git a/versions/l-/liboqs.json b/versions/l-/liboqs.json new file mode 100644 index 00000000000000..09de0bd3df2087 --- /dev/null +++ b/versions/l-/liboqs.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "d9dbded7d1d105f75413c0729db9e46645d5ca7c", + "version": "0.12.0", + "port-version": 0 + } + ] +}