Make compatible with qt5-static build
This commit is contained in:
@@ -107,6 +107,13 @@ target_link_libraries(
|
||||
Threads::Threads
|
||||
)
|
||||
|
||||
# needed for static builds
|
||||
if (WIN32)
|
||||
qt_import_plugins(plat INCLUDE Qt5::QWindowsIntegrationPlugin Qt5::QICOPlugin QWindowsVistaStylePlugin)
|
||||
else()
|
||||
qt_import_plugins(plat INCLUDE Qt5::QICOPlugin)
|
||||
endif()
|
||||
|
||||
if (PkgConfig_FOUND)
|
||||
pkg_check_modules(RTMIDI rtmidi)
|
||||
if (RTMIDI_FOUND)
|
||||
|
||||
@@ -4,6 +4,16 @@
|
||||
#include <QThread>
|
||||
#include <QTimer>
|
||||
|
||||
#ifdef QT_STATIC
|
||||
/* Static builds need plugin imports */
|
||||
#include <QtPlugin>
|
||||
Q_IMPORT_PLUGIN(QICOPlugin)
|
||||
#ifdef Q_OS_WINDOWS
|
||||
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
|
||||
Q_IMPORT_PLUGIN(QWindowsVistaStylePlugin)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <86box/86box.h>
|
||||
#include <86box/plat.h>
|
||||
#include <86box/ui.h>
|
||||
|
||||
Reference in New Issue
Block a user