summaryrefslogtreecommitdiff
path: root/examples/declarative/cppextensions
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-05-24 13:40:11 +1000
committerBea Lam <bea.lam@nokia.com>2010-05-24 13:40:11 +1000
commit941b44c2e36eeafe1acd1be5fd1cb27151db99d2 (patch)
treeb5ba03427d3379bbbbb1fd8bf032f3cf2a572d8a /examples/declarative/cppextensions
parent0fb9856548bdf08c0f51536eaf994af189e62f8d (diff)
downloadqt4-tools-941b44c2e36eeafe1acd1be5fd1cb27151db99d2.tar.gz
Clean up project files for c++ examples
Diffstat (limited to 'examples/declarative/cppextensions')
-rw-r--r--examples/declarative/cppextensions/imageprovider/imageprovider.pro15
-rw-r--r--examples/declarative/cppextensions/plugins/plugins.pro16
-rw-r--r--examples/declarative/cppextensions/qwidgets/qwidgets.pro12
3 files changed, 19 insertions, 24 deletions
diff --git a/examples/declarative/cppextensions/imageprovider/imageprovider.pro b/examples/declarative/cppextensions/imageprovider/imageprovider.pro
index 945a3014a5..462f7d9d93 100644
--- a/examples/declarative/cppextensions/imageprovider/imageprovider.pro
+++ b/examples/declarative/cppextensions/imageprovider/imageprovider.pro
@@ -1,12 +1,10 @@
TEMPLATE = lib
-TARGET = imageprovider
-QT += declarative
CONFIG += qt plugin
+QT += declarative
-TARGET = $$qtLibraryTarget($$TARGET)
DESTDIR = ImageProviderCore
+TARGET = imageprovider
-# Input
SOURCES += imageprovider.cpp
sources.files = $$SOURCES imageprovider.qml imageprovider.pro
@@ -18,8 +16,9 @@ ImageProviderCore_sources.files = \
ImageProviderCore/qmldir
ImageProviderCore_sources.path = $$[QT_INSTALL_EXAMPLES]/declarative/imageprovider/ImageProviderCore
-symbian:{
- TARGET.EPOCALLOWDLLDATA=1
-}
-
INSTALLS = sources ImageProviderCore_sources target
+
+symbian {
+ include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
+ TARGET.EPOCALLOWDLLDATA = 1
+}
diff --git a/examples/declarative/cppextensions/plugins/plugins.pro b/examples/declarative/cppextensions/plugins/plugins.pro
index b501ae3af9..d37ff40c9d 100644
--- a/examples/declarative/cppextensions/plugins/plugins.pro
+++ b/examples/declarative/cppextensions/plugins/plugins.pro
@@ -1,9 +1,10 @@
TEMPLATE = lib
-DESTDIR = com/nokia/TimeExample
-TARGET = qtimeexampleqmlplugin
CONFIG += qt plugin
QT += declarative
+DESTDIR = com/nokia/TimeExample
+TARGET = qtimeexampleqmlplugin
+
SOURCES += plugin.cpp
qdeclarativesources.files += \
@@ -18,14 +19,11 @@ qdeclarativesources.path += $$[QT_INSTALL_EXAMPLES]/declarative/plugins/com/noki
sources.files += plugins.pro plugin.cpp plugins.qml README
sources.path += $$[QT_INSTALL_EXAMPLES]/declarative/plugins
-
target.path += $$[QT_INSTALL_EXAMPLES]/declarative/plugins/com/nokia/TimeExample
-symbian:{
- TARGET.EPOCALLOWDLLDATA=1
-}
-
-
INSTALLS += qdeclarativesources sources target
-symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
+symbian {
+ include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
+ TARGET.EPOCALLOWDLLDATA = 1
+}
diff --git a/examples/declarative/cppextensions/qwidgets/qwidgets.pro b/examples/declarative/cppextensions/qwidgets/qwidgets.pro
index 37f313d2af..c5f8bcffb5 100644
--- a/examples/declarative/cppextensions/qwidgets/qwidgets.pro
+++ b/examples/declarative/cppextensions/qwidgets/qwidgets.pro
@@ -1,21 +1,19 @@
TEMPLATE = lib
-DESTDIR = QWidgets
-TARGET = qwidgetsplugin
CONFIG += qt plugin
QT += declarative
+DESTDIR = QWidgets
+TARGET = qwidgetsplugin
+
SOURCES += qwidgets.cpp
sources.files += qwidgets.pro qwidgets.cpp qwidgets.qml
-
sources.path += $$[QT_INSTALL_EXAMPLES]/declarative/plugins
-
target.path += $$[QT_INSTALL_EXAMPLES]/declarative/plugins
INSTALLS += sources target
-symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
-
-symbian:{
+symbian {
+ include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
TARGET.EPOCALLOWDLLDATA = 1
}