Skip to content

Commit

Permalink
Merge pull request #1 from janisozaur/libzip-windows-crypto
Browse files Browse the repository at this point in the history
[libzip] Add windows_crypto feature
  • Loading branch information
mitzal authored Apr 14, 2020
2 parents bfd4309 + def96f4 commit db7e8a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ports/libzip/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Source: libzip
Version: rel-1-6-1
Homepage: https://github.com/nih-at/libzip
Build-Depends: zlib
Default-Features: openssl, bzip2
Default-Features: openssl, bzip2, windows_crypto
Description: A library for reading, creating, and modifying zip archives.

Feature: bzip2
Expand All @@ -12,3 +12,6 @@ Description: Support bzip2-compressed zip archives
Feature: openssl
Build-Depends: openssl
Description: AES (encryption) support using OpenSSL

Feature: windows_crypto
Description: Support BCrypt/CNG-based crypto on Windows
5 changes: 3 additions & 2 deletions ports/libzip/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ vcpkg_from_github(

vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
openssl OPENSSL
bzip2 BZIP2
openssl ENABLE_OPENSSL
bzip2 ENABLE_BZIP2
windows_crypto ENABLE_WINDOWS_CRYPTO
)

vcpkg_configure_cmake(
Expand Down

0 comments on commit db7e8a9

Please sign in to comment.