mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 05:10:26 +08:00
4fd5934584
* [libzip] Update to 1.10.1 * update version * update patch * update version
50 lines
1.3 KiB
CMake
50 lines
1.3 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO nih-at/libzip
|
|
REF "v${VERSION}"
|
|
SHA512 1b0bffe579de5d2c52b23075f5351a5670e9f7a364c14a876ca3c490a85c0c9b1ebd9a97e729c5c7e71d496a3a0a8f28505bfadd7d8423954d3547a9a8f63841
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-dependency.patch
|
|
use-requires.patch
|
|
)
|
|
|
|
vcpkg_check_features(
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
bzip2 ENABLE_BZIP2
|
|
liblzma ENABLE_LZMA
|
|
zstd ENABLE_ZSTD
|
|
openssl ENABLE_OPENSSL
|
|
wincrypto ENABLE_WINDOWS_CRYPTO
|
|
commoncrypto ENABLE_COMMONCRYPTO
|
|
mbedtls ENABLE_MBEDTLS
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
-DBUILD_DOC=OFF
|
|
-DBUILD_EXAMPLES=OFF
|
|
-DBUILD_REGRESS=OFF
|
|
-DBUILD_TOOLS=OFF
|
|
-DENABLE_GNUTLS=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libzip)
|
|
vcpkg_fixup_pkgconfig()
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
# Remove include directories from lib
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/libzip" "${CURRENT_PACKAGES_DIR}/debug/lib/libzip")
|
|
|
|
# Remove debug include
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
# Copy copright information
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|