[minizip] Fix usage, fix minizipConfig.cmake (#18472)

* [minizip] Fix usage, fix minizipConfig.cmake

* update version record
This commit is contained in:
Jack·Boos·Yu 2021-06-17 05:39:53 +08:00 committed by GitHub
parent 4dc864e240
commit 183a12585a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 34 additions and 13 deletions

View File

@ -53,7 +53,7 @@ target_link_libraries(minizip PRIVATE ZLIB::ZLIB)
target_compile_definitions(minizip PRIVATE -D_ZLIB_H)
if(ENABLE_BZIP2)
target_link_libraries(minizip PRIVATE ${BZIP2_LIBRARIES})
target_link_libraries(minizip PUBLIC ${BZIP2_LIBRARIES})
target_compile_definitions(minizip PRIVATE -DHAVE_BZIP2=1)
endif()
if(ANDROID)

View File

@ -1,11 +0,0 @@
Source: minizip
Version: 1.2.11
Port-Version: 8
Build-Depends: zlib
Homepage: https://github.com/madler/zlib
Description: Zip compression library
Supports: !uwp
Feature: bzip2
Build-Depends: bzip2
Description: Support compression using bzip2 library

View File

@ -1,4 +1,12 @@
#@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
find_dependency(ZLIB)
if (@ENABLE_BZIP2@)
find_dependency(BZip2)
endif()
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
check_required_components("@PROJECT_NAME@")

19
ports/minizip/vcpkg.json Normal file
View File

@ -0,0 +1,19 @@
{
"name": "minizip",
"version-semver": "1.2.11",
"port-version": 9,
"description": "Zip compression library",
"homepage": "https://github.com/madler/zlib",
"supports": "!uwp",
"dependencies": [
"zlib"
],
"features": {
"bzip2": {
"description": "Support compression using bzip2 library",
"dependencies": [
"bzip2"
]
}
}
}

View File

@ -4034,7 +4034,7 @@
},
"minizip": {
"baseline": "1.2.11",
"port-version": 8
"port-version": 9
},
"minizip-ng": {
"baseline": "3.0.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "fc89de0b8a1105f6bee9625bba4031b138862a39",
"version-semver": "1.2.11",
"port-version": 9
},
{
"git-tree": "4bf6a0d8bac1c47fa80e0c51188aa3d2ecb86414",
"version-string": "1.2.11",