mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 05:38:59 +08:00
b44c4dd0e2
* [7-zip] update to <21.07> * update version * only support windows * update version * support !uwp * update version * update license and license path, support arm64-windows, * UPDATE LICENSE * update version * update export and portfile.cmake * overwrite version * delete unused license, add fix absolute path * udpate version * add config_fixup * update version * update CMakeLists.txt * update version
31 lines
784 B
CMake
31 lines
784 B
CMake
set(7ZIP_VERSION 21.07)
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "https://www.7-zip.org/a/7z2107-src.7z"
|
|
FILENAME "7z2107-src.7z"
|
|
SHA512 c13521a9829ac239a89015e1f5da27eeaa2469754e3f8ca32311d964ea9d0b40a17e4f8ccbd425d3e865aa768be345368f1c36f354d5710ac7cb2749dd6a3ab5
|
|
)
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
ARCHIVE ${ARCHIVE}
|
|
REF ${7ZIP_VERSION}
|
|
NO_REMOVE_ONE_LEVEL
|
|
)
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup()
|
|
|
|
file(
|
|
INSTALL "${SOURCE_PATH}/DOC/License.txt"
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
|
RENAME copyright
|
|
)
|