Add new plugin metadata description and eglfs.json file
authorJohannes Zellner <johannes.zellner@nokia.com>
Tue, 13 Mar 2012 16:46:22 +0000 (17:46 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 15 Mar 2012 06:54:45 +0000 (07:54 +0100)
Change-Id: Ia594c18ba24e5fccf9fa59b9be6efcbeae00fad6
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/plugins/platforms/eglfs/eglfs.json [new file with mode: 0644]
src/plugins/platforms/eglfs/eglfs.pro
src/plugins/platforms/eglfs/main.cpp

diff --git a/src/plugins/platforms/eglfs/eglfs.json b/src/plugins/platforms/eglfs/eglfs.json
new file mode 100644 (file)
index 0000000..c1ad6ca
--- /dev/null
@@ -0,0 +1,3 @@
+{
+    "Keys": [ "eglfs" ]
+}
index 291e09d..ed8503b 100644 (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
index e4167bf..2ca2199 100644 (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"