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/sensor_explorer/import/import.pro | 2 ++ examples/sensors/sensor_explorer/qml_app/qml_app.pro | 2 ++ 2 files changed, 4 insertions(+) (limited to 'examples/sensors/sensor_explorer') 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 -- cgit v1.2.3