mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 08:43:33 +08:00
parent
e5ce4b6244
commit
8f4ad058be
@ -13,30 +13,20 @@ vcpkg_download_distfile(ARCHIVE
|
|||||||
)
|
)
|
||||||
vcpkg_extract_source_archive(
|
vcpkg_extract_source_archive(
|
||||||
SOURCE_PATH
|
SOURCE_PATH
|
||||||
ARCHIVE ${ARCHIVE}
|
ARCHIVE "${ARCHIVE}"
|
||||||
SOURCE_BASE ${UNRAR_VERSION}
|
SOURCE_BASE ${UNRAR_VERSION}
|
||||||
PATCHES msbuild-use-default-sma.patch
|
PATCHES msbuild-use-default-sma.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_build_msbuild(
|
vcpkg_msbuild_install(
|
||||||
PROJECT_PATH "${SOURCE_PATH}/UnRARDll.vcxproj"
|
SOURCE_PATH "${SOURCE_PATH}"
|
||||||
OPTIONS_DEBUG /p:OutDir=../../${TARGET_TRIPLET}-dbg/
|
PROJECT_SUBPATH "UnRARDll.vcxproj"
|
||||||
OPTIONS_RELEASE /p:OutDir=../../${TARGET_TRIPLET}-rel/
|
|
||||||
OPTIONS /VERBOSITY:Diagnostic /DETAILEDSUMMARY
|
|
||||||
)
|
)
|
||||||
|
|
||||||
#INCLUDE (named dll.hpp in source, and unrar.h in all rarlabs distributions)
|
#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)
|
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)
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/Config.cmake.in" "${CURRENT_PACKAGES_DIR}/share/unofficial-unrar/unofficial-unrar-config.cmake" @ONLY)
|
||||||
|
|
||||||
#COPYRIGHT
|
#COPYRIGHT
|
||||||
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
||||||
|
@ -1,9 +1,16 @@
|
|||||||
{
|
{
|
||||||
"name": "unrar",
|
"name": "unrar",
|
||||||
"version": "6.1.7",
|
"version": "6.1.7",
|
||||||
"port-version": 2,
|
"port-version": 3,
|
||||||
"description": "rarlab's unrar library",
|
"description": "rarlab's unrar library",
|
||||||
"homepage": "https://www.rarlab.com",
|
"homepage": "https://www.rarlab.com",
|
||||||
"license": null,
|
"license": null,
|
||||||
"supports": "windows & !uwp & !arm & !static"
|
"supports": "windows & !uwp & !arm & !static",
|
||||||
|
"dependencies": [
|
||||||
|
{
|
||||||
|
"name": "vcpkg-msbuild",
|
||||||
|
"host": true,
|
||||||
|
"platform": "windows"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -8390,7 +8390,7 @@
|
|||||||
},
|
},
|
||||||
"unrar": {
|
"unrar": {
|
||||||
"baseline": "6.1.7",
|
"baseline": "6.1.7",
|
||||||
"port-version": 2
|
"port-version": 3
|
||||||
},
|
},
|
||||||
"upb": {
|
"upb": {
|
||||||
"baseline": "2022-06-21",
|
"baseline": "2022-06-21",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "6bc071be9e736a08d2826e81e000dbc6aa6d4b2b",
|
||||||
|
"version": "6.1.7",
|
||||||
|
"port-version": 3
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "6849b794133f944030e40dc8c73b1fa4fc2a4f13",
|
"git-tree": "6849b794133f944030e40dc8c73b1fa4fc2a4f13",
|
||||||
"version": "6.1.7",
|
"version": "6.1.7",
|
||||||
|
Loading…
Reference in New Issue
Block a user