diff options
Diffstat (limited to 'libs/vcpkg-registry/ports/7zip')
| -rw-r--r-- | libs/vcpkg-registry/ports/7zip/7zip-config.cmake.in | 5 | ||||
| -rw-r--r-- | libs/vcpkg-registry/ports/7zip/portfile.cmake | 33 | ||||
| -rw-r--r-- | libs/vcpkg-registry/ports/7zip/vcpkg.json | 18 |
3 files changed, 56 insertions, 0 deletions
diff --git a/libs/vcpkg-registry/ports/7zip/7zip-config.cmake.in b/libs/vcpkg-registry/ports/7zip/7zip-config.cmake.in new file mode 100644 index 0000000..b371de4 --- /dev/null +++ b/libs/vcpkg-registry/ports/7zip/7zip-config.cmake.in @@ -0,0 +1,5 @@ +@PACKAGE_INIT@ + +include("${CMAKE_CURRENT_LIST_DIR}/7zip-targets.cmake") + +check_required_components(7zip) diff --git a/libs/vcpkg-registry/ports/7zip/portfile.cmake b/libs/vcpkg-registry/ports/7zip/portfile.cmake new file mode 100644 index 0000000..8c25dc5 --- /dev/null +++ b/libs/vcpkg-registry/ports/7zip/portfile.cmake @@ -0,0 +1,33 @@ +set(VCPKG_LIBRARY_LINKAGE dynamic) +set(VCPKG_POLICY_DLLS_IN_STATIC_LIBRARY enabled) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO ip7z/7zip + REF "${VERSION}" + SHA512 DC0241ED96907965445550912D1171FE32230A52997B089558A4CC73A662FC6A17940DB8DCB0794B805268964899D9E5A48DDB444E92B56FD243BBAA17C20A1C + HEAD_REF main +) + +vcpkg_download_distfile( + CMAKEFILE_PATH + URLS https://raw.githubusercontent.com/microsoft/vcpkg/f4c23ffc72ab26026394a83504dd9b5d50774833/ports/7zip/CMakeLists.txt + FILENAME CMakeLists.txt + SHA512 845A4F37094F0140F5EFB44C86499AFDA8E6C2B5BEA6F9A44577A974C6E58811DA7494BB3441C5A5009784BD757E85CD98087FD3E3E95DA882298AF6C8E0D1DE +) + +file(COPY_FILE "${CMAKEFILE_PATH}" "${SOURCE_PATH}/CMakeLists.txt") +file(COPY "${CMAKE_CURRENT_LIST_DIR}/7zip-config.cmake.in" DESTINATION "${SOURCE_PATH}") + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +vcpkg_cmake_config_fixup() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/DOC/License.txt") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") diff --git a/libs/vcpkg-registry/ports/7zip/vcpkg.json b/libs/vcpkg-registry/ports/7zip/vcpkg.json new file mode 100644 index 0000000..06b0d3b --- /dev/null +++ b/libs/vcpkg-registry/ports/7zip/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "7zip", + "version-string": "24.09", + "description": "Library for archiving file with a high compression ratio.", + "homepage": "https://www.7-zip.org", + "license": "LGPL-2.1-or-later", + "supports": "!uwp & !xbox", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |
