summaryrefslogtreecommitdiffstats
path: root/src/imports/nfc
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/nfc')
-rw-r--r--src/imports/nfc/nfc.pro5
-rw-r--r--src/imports/nfc/plugin.cpp8
2 files changed, 13 insertions, 0 deletions
diff --git a/src/imports/nfc/nfc.pro b/src/imports/nfc/nfc.pro
index a020f09b..e2ec1b9e 100644
--- a/src/imports/nfc/nfc.pro
+++ b/src/imports/nfc/nfc.pro
@@ -1,3 +1,8 @@
+CXX_MODULE = connectivity
+TARGET = declarative_nfc
+TARGETPATH = QtNfc
+IMPORT_VERSION = 5.6
+
QT = core qml nfc
# Input
diff --git a/src/imports/nfc/plugin.cpp b/src/imports/nfc/plugin.cpp
index ff7474f3..bfcc9aff 100644
--- a/src/imports/nfc/plugin.cpp
+++ b/src/imports/nfc/plugin.cpp
@@ -41,6 +41,13 @@
#include "qdeclarativendefurirecord_p.h"
#include "qdeclarativendefmimerecord_p.h"
+static void initResources()
+{
+#ifdef QT_STATIC
+ Q_INIT_RESOURCE(qmake_QtNfc);
+#endif
+}
+
QT_USE_NAMESPACE
class QNfcQmlPlugin : public QQmlExtensionPlugin
@@ -49,6 +56,7 @@ class QNfcQmlPlugin : public QQmlExtensionPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
+ QNfcQmlPlugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { initResources(); }
void registerTypes(const char *uri)
{
Q_ASSERT(uri == QStringLiteral("QtNfc"));