diff options
| author | xiphon <xiphon@protonmail.com> | 2019-10-07 12:07:09 +0000 |
|---|---|---|
| committer | TheCharlatan <seb.kung@gmail.com> | 2019-11-27 22:59:27 +0100 |
| commit | 52182ef9b190a57591313e809a624e81d6ce8d08 (patch) | |
| tree | 3ee31614d3fd0a7edebbf972c4d5e5b65194da8c /src | |
| parent | 91aff7c0e4ac4d24083709772913eed652d14e3a (diff) | |
| download | monzero-gui-52182ef9b190a57591313e809a624e81d6ce8d08.tar.gz monzero-gui-52182ef9b190a57591313e809a624e81d6ce8d08.tar.xz monzero-gui-52182ef9b190a57591313e809a624e81d6ce8d08.zip | |
cmake: fix MinGW static builds, add 'release-static-win64' target
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 13 | ||||
| -rw-r--r-- | src/main/main.cpp | 48 |
2 files changed, 51 insertions, 10 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index abad3c9b..722498d9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -133,16 +133,9 @@ target_link_libraries(monero-gui ${CMAKE_DL_LIBS} ${LibUSB_LIBRARIES} ${HIDAPI_LIBRARIES} - Qt5::Core - Qt5::Quick - Qt5::Widgets - Qt5::Gui - Qt5::Network - Qt5::Qml - Qt5::Multimedia - Qt5::Xml - Qt5::XmlPatterns - Qt5::Svg + ${QT5_LIBRARIES} + ${EXTRA_LIBRARIES} + ${ICU_LIBRARIES} ) if(WITH_SCANNER) diff --git a/src/main/main.cpp b/src/main/main.cpp index e630c15f..3a9eb014 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -78,6 +78,54 @@ #include "QR-Code-scanner/QrCodeScanner.h" #endif +#include <QtPlugin> +#if defined(Q_OS_OSX) + Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin); +#elif defined(Q_OS_WIN) + Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin); +#elif defined(Q_OS_LINUX) + Q_IMPORT_PLUGIN(QXcbIntegrationPlugin); +#endif +Q_IMPORT_PLUGIN(QSvgIconPlugin) +Q_IMPORT_PLUGIN(QGifPlugin) +Q_IMPORT_PLUGIN(QICNSPlugin) +Q_IMPORT_PLUGIN(QICOPlugin) +Q_IMPORT_PLUGIN(QJp2Plugin) +Q_IMPORT_PLUGIN(QJpegPlugin) +Q_IMPORT_PLUGIN(QMngPlugin) +Q_IMPORT_PLUGIN(QSvgPlugin) +Q_IMPORT_PLUGIN(QTgaPlugin) +Q_IMPORT_PLUGIN(QTiffPlugin) +Q_IMPORT_PLUGIN(QWbmpPlugin) +Q_IMPORT_PLUGIN(QWebpPlugin) +Q_IMPORT_PLUGIN(QQmlDebuggerServiceFactory) +Q_IMPORT_PLUGIN(QQmlInspectorServiceFactory) +Q_IMPORT_PLUGIN(QLocalClientConnectionFactory) +Q_IMPORT_PLUGIN(QDebugMessageServiceFactory) +Q_IMPORT_PLUGIN(QQmlNativeDebugConnectorFactory) +Q_IMPORT_PLUGIN(QQmlNativeDebugServiceFactory) +Q_IMPORT_PLUGIN(QQmlProfilerServiceFactory) +Q_IMPORT_PLUGIN(QQuickProfilerAdapterFactory) +Q_IMPORT_PLUGIN(QQmlDebugServerFactory) +Q_IMPORT_PLUGIN(QTcpServerConnectionFactory) +Q_IMPORT_PLUGIN(QGenericEnginePlugin) + +Q_IMPORT_PLUGIN(QtQuick2Plugin) +Q_IMPORT_PLUGIN(QtQuickLayoutsPlugin) +Q_IMPORT_PLUGIN(QtGraphicalEffectsPlugin) +Q_IMPORT_PLUGIN(QtGraphicalEffectsPrivatePlugin) +Q_IMPORT_PLUGIN(QtQuick2WindowPlugin) +Q_IMPORT_PLUGIN(QtQuickControls1Plugin) +Q_IMPORT_PLUGIN(QtQuick2DialogsPlugin) +Q_IMPORT_PLUGIN(QmlFolderListModelPlugin) +Q_IMPORT_PLUGIN(QmlSettingsPlugin) +Q_IMPORT_PLUGIN(QtQuick2DialogsPrivatePlugin) +Q_IMPORT_PLUGIN(QtQuick2PrivateWidgetsPlugin) +Q_IMPORT_PLUGIN(QtQuickControls2Plugin) +Q_IMPORT_PLUGIN(QtQuickTemplates2Plugin) +Q_IMPORT_PLUGIN(QmlXmlListModelPlugin) +Q_IMPORT_PLUGIN(QMultimediaDeclarativeModule) + bool isIOS = false; bool isAndroid = false; bool isWindows = false; |
