2018-08-08 19:15:13 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2023-09-14 07:51:44 +08:00
|
|
|
REPO libimobiledevice/libimobiledevice
|
|
|
|
REF 6fc41f57fc607df9b07446ca45bdf754225c9bd9 # commits on 2023-07-05
|
|
|
|
SHA512 0ceae43eb5c193c173536a20a6efde44b0ff4b5e6029342f59cb6b0dcad2fd629713db922f17b331b5f359a649b5402c18637e636bcdb5eb5c53bec12ff94903
|
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
001_fix_msvc.patch
|
|
|
|
002_fix_static_build.patch
|
|
|
|
003_fix_api.patch
|
2023-09-29 14:36:59 +08:00
|
|
|
004_fix_tools_msvc.patch
|
2018-08-08 19:15:13 +08:00
|
|
|
)
|
|
|
|
|
2023-09-14 07:51:44 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/exports.def" DESTINATION "${SOURCE_PATH}")
|
2019-11-01 12:35:56 +08:00
|
|
|
|
2023-09-29 14:36:59 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
tools BUILD_TOOLS
|
|
|
|
)
|
|
|
|
|
2021-09-24 08:04:17 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2023-09-29 14:36:59 +08:00
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
2018-08-08 19:15:13 +08:00
|
|
|
)
|
2019-11-01 12:35:56 +08:00
|
|
|
|
2021-09-24 08:04:17 +08:00
|
|
|
vcpkg_cmake_install()
|
2023-09-14 07:51:44 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT})
|
2020-10-20 10:23:57 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2023-09-29 14:36:59 +08:00
|
|
|
if("tools" IN_LIST FEATURES)
|
|
|
|
vcpkg_copy_tools(
|
|
|
|
TOOL_NAMES
|
|
|
|
idevice_id
|
|
|
|
idevicebackup
|
|
|
|
idevicebackup2
|
|
|
|
idevicebtlogger
|
|
|
|
idevicecrashreport
|
|
|
|
idevicedate
|
|
|
|
idevicedebug
|
|
|
|
idevicedebugserverproxy
|
|
|
|
idevicedevmodectl
|
|
|
|
idevicediagnostics
|
|
|
|
ideviceenterrecovery
|
|
|
|
ideviceimagemounter
|
|
|
|
ideviceinfo
|
|
|
|
idevicename
|
|
|
|
idevicenotificationproxy
|
|
|
|
idevicepair
|
|
|
|
ideviceprovision
|
|
|
|
idevicescreenshot
|
|
|
|
idevicesetlocation
|
|
|
|
idevicesyslog
|
|
|
|
AUTO_CLEAN
|
|
|
|
)
|
|
|
|
endif()
|
2019-11-01 12:35:56 +08:00
|
|
|
|
2023-09-14 07:51:44 +08:00
|
|
|
file(READ "${CURRENT_PACKAGES_DIR}/share/unofficial-${PORT}/unofficial-${PORT}-config.cmake" cmake_config)
|
|
|
|
file(WRITE "${CURRENT_PACKAGES_DIR}/share/unofficial-${PORT}/unofficial-${PORT}-config.cmake"
|
|
|
|
"include(CMakeFindDependencyMacro)
|
|
|
|
find_dependency(unofficial-libplist CONFIG)
|
|
|
|
find_dependency(unofficial-libimobiledevice-glue CONFIG)
|
|
|
|
find_dependency(unofficial-libusbmuxd CONFIG)
|
|
|
|
find_dependency(OpenSSL)
|
|
|
|
${cmake_config}
|
|
|
|
")
|
|
|
|
|
2021-09-24 08:04:17 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-11-01 12:35:56 +08:00
|
|
|
|
2023-09-14 07:51:44 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|