summaryrefslogtreecommitdiffstats
path: root/examples/sensors/grue
diff options
context:
space:
mode:
authorLincoln Ramsay <lincoln.ramsay@nokia.com>2012-02-29 11:34:20 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-29 04:58:29 +0100
commitd75fefbcce3dae2eda571905ae0d3485f038956c (patch)
treefc519379a2b77fd5b8f9ade5969f19b86b2d8c55 /examples/sensors/grue
parentb2d70cf15ef595cbb293eccc4c8c0fd5a7926006 (diff)
Allow opening examples directly from Qt Creator.
The MT_SYSROOT environment variable is set in this case so we can use this to set the correct installation path. Change-Id: I923b1ea97468414a123c97a01b0405604827a99b Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
Diffstat (limited to 'examples/sensors/grue')
-rw-r--r--examples/sensors/grue/import/import.pro2
-rw-r--r--examples/sensors/grue/qml_app/qml_app.pro2
2 files changed, 4 insertions, 0 deletions
diff --git a/examples/sensors/grue/import/import.pro b/examples/sensors/grue/import/import.pro
index 98277ddc..37d25447 100644
--- a/examples/sensors/grue/import/import.pro
+++ b/examples/sensors/grue/import/import.pro
@@ -11,6 +11,8 @@ LIBS += -L$$OUT_PWD/../lib -lgruesensor
SOURCES = main.cpp
+MT_SYSROOT=$$(MT_SYSROOT)
+!isEmpty(MT_SYSROOT):EXAMPLES_PREFIX=/opt/mt/applications
!isEmpty(EXAMPLES_PREFIX):DESTPATH=$$EXAMPLES_PREFIX/com.nokia.mt.grue/imports/Grue
else:DESTPATH=$$[QT_INSTALL_IMPORTS]/Grue
diff --git a/examples/sensors/grue/qml_app/qml_app.pro b/examples/sensors/grue/qml_app/qml_app.pro
index 47c6c140..42f830be 100644
--- a/examples/sensors/grue/qml_app/qml_app.pro
+++ b/examples/sensors/grue/qml_app/qml_app.pro
@@ -5,6 +5,8 @@ app.files = \
info.json \
main.qml
+MT_SYSROOT=$$(MT_SYSROOT)
+!isEmpty(MT_SYSROOT):EXAMPLES_PREFIX=/opt/mt/applications
!isEmpty(EXAMPLES_PREFIX) {
app.path = $$EXAMPLES_PREFIX/com.nokia.mt.grue
INSTALLS = app