aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Massaro <giuse.massaro@gmail.com>2020-10-30 23:06:22 +0100
committerGitHub <noreply@github.com>2020-10-30 15:06:22 -0700
commitc39b1ae3d233b6cef9a31a533fc1e9d9ee52ec0a (patch)
treef9f70c0c2824d33efd71a9fedc0fa82208d807a6
parent5c359f1f80b8a2b58236a55f57cab2dc2e607b6d (diff)
downloadvcpkg-c39b1ae3d233b6cef9a31a533fc1e9d9ee52ec0a.tar.gz
vcpkg-c39b1ae3d233b6cef9a31a533fc1e9d9ee52ec0a.zip
[LibZippp] add encryption feature (#14295)
=
-rw-r--r--ports/libzippp/CONTROL7
-rw-r--r--ports/libzippp/portfile.cmake6
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