early-access version 2853

This commit is contained in:
pineappleEA
2022-07-23 03:01:36 +02:00
parent 1f2b5081b5
commit 1f111bb69c
8955 changed files with 418777 additions and 999 deletions

View File

@@ -0,0 +1,27 @@
diff --git a/libzip-config.cmake.in b/libzip-config.cmake.in
index 5b9aa55..0723f3c 100644
--- a/libzip-config.cmake.in
+++ b/libzip-config.cmake.in
@@ -1,8 +1,20 @@
@PACKAGE_INIT@
# only needed for static library, and doesn't work as-is
-#include(CMakeFindDependencyMacro)
-#find_dependency(ZLIB::ZLIB)
+include(CMakeFindDependencyMacro)
+if(@ENABLE_BZIP2@)
+ find_dependency(BZip2)
+endif()
+if(@ENABLE_LZMA@)
+ find_dependency(LibLZMA)
+endif()
+if(@ENABLE_ZSTD@)
+ find_dependency(Zstd)
+endif()
+if(@ENABLE_OPENSSL@)
+ find_dependency(OpenSSL)
+endif()
+find_dependency(ZLIB)
# how to handle the optional dependencies?
# Provide all our library targets to users.
include("${CMAKE_CURRENT_LIST_DIR}/libzip-targets.cmake")

48
externals/vcpkg/ports/libzip/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,48 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO nih-at/libzip
REF v1.8.0
SHA512 f7a78ff6d964a485b8fe3dfb7a61afae69984e67367e6de78c3cb10f15a0904800a1aeca9d33b63bc24ca926fff98638914343a35e7c3a4c3ec8b7594fc25fc1
HEAD_REF master
PATCHES
fix-dependency.patch
)
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
bzip2 ENABLE_BZIP2
liblzma ENABLE_LZMA
zstd ENABLE_ZSTD
openssl ENABLE_OPENSSL
wincrypto ENABLE_WINDOWS_CRYPTO
commoncrypto ENABLE_COMMONCRYPTO
mbedtls ENABLE_MBEDTLS
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
-DBUILD_DOC=OFF
-DBUILD_EXAMPLES=OFF
-DBUILD_REGRESS=OFF
-DBUILD_TOOLS=OFF
-DENABLE_GNUTLS=OFF
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libzip)
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
# Remove include directories from lib
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/libzip" "${CURRENT_PACKAGES_DIR}/debug/lib/libzip")
# Remove debug include
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Copy copright information
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

88
externals/vcpkg/ports/libzip/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,88 @@
{
"name": "libzip",
"version-semver": "1.8.0",
"description": "A library for reading, creating, and modifying zip archives.",
"homepage": "https://github.com/nih-at/libzip",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
"zlib"
],
"default-features": [
"bzip2",
"default-aes"
],
"features": {
"bzip2": {
"description": "Support bzip2-compressed zip archives",
"dependencies": [
"bzip2"
]
},
"commoncrypto": {
"description": "AES (encryption) support using Apple's Common Crypto API"
},
"default-aes": {
"description": "Use default AES",
"dependencies": [
{
"name": "libzip",
"default-features": false,
"features": [
"commoncrypto"
],
"platform": "osx"
},
{
"name": "libzip",
"default-features": false,
"features": [
"wincrypto"
],
"platform": "windows"
},
{
"name": "libzip",
"default-features": false,
"features": [
"openssl"
],
"platform": "!(windows | osx)"
}
]
},
"liblzma": {
"description": "Support XZ compressed zip archives using liblzma",
"dependencies": [
"liblzma"
]
},
"mbedtls": {
"description": "AES (encryption) support using mbedtls",
"dependencies": [
"mbedtls"
]
},
"openssl": {
"description": "AES (encryption) support using OpenSSL",
"dependencies": [
"openssl"
]
},
"wincrypto": {
"description": "AES (encryption) support using Windows Crypto API"
},
"zstd": {
"description": "Support Zstandard-compressed zip archives",
"dependencies": [
"zstd"
]
}
}
}