diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-09-24 15:41:37 +0200 |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-09-24 15:45:52 +0200 |
commit | b826a9d03b3a987fe96a0386a017364c9ed8f36a (patch) | |
tree | a8fcb55594e910c03549e089f22e7d95f9978b5c | |
parent | ce0dfd10fda1b5c69f31fbf1dd4e85e99b4fd1ac (diff) |
Simplified compiling and deploying the plugin
When compiling the project the plugin will be stored in the
imports subdirectory containing the proper directory structure
so that you can point qmlviewer to it.
Reviewed-by: trustme
-rw-r--r-- | gestures.pro | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gestures.pro b/gestures.pro index 714a08c..b78f94b 100644 --- a/gestures.pro +++ b/gestures.pro @@ -15,6 +15,7 @@ HEADERS += qdeclarativegesturearea_p.h \ qdeclarativegesturerecognizers_p.h QTDIR_build:DESTDIR = $$QT_BUILD_TREE/imports/$$TARGETPATH +else:DESTDIR = imports/$$TARGETPATH target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH qmldir.files += $$PWD/qmldir @@ -25,11 +26,12 @@ symbian:{ TARGET.EPOCALLOWDLLDATA = 1 include($$QT_SOURCE_TREE/demos/symbianpkgrules.pri) - isEmpty(DESTDIR):importFiles.sources = qmlgestureareaplugin$${QT_LIBINFIX}.dll qmldir - else:importFiles.sources = $$DESTDIR/qmlgestureareaplugin$${QT_LIBINFIX}.dll qmldir + importFiles.sources = $$DESTDIR/qmlgestureareaplugin$${QT_LIBINFIX}.dll qmldir importFiles.path = $$QT_IMPORTS_BASE_DIR/$$TARGETPATH DEPLOYMENT = importFiles } +QMAKE_POST_LINK=$(COPY_FILE) $$PWD/qmldir $$DESTDIR + INSTALLS += target qmldir |