diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2016-05-19 08:06:23 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2016-05-19 08:06:50 +0200 |
commit | 20a4655188bc86b34a58761f047f046229cf46c6 (patch) | |
tree | 3100e62b3f9830c127d4ffb2f62c390014dd5b50 /examples/sensors/grue/import | |
parent | f32489e379805c51b28ae5d471491a649283fd8d (diff) | |
parent | 127ac0810f042999a13db18e68b43be9ab85e708 (diff) | |
download | qtsensors-20a4655188bc86b34a58761f047f046229cf46c6.tar.gz |
Merge remote-tracking branch 'gerrit/5.6' into 5.7
Change-Id: Ie2002a0be7fcb6bd9b81792a1e50b4ffb6c1acc3
Diffstat (limited to 'examples/sensors/grue/import')
-rw-r--r-- | examples/sensors/grue/import/import.json (renamed from examples/sensors/grue/import/plugin.json) | 0 | ||||
-rw-r--r-- | examples/sensors/grue/import/import.pro | 17 | ||||
-rw-r--r-- | examples/sensors/grue/import/main.cpp | 2 |
3 files changed, 7 insertions, 12 deletions
diff --git a/examples/sensors/grue/import/plugin.json b/examples/sensors/grue/import/import.json index 0967ef4..0967ef4 100644 --- a/examples/sensors/grue/import/plugin.json +++ b/examples/sensors/grue/import/import.json diff --git a/examples/sensors/grue/import/import.pro b/examples/sensors/grue/import/import.pro index 08b312d..ab4d177 100644 --- a/examples/sensors/grue/import/import.pro +++ b/examples/sensors/grue/import/import.pro @@ -20,21 +20,16 @@ DESTPATH=$$[QT_INSTALL_EXAMPLES]/sensors/grue/Grue target.path=$$DESTPATH INSTALLS += target +CONFIG += install_ok # Do not cargo-cult this! + qmldir.files=$$PWD/qmldir qmldir.path=$$DESTPATH INSTALLS += qmldir OTHER_FILES += \ - plugin.json qmldir - -copyfile = $$PWD/qmldir -copydest = $$DESTDIR - -# On Windows, use backslashes as directory separators -equals(QMAKE_HOST.os, Windows) { - copyfile ~= s,/,\\,g - copydest ~= s,/,\\,g -} + import.json qmldir # Copy the qmldir file to the same folder as the plugin binary -QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$copyfile) $$quote($$copydest) $$escape_expand(\\n\\t) +cpqmldir.files = $$PWD/qmldir +cpqmldir.path = $$DESTDIR +COPIES += cpqmldir diff --git a/examples/sensors/grue/import/main.cpp b/examples/sensors/grue/import/main.cpp index 01d95c5..dc2372e 100644 --- a/examples/sensors/grue/import/main.cpp +++ b/examples/sensors/grue/import/main.cpp @@ -54,7 +54,7 @@ QT_BEGIN_NAMESPACE class GrueSensorQmlImport : public QQmlExtensionPlugin { Q_OBJECT - Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface" FILE "plugin.json") + Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface" FILE "import.json") public: virtual void registerTypes(const char *uri) { |