2021-06-11 07:13:36 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO zlib-ng/zlib-ng
|
2023-08-30 02:53:02 +08:00
|
|
|
REF "${VERSION}"
|
|
|
|
SHA512 cb987c0b20a11fca5361dce94e53dead7364e739a984545c38ad4bf0c7fedd83d5d62530d979eca2182da88d7507a9bec8d3f5abff41e92ab5a63ac61001502e
|
2022-09-01 04:57:26 +08:00
|
|
|
HEAD_REF develop
|
2023-11-10 03:27:39 +08:00
|
|
|
PATCHES
|
|
|
|
fix-cflags.patch
|
2021-06-11 07:13:36 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
2021-11-16 08:36:05 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-06-11 07:13:36 +08:00
|
|
|
OPTIONS
|
2022-05-05 10:36:46 +08:00
|
|
|
"-DZLIB_FULL_VERSION=${ZLIB_FULL_VERSION}"
|
2021-06-11 07:13:36 +08:00
|
|
|
-DZLIB_ENABLE_TESTS=OFF
|
|
|
|
-DWITH_NEW_STRATEGIES=ON
|
|
|
|
OPTIONS_RELEASE
|
|
|
|
-DWITH_OPTIM=ON
|
|
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2021-11-16 08:36:05 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
2021-06-11 07:13:36 +08:00
|
|
|
)
|
2023-05-23 02:37:06 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|