]> sigrok.org Git - pulseview.git/commitdiff
Ensure QT plugin imports are only done when compiling statically
authorKyle Johnson <redacted>
Tue, 4 May 2021 18:09:59 +0000 (13:09 -0500)
committerSoeren Apel <redacted>
Tue, 22 Jun 2021 16:48:04 +0000 (18:48 +0200)
main.cpp

index 3a5ac29fc2bca41ae597f812ee90d88040b2a02f..d3c52adb15ebee8c03dbe52bf20c871d7d330440 100644 (file)
--- a/main.cpp
+++ b/main.cpp
 
 #ifdef _WIN32
 #include <QtPlugin>
+#ifdef QT_STATIC
 Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
 Q_IMPORT_PLUGIN(QSvgPlugin)
 #endif
+#endif
 
 using std::exception;
 using std::ifstream;