directfb: Switch to the new style plugins

The plugin might advertize more keys than supported at runtime. E.g.
the directfbegl key might not be available. I would like to have a
directfb.json.in and then generate the right file or if moc would
pre-process the file...

Change-Id: Ia8ad4e1367c06f5e35d02822d4f830ce1e9dc577
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
This commit is contained in:
Holger Hans Peter Freyther 2012-02-25 12:12:09 +01:00 committed by Qt by Nokia
parent b51296c064
commit 394e45199f
3 changed files with 9 additions and 2 deletions

View File

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

View File

@ -43,3 +43,5 @@ directfbegl: {
CONFIG += qpa/genericunixfontdatabase
target.path += $$[QT_INSTALL_PLUGINS]/platforms
INSTALLS += target
OTHER_FILES += directfb.json

View File

@ -57,6 +57,8 @@ QT_BEGIN_NAMESPACE
class QDirectFbIntegrationPlugin : public QPlatformIntegrationPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPlatformIntegrationFactoryInterface" FILE "directfb.json")
public:
QStringList keys() const;
QPlatformIntegration *create(const QString&, const QStringList&);
@ -86,6 +88,6 @@ QPlatformIntegration * QDirectFbIntegrationPlugin::create(const QString& system,
return integration;
}
Q_EXPORT_PLUGIN2(directfb, QDirectFbIntegrationPlugin)
QT_END_NAMESPACE
#include "main.moc"