[unrar] msbuild (#33146)

* [unrar] msbuild

* v db
This commit is contained in:
Alexander Neumann 2023-08-16 01:42:00 +02:00 committed by GitHub
parent e5ce4b6244
commit 8f4ad058be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 18 deletions

View File

@ -13,30 +13,20 @@ vcpkg_download_distfile(ARCHIVE
)
vcpkg_extract_source_archive(
SOURCE_PATH
ARCHIVE ${ARCHIVE}
ARCHIVE "${ARCHIVE}"
SOURCE_BASE ${UNRAR_VERSION}
PATCHES msbuild-use-default-sma.patch
)
vcpkg_build_msbuild(
PROJECT_PATH "${SOURCE_PATH}/UnRARDll.vcxproj"
OPTIONS_DEBUG /p:OutDir=../../${TARGET_TRIPLET}-dbg/
OPTIONS_RELEASE /p:OutDir=../../${TARGET_TRIPLET}-rel/
OPTIONS /VERBOSITY:Diagnostic /DETAILEDSUMMARY
vcpkg_msbuild_install(
SOURCE_PATH "${SOURCE_PATH}"
PROJECT_SUBPATH "UnRARDll.vcxproj"
)
#INCLUDE (named dll.hpp in source, and unrar.h in all rarlabs distributions)
file(INSTALL "${SOURCE_PATH}/dll.hpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include" RENAME unrar.h)
#DLL & LIB
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/unrar.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/unrar.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/unrar.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/unrar.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
vcpkg_copy_pdbs()
configure_file("${CMAKE_CURRENT_LIST_DIR}/Config.cmake.in" "${CURRENT_PACKAGES_DIR}/share/unofficial-unrar/unofficial-unrar-config.cmake" @ONLY)
#COPYRIGHT
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")

View File

@ -1,9 +1,16 @@
{
"name": "unrar",
"version": "6.1.7",
"port-version": 2,
"port-version": 3,
"description": "rarlab's unrar library",
"homepage": "https://www.rarlab.com",
"license": null,
"supports": "windows & !uwp & !arm & !static"
"supports": "windows & !uwp & !arm & !static",
"dependencies": [
{
"name": "vcpkg-msbuild",
"host": true,
"platform": "windows"
}
]
}

View File

@ -8390,7 +8390,7 @@
},
"unrar": {
"baseline": "6.1.7",
"port-version": 2
"port-version": 3
},
"upb": {
"baseline": "2022-06-21",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6bc071be9e736a08d2826e81e000dbc6aa6d4b2b",
"version": "6.1.7",
"port-version": 3
},
{
"git-tree": "6849b794133f944030e40dc8c73b1fa4fc2a4f13",
"version": "6.1.7",