1
0
Fork 0

Add network reachability plugin on macOS.

This commit is contained in:
John Preston 2021-11-02 11:15:58 +04:00
parent d5237e224e
commit 393ae95d7f
2 changed files with 2 additions and 0 deletions

View file

@ -159,6 +159,7 @@ else()
lib/${qt_lib_prefix}Qt6BundledFreetype
plugins/platforms/${qt_lib_prefix}qcocoa
plugins/tls/${qt_lib_prefix}qsecuretransportbackend
plugins/networkinformation/${qt_lib_prefix}qscnetworkreachability
)
foreach (lib ${qt_libs})
list(APPEND qt_libs_list "${qt_loc}/${lib}${qt_lib_suffix}")

View file

@ -12,6 +12,7 @@ https://github.com/desktop-app/legal/blob/master/LEGAL
#ifdef Q_OS_MAC
Q_IMPORT_PLUGIN(QSecureTransportBackend)
Q_IMPORT_PLUGIN(QSCNetworkReachabilityNetworkInformationBackendFactory)
#else // Q_OS_MAC
Q_IMPORT_PLUGIN(QTlsBackendOpenSSL)
#endif // Q_OS_MAC