Take advantage of the Qt 5 plugin json structure
Also change naming scheme of plugins: buffer integrations doesn't start with "wayland-" but the platform plugins have to start with "wayland-". Also update the README Change-Id: I6dd2103ab287ed569ab06cfb6eb469e3db058831 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
parent
982cef3480
commit
1706b46194
@ -1,3 +1,3 @@
|
||||
{
|
||||
"Keys": [ "wayland-brcm" ]
|
||||
"Keys": [ "brcm" ]
|
||||
}
|
||||
|
@ -47,26 +47,16 @@ QT_BEGIN_NAMESPACE
|
||||
class QWaylandBrcmEglClientBufferPlugin : public QWaylandClientBufferIntegrationPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.WaylandClient.QWaylandClientBufferIntegrationFactoryInterface.5.3" FILE "brcm-egl.json")
|
||||
Q_PLUGIN_METADATA(IID QWaylandClientBufferIntegrationFactoryInterface_iid FILE "brcm-egl.json")
|
||||
public:
|
||||
QStringList keys() const;
|
||||
QWaylandClientBufferIntegration *create(const QString&, const QStringList&);
|
||||
QWaylandClientBufferIntegration *create(const QString&, const QStringList&) Q_DECL_OVERRIDE;
|
||||
};
|
||||
|
||||
QStringList QWaylandBrcmEglClientBufferPlugin::keys() const
|
||||
{
|
||||
QStringList list;
|
||||
list << "wayland-brcm";
|
||||
return list;
|
||||
}
|
||||
|
||||
QWaylandClientBufferIntegration *QWaylandBrcmEglClientBufferPlugin::create(const QString& system, const QStringList& paramList)
|
||||
{
|
||||
Q_UNUSED(paramList);
|
||||
if (system.toLower() == "wayland-brcm")
|
||||
return new QWaylandBrcmEglIntegration();
|
||||
|
||||
return 0;
|
||||
Q_UNUSED(system);
|
||||
return new QWaylandBrcmEglIntegration();
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -47,26 +47,16 @@ QT_BEGIN_NAMESPACE
|
||||
class DrmEglServerBufferPlugin : public QWaylandServerBufferIntegrationPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.WaylandClient.QWaylandServerBufferIntegrationFactoryInterface.5.3" FILE "drm-egl-server.json")
|
||||
Q_PLUGIN_METADATA(IID QWaylandServerBufferIntegrationFactoryInterface_iid FILE "drm-egl-server.json")
|
||||
public:
|
||||
QStringList keys() const;
|
||||
QWaylandServerBufferIntegration *create(const QString&, const QStringList&);
|
||||
QWaylandServerBufferIntegration *create(const QString&, const QStringList&) Q_DECL_OVERRIDE;
|
||||
};
|
||||
|
||||
QStringList DrmEglServerBufferPlugin::keys() const
|
||||
{
|
||||
QStringList list;
|
||||
list << "drm-egl-server";
|
||||
return list;
|
||||
}
|
||||
|
||||
QWaylandServerBufferIntegration *DrmEglServerBufferPlugin::create(const QString& system, const QStringList& paramList)
|
||||
{
|
||||
Q_UNUSED(paramList);
|
||||
if (system.toLower() == "drm-egl-server")
|
||||
return new DrmEglServerBufferIntegration();
|
||||
|
||||
return 0;
|
||||
Q_UNUSED(system);
|
||||
return new DrmEglServerBufferIntegration();
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -47,26 +47,16 @@ QT_BEGIN_NAMESPACE
|
||||
class QWaylandEglClientBufferPlugin : public QWaylandClientBufferIntegrationPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.WaylandClient.QWaylandClientBufferIntegrationFactoryInterface.5.3" FILE "wayland-egl.json")
|
||||
Q_PLUGIN_METADATA(IID QWaylandClientBufferIntegrationFactoryInterface_iid FILE "wayland-egl.json")
|
||||
public:
|
||||
QStringList keys() const;
|
||||
QWaylandClientBufferIntegration *create(const QString&, const QStringList&);
|
||||
QWaylandClientBufferIntegration *create(const QString&, const QStringList&) Q_DECL_OVERRIDE;
|
||||
};
|
||||
|
||||
QStringList QWaylandEglClientBufferPlugin::keys() const
|
||||
{
|
||||
QStringList list;
|
||||
list << "wayland-egl";
|
||||
return list;
|
||||
}
|
||||
|
||||
QWaylandClientBufferIntegration *QWaylandEglClientBufferPlugin::create(const QString& system, const QStringList& paramList)
|
||||
{
|
||||
Q_UNUSED(paramList);
|
||||
if (system.toLower() == "wayland-egl")
|
||||
return new QWaylandEglClientBufferIntegration();
|
||||
|
||||
return 0;
|
||||
Q_UNUSED(system);
|
||||
return new QWaylandEglClientBufferIntegration();
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -47,26 +47,16 @@ QT_BEGIN_NAMESPACE
|
||||
class QWaylandXCompositeEglClientBufferIntegrationPlugin : public QWaylandClientBufferIntegrationPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.WaylandClient.QWaylandClientBufferIntegrationFactoryInterface.5.3" FILE "xcomposite-egl.json")
|
||||
Q_PLUGIN_METADATA(IID QWaylandClientBufferIntegrationFactoryInterface_iid FILE "xcomposite-egl.json")
|
||||
public:
|
||||
QStringList keys() const;
|
||||
QWaylandClientBufferIntegration *create(const QString&, const QStringList&);
|
||||
QWaylandClientBufferIntegration *create(const QString&, const QStringList&) Q_DECL_OVERRIDE;
|
||||
};
|
||||
|
||||
QStringList QWaylandXCompositeEglClientBufferIntegrationPlugin::keys() const
|
||||
{
|
||||
QStringList list;
|
||||
list << "xcomposite" << "xcomposite-egl";
|
||||
return list;
|
||||
}
|
||||
|
||||
QWaylandClientBufferIntegration *QWaylandXCompositeEglClientBufferIntegrationPlugin::create(const QString& system, const QStringList& paramList)
|
||||
{
|
||||
Q_UNUSED(paramList);
|
||||
if (system.toLower() == "xcomposite" || system.toLower() == "xcomposite-egl")
|
||||
return new QWaylandXCompositeEGLClientBufferIntegration();
|
||||
|
||||
return 0;
|
||||
Q_UNUSED(system);
|
||||
return new QWaylandXCompositeEGLClientBufferIntegration();
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -1,3 +1,3 @@
|
||||
{
|
||||
"Keys": [ "wayland-xcomposite" ]
|
||||
"Keys": [ "xcomposite-egl" ]
|
||||
}
|
||||
|
@ -47,26 +47,16 @@ QT_BEGIN_NAMESPACE
|
||||
class QWaylandXCompositeGlxClientBufferIntegrationPlugin : public QWaylandClientBufferIntegrationPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.WaylandClient.QWaylandClientBufferIntegrationFactoryInterface.5.3" FILE "xcomposite-glx.json")
|
||||
Q_PLUGIN_METADATA(IID QWaylandClientBufferIntegrationFactoryInterface_iid FILE "xcomposite-glx.json")
|
||||
public:
|
||||
QStringList keys() const;
|
||||
QWaylandClientBufferIntegration *create(const QString&, const QStringList&);
|
||||
QWaylandClientBufferIntegration *create(const QString&, const QStringList&) Q_DECL_OVERRIDE;
|
||||
};
|
||||
|
||||
QStringList QWaylandXCompositeGlxClientBufferIntegrationPlugin::keys() const
|
||||
{
|
||||
QStringList list;
|
||||
list << "wayland-xcomposite-glx";
|
||||
return list;
|
||||
}
|
||||
|
||||
QWaylandClientBufferIntegration *QWaylandXCompositeGlxClientBufferIntegrationPlugin::create(const QString& system, const QStringList& paramList)
|
||||
{
|
||||
Q_UNUSED(paramList);
|
||||
if (system.toLower() == "wayland-xcomposite-glx")
|
||||
return new QWaylandXCompositeGLXIntegration();
|
||||
|
||||
return 0;
|
||||
Q_UNUSED(system);
|
||||
return new QWaylandXCompositeGLXIntegration();
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -1,3 +1,3 @@
|
||||
{
|
||||
"Keys": [ "wayland-xcomposite-glx" ]
|
||||
"Keys": [ "xcomposite-glx" ]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user