2017-03-04 09:27:52 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2017-03-04 09:27:52 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2017-03-04 09:27:52 +00:00
|
|
|
*/
|
|
|
|
#include <QtCore/QtPlugin>
|
|
|
|
|
2020-05-02 02:32:40 +00:00
|
|
|
#ifndef DESKTOP_APP_USE_PACKAGED
|
2017-03-04 09:27:52 +00:00
|
|
|
Q_IMPORT_PLUGIN(QWebpPlugin)
|
2019-11-05 11:27:21 +00:00
|
|
|
|
|
|
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
|
2019-10-11 06:32:26 +00:00
|
|
|
Q_IMPORT_PLUGIN(QJpegPlugin)
|
|
|
|
Q_IMPORT_PLUGIN(QGifPlugin)
|
2019-11-05 11:27:21 +00:00
|
|
|
#endif // Qt 5.8.0
|
|
|
|
|
2019-10-11 06:32:26 +00:00
|
|
|
#ifdef Q_OS_WIN
|
2017-03-04 09:27:52 +00:00
|
|
|
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
|
|
|
|
#elif defined Q_OS_MAC // Q_OS_WIN
|
|
|
|
Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin)
|
|
|
|
Q_IMPORT_PLUGIN(QGenericEnginePlugin)
|
2020-06-13 01:03:23 +00:00
|
|
|
#elif defined Q_OS_UNIX // Q_OS_WIN | Q_OS_MAC
|
2020-02-11 15:10:07 +00:00
|
|
|
Q_IMPORT_PLUGIN(ShmServerBufferPlugin)
|
|
|
|
Q_IMPORT_PLUGIN(DmaBufServerBufferPlugin)
|
|
|
|
Q_IMPORT_PLUGIN(DrmEglServerBufferPlugin)
|
|
|
|
Q_IMPORT_PLUGIN(QWaylandEglClientBufferPlugin)
|
|
|
|
Q_IMPORT_PLUGIN(QWaylandIviShellIntegrationPlugin)
|
|
|
|
Q_IMPORT_PLUGIN(QWaylandWlShellIntegrationPlugin)
|
|
|
|
Q_IMPORT_PLUGIN(QWaylandXdgShellV5IntegrationPlugin)
|
|
|
|
Q_IMPORT_PLUGIN(QWaylandXdgShellV6IntegrationPlugin)
|
|
|
|
Q_IMPORT_PLUGIN(QWaylandXdgShellIntegrationPlugin)
|
|
|
|
Q_IMPORT_PLUGIN(QWaylandBradientDecorationPlugin)
|
2017-03-04 09:27:52 +00:00
|
|
|
Q_IMPORT_PLUGIN(QXcbIntegrationPlugin)
|
2020-02-11 15:10:07 +00:00
|
|
|
Q_IMPORT_PLUGIN(QWaylandIntegrationPlugin)
|
|
|
|
Q_IMPORT_PLUGIN(QWaylandEglPlatformIntegrationPlugin)
|
2017-03-04 09:27:52 +00:00
|
|
|
Q_IMPORT_PLUGIN(QGenericEnginePlugin)
|
|
|
|
Q_IMPORT_PLUGIN(QComposePlatformInputContextPlugin)
|
2020-05-02 02:32:40 +00:00
|
|
|
Q_IMPORT_PLUGIN(QSvgPlugin)
|
2020-02-06 11:34:28 +00:00
|
|
|
Q_IMPORT_PLUGIN(QSvgIconPlugin)
|
2020-08-08 12:07:13 +00:00
|
|
|
#ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION
|
2020-01-29 17:41:42 +00:00
|
|
|
Q_IMPORT_PLUGIN(QConnmanEnginePlugin)
|
|
|
|
Q_IMPORT_PLUGIN(QNetworkManagerEnginePlugin)
|
2017-03-04 09:27:52 +00:00
|
|
|
Q_IMPORT_PLUGIN(QIbusPlatformInputContextPlugin)
|
2020-01-29 17:41:42 +00:00
|
|
|
Q_IMPORT_PLUGIN(QXdgDesktopPortalThemePlugin)
|
2020-08-08 12:07:13 +00:00
|
|
|
#endif // !DESKTOP_APP_DISABLE_DBUS_INTEGRATION
|
2020-06-13 01:03:23 +00:00
|
|
|
#endif // Q_OS_WIN | Q_OS_MAC | Q_OS_UNIX
|
2020-05-02 02:32:40 +00:00
|
|
|
#endif // !DESKTOP_APP_USE_PACKAGED
|
|
|
|
|
2020-06-13 01:03:23 +00:00
|
|
|
#if defined Q_OS_UNIX && !defined Q_OS_MAC
|
2020-05-02 02:32:40 +00:00
|
|
|
#if !defined DESKTOP_APP_USE_PACKAGED || defined DESKTOP_APP_USE_PACKAGED_LAZY
|
|
|
|
Q_IMPORT_PLUGIN(QWaylandMaterialDecorationPlugin)
|
|
|
|
Q_IMPORT_PLUGIN(NimfInputContextPlugin)
|
2020-08-08 12:07:13 +00:00
|
|
|
#ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION
|
2020-05-02 02:32:40 +00:00
|
|
|
Q_IMPORT_PLUGIN(QFcitxPlatformInputContextPlugin)
|
2020-05-14 16:12:29 +00:00
|
|
|
Q_IMPORT_PLUGIN(QFcitx5PlatformInputContextPlugin)
|
2020-05-02 02:32:40 +00:00
|
|
|
Q_IMPORT_PLUGIN(QHimePlatformInputContextPlugin)
|
2020-08-08 12:07:13 +00:00
|
|
|
#endif // !DESKTOP_APP_DISABLE_DBUS_INTEGRATION
|
2020-05-02 02:32:40 +00:00
|
|
|
#endif // !DESKTOP_APP_USE_PACKAGED || DESKTOP_APP_USE_PACKAGED_LAZY
|
|
|
|
|
|
|
|
#if !defined DESKTOP_APP_USE_PACKAGED || defined DESKTOP_APP_USE_PACKAGED_LAZY_PLATFORMTHEMES
|
|
|
|
Q_IMPORT_PLUGIN(Qt5CTPlatformThemePlugin)
|
|
|
|
Q_IMPORT_PLUGIN(Qt5CTStylePlugin)
|
|
|
|
#endif // !DESKTOP_APP_USE_PACKAGED || DESKTOP_APP_USE_PACKAGED_LAZY_PLATFORMTHEMES
|
2020-06-13 01:03:23 +00:00
|
|
|
#endif // Q_OS_UNIX && !Q_OS_MAC
|