[zziplib] fix build for Android triplets running on Windows host (#27238)

This commit is contained in:
vividos 2022-10-17 06:01:33 +02:00 committed by GitHub
parent 9e2cab815d
commit a277ec2e8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 2 deletions

View File

@ -11,6 +11,11 @@ vcpkg_from_github(
string(COMPARE EQUAL VCPKG_CRT_LINKAGE "static" MSVC_STATIC_RUNTIME)
string(COMPARE EQUAL VCPKG_LIBRARY_LINKAGE "static" BUILD_STATIC_LIBS)
# on Windows hosts, the UnixCommands are not available; disable options that use them
if(VCPKG_HOST_IS_WINDOWS)
set(ZZIPLIB_OPTIONS "-DZZIP_COMPAT=OFF;-DZZIP_PKGCONFIG=OFF")
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
@ -24,6 +29,7 @@ vcpkg_cmake_configure(
-DZZIPBINS=OFF
-DZZIPTEST=OFF
-DZZIPDOCS=OFF
${ZZIPLIB_OPTIONS}
)
vcpkg_cmake_install()

View File

@ -1,7 +1,7 @@
{
"name": "zziplib",
"version": "0.13.72",
"port-version": 2,
"port-version": 3,
"description": "library providing read access on ZIP-archives",
"homepage": "https://github.com/gdraheim/zziplib",
"license": "LGPL-2.0-or-later OR MPL-1.1",

View File

@ -8202,7 +8202,7 @@
},
"zziplib": {
"baseline": "0.13.72",
"port-version": 2
"port-version": 3
}
}
}

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "4408845ee5c914b49838db10b1e7dec234ee5981",
"version": "0.13.72",
"port-version": 3
},
{
"git-tree": "ba836047fca40d155c24a986af7cf5283692a4d6",
"version": "0.13.72",