fix: copy additional runtime dlls

This commit is contained in:
uncor3
2026-04-09 11:44:00 +03:00
parent 8a90ad3b5f
commit 598d7b7721
+23
View File
@@ -272,6 +272,8 @@ set(ADDITIONAL_DLLS
"libtheoraenc-2.dll" "libtheoraenc-2.dll"
"libbluray-2.dll" "libbluray-2.dll"
"libnettle-8.dll" "libnettle-8.dll"
"libunistring-5.dll"
"libidn2-0.dll"
) )
message("Copying additional MinGW runtime DLLs from MSYS2...") message("Copying additional MinGW runtime DLLs from MSYS2...")
@@ -285,6 +287,27 @@ foreach(DLL_NAME ${ADDITIONAL_DLLS})
endif() endif()
endforeach() endforeach()
# Required for win-ifuse and iproxy since we moved from libimobiledevice
# and these are not dependencies of the main executable
set(LIBIMOBILEDEVICE_DLLS
"libimobiledevice-1.dll"
"libusbmuxd-2.0.dll"
"libplist-2.0.dll"
"libssl-3-x64.dll"
)
foreach(DLL_NAME ${LIBIMOBILEDEVICE_DLLS})
set(DLL_PATH "${MSYS2_BIN_PATH}/${DLL_NAME}")
if(EXISTS ${DLL_PATH})
message("Copying libimobiledevice DLL: ${DLL_NAME}")
file(COPY ${DLL_PATH} DESTINATION ${OUTPUT_DIR})
else()
message(WARNING "libimobiledevice DLL not found: ${DLL_NAME} (searched ${MSYS2_BIN_PATH})")
endif()
endforeach()
message("Copying GStreamer helper executables...") message("Copying GStreamer helper executables...")
set(GST_LIBEXEC_PATH "${MSYS2_BIN_PATH}/../libexec/gstreamer-1.0") set(GST_LIBEXEC_PATH "${MSYS2_BIN_PATH}/../libexec/gstreamer-1.0")
file(COPY "${GST_LIBEXEC_PATH}/gst-plugin-scanner.exe" DESTINATION "${OUTPUT_DIR}/gstreamer-1.0/libexec") file(COPY "${GST_LIBEXEC_PATH}/gst-plugin-scanner.exe" DESTINATION "${OUTPUT_DIR}/gstreamer-1.0/libexec")