From d75fefbcce3dae2eda571905ae0d3485f038956c Mon Sep 17 00:00:00 2001 From: Lincoln Ramsay Date: Wed, 29 Feb 2012 11:34:20 +1000 Subject: 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 --- examples/sensors/accelbubble/accelbubble.pro | 2 ++ examples/sensors/cubehouse/cubehouse.pro | 2 ++ examples/sensors/grue/import/import.pro | 2 ++ examples/sensors/grue/qml_app/qml_app.pro | 2 ++ examples/sensors/maze/maze.pro | 2 ++ examples/sensors/qmlqtsensors/qmlqtsensors.pro | 2 ++ examples/sensors/qmlsensorgestures/qml_app/qml_app.pro | 2 ++ examples/sensors/sensor_explorer/import/import.pro | 2 ++ examples/sensors/sensor_explorer/qml_app/qml_app.pro | 2 ++ examples/sensors/shakeit/shakeit.pro | 2 ++ 10 files changed, 20 insertions(+) (limited to 'examples/sensors') diff --git a/examples/sensors/accelbubble/accelbubble.pro b/examples/sensors/accelbubble/accelbubble.pro index 8d7e1769..feeec685 100644 --- a/examples/sensors/accelbubble/accelbubble.pro +++ b/examples/sensors/accelbubble/accelbubble.pro @@ -6,6 +6,8 @@ app.files = \ icon.png \ images +MT_SYSROOT=$$(MT_SYSROOT) +!isEmpty(MT_SYSROOT):EXAMPLES_PREFIX=/opt/mt/applications !isEmpty(EXAMPLES_PREFIX) { app.path = $$EXAMPLES_PREFIX/com.nokia.mt.accelbubble INSTALLS = app diff --git a/examples/sensors/cubehouse/cubehouse.pro b/examples/sensors/cubehouse/cubehouse.pro index c7847f3d..075ec4ef 100644 --- a/examples/sensors/cubehouse/cubehouse.pro +++ b/examples/sensors/cubehouse/cubehouse.pro @@ -10,6 +10,8 @@ app.files = \ info.json \ mesh +MT_SYSROOT=$$(MT_SYSROOT) +!isEmpty(MT_SYSROOT):EXAMPLES_PREFIX=/opt/mt/applications !isEmpty(EXAMPLES_PREFIX) { app.path = $$EXAMPLES_PREFIX/com.nokia.mt.cubehouse INSTALLS = app 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 diff --git a/examples/sensors/maze/maze.pro b/examples/sensors/maze/maze.pro index 7239eede..cb3b9aaa 100644 --- a/examples/sensors/maze/maze.pro +++ b/examples/sensors/maze/maze.pro @@ -11,6 +11,8 @@ app.files = \ icon.png \ info.json +MT_SYSROOT=$$(MT_SYSROOT) +!isEmpty(MT_SYSROOT):EXAMPLES_PREFIX=/opt/mt/applications !isEmpty(EXAMPLES_PREFIX) { app.path = $$EXAMPLES_PREFIX/com.nokia.mt.maze INSTALLS = app diff --git a/examples/sensors/qmlqtsensors/qmlqtsensors.pro b/examples/sensors/qmlqtsensors/qmlqtsensors.pro index 84f38f64..9ecebd9a 100644 --- a/examples/sensors/qmlqtsensors/qmlqtsensors.pro +++ b/examples/sensors/qmlqtsensors/qmlqtsensors.pro @@ -6,6 +6,8 @@ app.files = \ icon.png \ components +MT_SYSROOT=$$(MT_SYSROOT) +!isEmpty(MT_SYSROOT):EXAMPLES_PREFIX=/opt/mt/applications !isEmpty(EXAMPLES_PREFIX) { app.path = $$EXAMPLES_PREFIX/com.nokia.mt.qmlqtsensors INSTALLS = app diff --git a/examples/sensors/qmlsensorgestures/qml_app/qml_app.pro b/examples/sensors/qmlsensorgestures/qml_app/qml_app.pro index f7741f46..6ad9a8bf 100644 --- a/examples/sensors/qmlsensorgestures/qml_app/qml_app.pro +++ b/examples/sensors/qmlsensorgestures/qml_app/qml_app.pro @@ -9,6 +9,8 @@ app.files = \ GestureView.qml \ icon.png +MT_SYSROOT=$$(MT_SYSROOT) +!isEmpty(MT_SYSROOT):EXAMPLES_PREFIX=/opt/mt/applications !isEmpty(EXAMPLES_PREFIX) { app.path = $$EXAMPLES_PREFIX/com.nokia.mt.qmlsensorgestures INSTALLS = app diff --git a/examples/sensors/sensor_explorer/import/import.pro b/examples/sensors/sensor_explorer/import/import.pro index ec78653e..f852e589 100644 --- a/examples/sensors/sensor_explorer/import/import.pro +++ b/examples/sensors/sensor_explorer/import/import.pro @@ -9,6 +9,8 @@ QT += declarative sensors SOURCES = main.cpp explorer.cpp sensoritem.cpp propertyinfo.cpp HEADERS = explorer.h sensoritem.h propertyinfo.h +MT_SYSROOT=$$(MT_SYSROOT) +!isEmpty(MT_SYSROOT):EXAMPLES_PREFIX=/opt/mt/applications !isEmpty(EXAMPLES_PREFIX):DESTPATH=$$EXAMPLES_PREFIX/com.nokia.mt.sensor_explorer/imports/Explorer else:DESTPATH=$$[QT_INSTALL_IMPORTS]/Explorer diff --git a/examples/sensors/sensor_explorer/qml_app/qml_app.pro b/examples/sensors/sensor_explorer/qml_app/qml_app.pro index 2eb78cea..ded6634f 100644 --- a/examples/sensors/sensor_explorer/qml_app/qml_app.pro +++ b/examples/sensors/sensor_explorer/qml_app/qml_app.pro @@ -9,6 +9,8 @@ app.files = \ icon.png \ main.qml +MT_SYSROOT=$$(MT_SYSROOT) +!isEmpty(MT_SYSROOT):EXAMPLES_PREFIX=/opt/mt/applications !isEmpty(EXAMPLES_PREFIX) { app.path = $$EXAMPLES_PREFIX/com.nokia.mt.sensor_explorer INSTALLS = app diff --git a/examples/sensors/shakeit/shakeit.pro b/examples/sensors/shakeit/shakeit.pro index 65660e3e..5c715418 100644 --- a/examples/sensors/shakeit/shakeit.pro +++ b/examples/sensors/shakeit/shakeit.pro @@ -7,6 +7,8 @@ app.files = \ audio \ images +MT_SYSROOT=$$(MT_SYSROOT) +!isEmpty(MT_SYSROOT):EXAMPLES_PREFIX=/opt/mt/applications !isEmpty(EXAMPLES_PREFIX) { app.path = $$EXAMPLES_PREFIX/com.nokia.mt.shakeit INSTALLS = app -- cgit v1.2.3