Commit 98ada626 authored by Martell Malone's avatar Martell Malone Committed by Jean-Baptiste Kempf

Qt: add QT_STATICPLUGIN define as per the qt spec

The QT spec says we should use QT_STATICPLUGIN defined if building a
static plugin.

As we are using out own makefile and not a qt .pro project we have to
define it ourselves.

This is then used to decide if we should import the modules
QWindowsIntegrationPlugin and AccessibleFactory as these are not needed
on a shared build.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a97bb6d8
...@@ -52,8 +52,10 @@ ...@@ -52,8 +52,10 @@
#ifdef _WIN32 /* For static builds */ #ifdef _WIN32 /* For static builds */
#include <QtPlugin> #include <QtPlugin>
#if HAS_QT5 #if HAS_QT5
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin) #ifdef QT_STATICPLUGIN
Q_IMPORT_PLUGIN(AccessibleFactory) Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
Q_IMPORT_PLUGIN(AccessibleFactory)
#endif
#else #else
Q_IMPORT_PLUGIN(qjpeg) Q_IMPORT_PLUGIN(qjpeg)
Q_IMPORT_PLUGIN(qtaccessiblewidgets) Q_IMPORT_PLUGIN(qtaccessiblewidgets)
......
...@@ -33,6 +33,12 @@ ...@@ -33,6 +33,12 @@
#include <vlc_interface.h> /* intf_thread_t */ #include <vlc_interface.h> /* intf_thread_t */
#include <vlc_playlist.h> /* playlist_t */ #include <vlc_playlist.h> /* playlist_t */
#include <qconfig.h>
#ifdef QT_STATIC
#define QT_STATICPLUGIN
#endif
#define QT_NO_CAST_TO_ASCII #define QT_NO_CAST_TO_ASCII
#include <QString> #include <QString>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment