diff options
author | Lincoln Ramsay <lincoln.ramsay@nokia.com> | 2012-04-13 16:23:26 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-16 07:49:11 +0200 |
commit | 8a36fce9f7f2db716327a611682a41c96e6d8472 (patch) | |
tree | 4fd3e22e13c94afbcb9c45121887531024e6ea88 /examples/sensors/grue/lib/lib.pro | |
parent | cf9442c184f1cd4b3e8baba517fc757085cd5ea5 (diff) | |
download | qtsensors-8a36fce9f7f2db716327a611682a41c96e6d8472.tar.gz |
Package the grue sensor example into a self-contained bundle.
Cleaner for deployment (no need to write to inaccessible system locations)
though it uses a bit of a hack to get QtSensors to find the backend plugin.
Change-Id: Ibfa765d928a2d57429832c68594bcbe38f9d6a6e
Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
Diffstat (limited to 'examples/sensors/grue/lib/lib.pro')
-rw-r--r-- | examples/sensors/grue/lib/lib.pro | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/sensors/grue/lib/lib.pro b/examples/sensors/grue/lib/lib.pro index 7e087ba..e048e60 100644 --- a/examples/sensors/grue/lib/lib.pro +++ b/examples/sensors/grue/lib/lib.pro @@ -15,3 +15,13 @@ SOURCES += gruesensor.cpp\ target.path=$$[QT_INSTALL_LIBS] INSTALLS += target +MT_SYSROOT=$$(MT_SYSROOT) +!isEmpty(MT_SYSROOT):EXAMPLES_PREFIX=/opt/mt/applications +!isEmpty(EXAMPLES_PREFIX) { + target.path = $$EXAMPLES_PREFIX/com.nokia.mt.grue/lib + remove_so.commands = "rm $(INSTALL_ROOT)$${target.path}/lib$${TARGET}.so" + remove_so.CONFIG = no_path + remove_so.depends = install_target + INSTALLS += remove_so +} + |