2022-03-24 03:23:34 +08:00
|
|
|
if (VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
|
|
|
|
2021-04-10 00:58:51 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO zlib-ng/minizip-ng
|
2023-05-24 04:43:07 +08:00
|
|
|
REF "${VERSION}"
|
2023-11-01 02:57:04 +08:00
|
|
|
SHA512 4e626a312c35e5f003e4f365261ef3e1bf33488f8698ec31b1b33d32f6a34ed0b54f0e3ffdae658e5b441532dde3cee45c3822532f52e68ea588e809e8f4081c
|
2021-04-10 00:58:51 +08:00
|
|
|
HEAD_REF master
|
2023-08-26 03:40:43 +08:00
|
|
|
PATCHES
|
|
|
|
fix_find_zstd.patch
|
2021-04-10 00:58:51 +08:00
|
|
|
)
|
|
|
|
|
2021-09-30 00:04:29 +08:00
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
pkcrypt MZ_PKCRYPT
|
|
|
|
wzaes MZ_WZAES
|
|
|
|
openssl MZ_OPENSSL
|
|
|
|
bzip2 MZ_BZIP2
|
|
|
|
lzma MZ_LZMA
|
|
|
|
zlib MZ_ZLIB
|
|
|
|
zstd MZ_ZSTD
|
|
|
|
)
|
|
|
|
|
2021-04-10 00:58:51 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-09-30 00:04:29 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-04-10 00:58:51 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
|
|
OPTIONS
|
2021-09-30 00:04:29 +08:00
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
-DMZ_FETCH_LIBS=OFF
|
2023-05-26 02:46:43 +08:00
|
|
|
-DMZ_LIB_SUFFIX=-ng
|
2023-08-22 05:52:49 +08:00
|
|
|
-DMZ_ICONV=OFF
|
2021-04-10 00:58:51 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2023-10-27 01:41:07 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/minizip-ng)
|
2021-04-10 00:58:51 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
2023-05-26 02:46:43 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|