diff options
Diffstat (limited to 'examples/QtSensors/QtSensors_grue/import/import.pro')
-rw-r--r-- | examples/QtSensors/QtSensors_grue/import/import.pro | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/examples/QtSensors/QtSensors_grue/import/import.pro b/examples/QtSensors/QtSensors_grue/import/import.pro new file mode 100644 index 0000000..753e1ef --- /dev/null +++ b/examples/QtSensors/QtSensors_grue/import/import.pro @@ -0,0 +1,33 @@ +TEMPLATE = lib +CONFIG += plugin + +TARGET = $$qtLibraryTarget(declarative_grue) +TARGETPATH = Grue + +QT = core gui qml sensors + +INCLUDEPATH += $$PWD/../lib +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 + +target.path=$$DESTPATH +INSTALLS += target + +qmldir.files=$$PWD/qmldir +qmldir.path=$$DESTPATH +INSTALLS += qmldir + +OTHER_FILES += \ + plugin.json qmldir + +!isEmpty(EXAMPLES_PREFIX) { + QMAKE_LFLAGS += -Wl,-rpath,$$EXAMPLES_PREFIX/com.nokia.mt.grue/lib + DEFINES += "BUNDLED_PLUGIN=\\\"$$EXAMPLES_PREFIX/com.nokia.mt.grue/plugins/sensors/libqtsensors_grue.so\\\"" +} + |