mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-13 20:28:26 +08:00
521abc5c2f
Signed-off-by: l.feng <43399351+msclock@users.noreply.github.com> Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
47 lines
1.4 KiB
CMake
47 lines
1.4 KiB
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO rikyoz/bit7z
|
|
REF "v${VERSION}"
|
|
SHA512 c0577b07301b09726fb46164483dc277d681a74a80a90a1aa4881d949be28e6ec26678a0cfbf83e38b4915c8a724078e0771fecefba8c6dfbf9029f8db6063fa
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix_install.patch
|
|
fix_dependency.patch
|
|
fix_compile_options.patch
|
|
)
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/unofficial-bit7z-config.cmake.in" DESTINATION "${SOURCE_PATH}")
|
|
|
|
vcpkg_check_features(
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
regex-matching BIT7Z_REGEX_MATCHING
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DBIT7Z_AUTO_FORMAT=ON
|
|
-DBIT7Z_AUTO_PREFIX_LONG_PATHS=ON
|
|
-DBIT7Z_DISABLE_ZIP_ASCII_PWD_CHECK=OFF
|
|
-DBIT7Z_PATH_SANITIZATION=ON
|
|
-DBIT7Z_DISABLE_USE_STD_FILESYSTEM=OFF
|
|
-DBIT7Z_USE_STD_BYTE=OFF
|
|
-DBIT7Z_USE_NATIVE_STRING=OFF
|
|
-DBIT7Z_USE_SYSTEM_CODEPAGE=OFF
|
|
-DBIT7Z_BUILD_TESTS=OFF
|
|
-DBIT7Z_BUILD_DOCS=OFF
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-bit7z CONFIG_PATH share/unofficial-bit7z)
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|