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}"
|
2023-11-28 14:45:18 +08:00
|
|
|
SHA512 9212d87c63a2da4e5355a7a1c75380aeba40fbd0ea3d71d3784cb3eac94237f9bea2a1b7993a08f39d4197725c4c133087d3a9d213d3944aa48a7559de2be920
|
2022-09-01 04:57:26 +08:00
|
|
|
HEAD_REF develop
|
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")
|