From c39b1ae3d233b6cef9a31a533fc1e9d9ee52ec0a Mon Sep 17 00:00:00 2001 From: Giuseppe Massaro Date: Fri, 30 Oct 2020 23:06:22 +0100 Subject: [LibZippp] add encryption feature (#14295) = --- ports/libzippp/CONTROL | 7 +++++-- ports/libzippp/portfile.cmake | 6 ++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ports/libzippp/CONTROL b/ports/libzippp/CONTROL index c9933aa42..e543537a0 100644 --- a/ports/libzippp/CONTROL +++ b/ports/libzippp/CONTROL @@ -1,6 +1,9 @@ Source: libzippp Version: 4.0-1.7.3 -Port-Version: 1 +Port-Version: 2 Homepage: https://github.com/ctabin/libzippp Description: Simple basic C++ wrapper around the libzip library. It is meant to be a portable and easy-to-use library for ZIP handling -Build-Depends: zlib, libzip[core,bzip2] \ No newline at end of file +Build-Depends: zlib, libzip[core,bzip2] + +Feature: encryption +Description: Support encryption diff --git a/ports/libzippp/portfile.cmake b/ports/libzippp/portfile.cmake index b874ce88c..e3f040b99 100644 --- a/ports/libzippp/portfile.cmake +++ b/ports/libzippp/portfile.cmake @@ -6,10 +6,16 @@ vcpkg_from_github( HEAD_REF libzippp-v4.0-1.7.3 ) +vcpkg_check_features( + OUT_FEATURE_OPTIONS FEATURE_OPTIONS + encryption LIBZIPPP_ENABLE_ENCRYPTION +) + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA OPTIONS + ${FEATURE_OPTIONS} -DLIBZIPPP_BUILD_TESTS=OFF OPTIONS_DEBUG -DLIBZIPPP_INSTALL_HEADERS=OFF -- cgit v1.2.3