From 3321a8386fd2567b5ff1f700a2415a31b26eab7c Mon Sep 17 00:00:00 2001 From: reito Date: Tue, 24 Jan 2023 08:12:31 +0800 Subject: [PATCH] [libimobiledevice] add usage (#29088) * add usage to libimobiledevice * update usage --- ports/libimobiledevice/portfile.cmake | 3 ++- ports/libimobiledevice/usage | 5 +++++ ports/libimobiledevice/vcpkg.json | 3 ++- versions/baseline.json | 2 +- versions/l-/libimobiledevice.json | 5 +++++ 5 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 ports/libimobiledevice/usage diff --git a/ports/libimobiledevice/portfile.cmake b/ports/libimobiledevice/portfile.cmake index b063154bcc..47d530b4eb 100644 --- a/ports/libimobiledevice/portfile.cmake +++ b/ports/libimobiledevice/portfile.cmake @@ -1,7 +1,7 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO libimobiledevice-win32/libimobiledevice - REF 0d4a7e905baeadafa098e629a5241fac6fbf7d24 # v1.3.7 + REF 0d4a7e905baeadafa098e629a5241fac6fbf7d24 # v1.3.17 SHA512 db6369b2fa8e7b659948602ac8c4cd568bf37c0f73e58150f61f1af7000de95aa1a6a9ae546d6a37de4cb08a8059127fe5ed067351c4092c01a45350586f755a HEAD_REF msvc-master ) @@ -20,3 +20,4 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") # Handle copyright file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") \ No newline at end of file diff --git a/ports/libimobiledevice/usage b/ports/libimobiledevice/usage new file mode 100644 index 0000000000..922db8f3e6 --- /dev/null +++ b/ports/libimobiledevice/usage @@ -0,0 +1,5 @@ +libimobiledevice provides usage: + + find_package(PkgConfig REQUIRED) + pkg_check_modules(LIBIMOBILEDEVICE REQUIRED IMPORTED_TARGET libimobiledevice-1.0) + target_link_libraries(main PRIVATE PkgConfig::LIBIMOBILEDEVICE) diff --git a/ports/libimobiledevice/vcpkg.json b/ports/libimobiledevice/vcpkg.json index 75a8ad7c75..5fb2d2715e 100644 --- a/ports/libimobiledevice/vcpkg.json +++ b/ports/libimobiledevice/vcpkg.json @@ -1,7 +1,7 @@ { "name": "libimobiledevice", "version": "1.3.17", - "port-version": 1, + "port-version": 2, "description": "A cross-platform protocol library to communicate with iOS devices", "homepage": "http://www.libimobiledevice.org", "license": "LGPL-2.1-only", @@ -11,6 +11,7 @@ "libplist", "libusbmuxd", "openssl", + "pkgconf", { "name": "vcpkg-cmake", "host": true diff --git a/versions/baseline.json b/versions/baseline.json index 6da96c7ba5..0ba36fb346 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3954,7 +3954,7 @@ }, "libimobiledevice": { "baseline": "1.3.17", - "port-version": 1 + "port-version": 2 }, "libirecovery": { "baseline": "1.0.25", diff --git a/versions/l-/libimobiledevice.json b/versions/l-/libimobiledevice.json index 53866053dc..499cdff0bb 100644 --- a/versions/l-/libimobiledevice.json +++ b/versions/l-/libimobiledevice.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "2945a66f7411d4b12ab5733be25abd5319a12718", + "version": "1.3.17", + "port-version": 2 + }, { "git-tree": "0f57daa63ba49e977a8e72eea7d3615cdda07648", "version": "1.3.17",