summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs
diff options
context:
space:
mode:
authorJohannes Zellner <johannes.zellner@nokia.com>2012-03-13 17:46:22 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-15 07:54:45 +0100
commit91752c43b8d7880a139d2bc7555571700a638cc9 (patch)
treea12513619a44aa75fdb36adfc3ff3bdea55b6991 /src/plugins/platforms/eglfs
parent07764b9c15ff9be15730252c9f930cb0b2efe15a (diff)
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>
Diffstat (limited to 'src/plugins/platforms/eglfs')
-rw-r--r--src/plugins/platforms/eglfs/eglfs.json3
-rw-r--r--src/plugins/platforms/eglfs/eglfs.pro6
-rw-r--r--src/plugins/platforms/eglfs/main.cpp6
3 files changed, 11 insertions, 4 deletions
diff --git a/src/plugins/platforms/eglfs/eglfs.json b/src/plugins/platforms/eglfs/eglfs.json
new file mode 100644
index 0000000000..c1ad6ca028
--- /dev/null
+++ b/src/plugins/platforms/eglfs/eglfs.json
@@ -0,0 +1,3 @@
+{
+ "Keys": [ "eglfs" ]
+}
diff --git a/src/plugins/platforms/eglfs/eglfs.pro b/src/plugins/platforms/eglfs/eglfs.pro
index 291e09d6ed..ed8503b53c 100644
--- a/src/plugins/platforms/eglfs/eglfs.pro
+++ b/src/plugins/platforms/eglfs/eglfs.pro
@@ -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
diff --git a/src/plugins/platforms/eglfs/main.cpp b/src/plugins/platforms/eglfs/main.cpp
index e4167bf173..2ca2199619 100644
--- a/src/plugins/platforms/eglfs/main.cpp
+++ b/src/plugins/platforms/eglfs/main.cpp
@@ -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"