Add new plugin metadata description and eglfs.json file

Change-Id: Ia594c18ba24e5fccf9fa59b9be6efcbeae00fad6
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
bb10
Johannes Zellner 2012-03-13 17:46:22 +01:00 committed by Qt by Nokia
parent 07764b9c15
commit 91752c43b8
3 changed files with 11 additions and 4 deletions

View File

@ -0,0 +1,3 @@
{
"Keys": [ "eglfs" ]
}

View File

@ -1,6 +1,5 @@
TARGET = qeglfs
TEMPLATE = lib
CONFIG += plugin
load(qt_plugin)
QT += core-private gui-private platformsupport-private
@ -29,3 +28,6 @@ CONFIG += qpa/genericunixfontdatabase
target.path += $$[QT_INSTALL_PLUGINS]/platforms
INSTALLS += target
OTHER_FILES += \
eglfs.json

View File

@ -46,6 +46,8 @@ QT_BEGIN_NAMESPACE
class QEglIntegrationPlugin : public QPlatformIntegrationPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPlatformIntegrationFactoryInterface" FILE "eglfs.json")
public:
QStringList keys() const;
QPlatformIntegration *create(const QString&, const QStringList&);
@ -67,6 +69,6 @@ QPlatformIntegration* QEglIntegrationPlugin::create(const QString& system, const
return 0;
}
Q_EXPORT_PLUGIN2(eglintegration, QEglIntegrationPlugin)
QT_END_NAMESPACE
#include "main.moc"