summaryrefslogtreecommitdiffstats
path: root/examples/sensors/grue/import
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@digia.com>2012-09-25 15:23:59 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-27 10:30:07 +0200
commit8566f3e369ead9510dc7a52e4ee93588c2eebed3 (patch)
tree0fd9ae0158fce78135fd7a989e1e1ae5a875de70 /examples/sensors/grue/import
parentedcc28ea3dac9a42094a68ef873f462c79d79361 (diff)
QtSensors examples: Install plugins under the example tree structure
QtSensors 'Grue' and 'Sensor Explorer' examples include qml imports, a Qt plugin and a shared library. Modify the related .pro files to install everything under QT_INSTALL_EXAMPLES, instead of the main Qt install directory. Task-number: QTBUG-26860 Change-Id: I32d4f66e5b18468c17b668ecb76f969ed15e4c50 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com> Reviewed-by: Alex <ablasche@gmail.com> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'examples/sensors/grue/import')
-rw-r--r--examples/sensors/grue/import/import.pro6
-rw-r--r--examples/sensors/grue/import/qmldir1
2 files changed, 6 insertions, 1 deletions
diff --git a/examples/sensors/grue/import/import.pro b/examples/sensors/grue/import/import.pro
index 3f46103f..71e2249d 100644
--- a/examples/sensors/grue/import/import.pro
+++ b/examples/sensors/grue/import/import.pro
@@ -9,9 +9,13 @@ QT = core gui qml sensors
INCLUDEPATH += $$PWD/../lib
LIBS += -L$$OUT_PWD/../lib -lgruesensor
+# Shared gruesensor library will be installed in parent directory.
+# Define rpath so that this plugin will know where to look for it.
+unix:!mac: QMAKE_LFLAGS += -Wl,-rpath,\\\$\$ORIGIN/..
+
SOURCES = main.cpp
-DESTPATH=$$[QT_INSTALL_IMPORTS]/Grue
+DESTPATH=$$[QT_INSTALL_EXAMPLES]/qtsensors/grue/Grue
target.path=$$DESTPATH
INSTALLS += target
diff --git a/examples/sensors/grue/import/qmldir b/examples/sensors/grue/import/qmldir
index 266b7c11..529b9093 100644
--- a/examples/sensors/grue/import/qmldir
+++ b/examples/sensors/grue/import/qmldir
@@ -1 +1,2 @@
+module Grue
plugin declarative_grue