mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01:00
[libzip] Add features to libzip (#5121)
* add features to libzip * add documentation * undo add bzip2 as linux build dependency * Use default features, and remove mbedtls feature
This commit is contained in:
parent
61e2cac730
commit
e9439ff5ca
@ -1,4 +1,9 @@
|
|||||||
Source: libzip
|
Source: libzip
|
||||||
Version: rel-1-5-1-vcpkg1
|
Version: rel-1-5-1-vcpkg2
|
||||||
Build-Depends: zlib
|
Build-Depends: zlib
|
||||||
|
Default-Features: openssl
|
||||||
Description: A library for reading, creating, and modifying zip archives.
|
Description: A library for reading, creating, and modifying zip archives.
|
||||||
|
|
||||||
|
Feature: openssl
|
||||||
|
Build-Depends: openssl
|
||||||
|
Description: AES (encryption) support using OpenSSL
|
||||||
|
@ -8,9 +8,18 @@ vcpkg_from_github(
|
|||||||
PATCHES cmake_dont_build_more_than_needed.patch
|
PATCHES cmake_dont_build_more_than_needed.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# AES encryption
|
||||||
|
set(USE_OPENSSL OFF)
|
||||||
|
if("openssl" IN_LIST FEATURES)
|
||||||
|
set(USE_OPENSSL ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
PREFER_NINJA
|
PREFER_NINJA
|
||||||
|
OPTIONS
|
||||||
|
# see https://github.com/nih-at/libzip/blob/rel-1-5-1/INSTALL.md
|
||||||
|
-DENABLE_OPENSSL=${USE_OPENSSL}
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user