aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-07-09 18:49:37 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-11 21:23:59 +0200
commitd8f65b5924b4cfb4db04f6b913cc3728f26d559a (patch)
tree649c5bd4d199eeb3f829b3006893209bc5c1c78a /src/imports
parent694f783e1b0299d5d74d871ba33d5a1d9ab3452e (diff)
use centralized qml plugin project handling
Change-Id: I27b773b042560d3a95d943ad942e84d9aaeeba40 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/folderlistmodel/folderlistmodel.pro10
-rw-r--r--src/imports/localstorage/localstorage.pro12
-rw-r--r--src/imports/particles/particles.pro13
-rw-r--r--src/imports/qimportbase.pri31
-rw-r--r--src/imports/qtquick2/qtquick2.pro13
-rw-r--r--src/imports/testlib/testlib.pro22
-rw-r--r--src/imports/window/window.pro13
-rw-r--r--src/imports/xmllistmodel/xmllistmodel.pro10
8 files changed, 17 insertions, 107 deletions
diff --git a/src/imports/folderlistmodel/folderlistmodel.pro b/src/imports/folderlistmodel/folderlistmodel.pro
index f30c2b2097..400484b9b5 100644
--- a/src/imports/folderlistmodel/folderlistmodel.pro
+++ b/src/imports/folderlistmodel/folderlistmodel.pro
@@ -1,6 +1,6 @@
+CXX_MODULE = qml
TARGET = qmlfolderlistmodelplugin
TARGETPATH = Qt/labs/folderlistmodel
-include(../qimportbase.pri)
QT += core-private qml qml-private v8-private
@@ -10,10 +10,4 @@ HEADERS += qquickfolderlistmodel.h \
fileproperty_p.h \
fileinfothread_p.h
-DESTDIR = $$QT.qml.imports/$$TARGETPATH
-target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
-
-qmldir.files += $$PWD/qmldir
-qmldir.path += $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
-
-INSTALLS += target qmldir
+load(qml_plugin)
diff --git a/src/imports/localstorage/localstorage.pro b/src/imports/localstorage/localstorage.pro
index fa1718dd68..93fa9c21dd 100644
--- a/src/imports/localstorage/localstorage.pro
+++ b/src/imports/localstorage/localstorage.pro
@@ -1,17 +1,11 @@
+CXX_MODULE = qml
TARGET = qmllocalstorageplugin
TARGETPATH = QtQuick/LocalStorage
-include(../qimportbase.pri)
QT += sql qml qml-private v8-private core-private
SOURCES += plugin.cpp
-OTHER_FILES += localstorage.json
-
-DESTDIR = $$QT.qml.imports/$$TARGETPATH
-target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
+load(qml_plugin)
-qmldir.files += $$PWD/qmldir
-qmldir.path += $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
-
-INSTALLS += target qmldir
+OTHER_FILES += localstorage.json
diff --git a/src/imports/particles/particles.pro b/src/imports/particles/particles.pro
index a9d0ece448..d25f56064f 100644
--- a/src/imports/particles/particles.pro
+++ b/src/imports/particles/particles.pro
@@ -1,19 +1,10 @@
+CXX_MODULE = qml
TARGET = particlesplugin
TARGETPATH = QtQuick/Particles.2
-include(../qimportbase.pri)
SOURCES += \
plugin.cpp
QT += quick-private quickparticles-private qml-private
-OTHER_FILES += \
- qmldir
-
-DESTDIR = $$QT.qml.imports/$$TARGETPATH
-target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
-
-qmldir.files += $$PWD/qmldir
-qmldir.path += $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
-
-INSTALLS += target qmldir
+load(qml_plugin)
diff --git a/src/imports/qimportbase.pri b/src/imports/qimportbase.pri
deleted file mode 100644
index ab54e4b1b9..0000000000
--- a/src/imports/qimportbase.pri
+++ /dev/null
@@ -1,31 +0,0 @@
-load(qt_module)
-
-TEMPLATE = lib
-CONFIG += qt plugin
-
-win32|mac:!macx-xcode:CONFIG += debug_and_release
-
-isEmpty(TARGETPATH) {
- error("qimportbase.pri: You must provide a TARGETPATH!")
-}
-isEmpty(TARGET) {
- error("qimportbase.pri: You must provide a TARGET!")
-}
-
-QMLDIRFILE = $${_PRO_FILE_PWD_}/qmldir
-copy2build.input = QMLDIRFILE
-copy2build.output = $$QT.qml.imports/$$TARGETPATH/qmldir
-!contains(TEMPLATE_PREFIX, vc):copy2build.variable_out = PRE_TARGETDEPS
-copy2build.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
-copy2build.name = COPY ${QMAKE_FILE_IN}
-copy2build.CONFIG += no_link
-# `clean' should leave the build in a runnable state, which means it shouldn't delete qmldir
-copy2build.CONFIG += no_clean
-QMAKE_EXTRA_COMPILERS += copy2build
-
-TARGET = $$qtLibraryTarget($$TARGET)
-contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
-
-load(qt_targets)
-
-wince*:LIBS += $$QMAKE_LIBS_GUI
diff --git a/src/imports/qtquick2/qtquick2.pro b/src/imports/qtquick2/qtquick2.pro
index 3a95c5fd21..2cd15c7340 100644
--- a/src/imports/qtquick2/qtquick2.pro
+++ b/src/imports/qtquick2/qtquick2.pro
@@ -1,19 +1,10 @@
+CXX_MODULE = qml
TARGET = qtquick2plugin
TARGETPATH = QtQuick.2
-include(../qimportbase.pri)
SOURCES += \
plugin.cpp
QT += quick-private qml-private
-OTHER_FILES += \
- qmldir
-
-DESTDIR = $$QT.qml.imports/$$TARGETPATH
-target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
-
-qmldir.files += $$PWD/qmldir
-qmldir.path += $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
-
-INSTALLS += target qmldir
+load(qml_plugin)
diff --git a/src/imports/testlib/testlib.pro b/src/imports/testlib/testlib.pro
index dfb23cea0c..e94f977abd 100644
--- a/src/imports/testlib/testlib.pro
+++ b/src/imports/testlib/testlib.pro
@@ -1,30 +1,16 @@
+CXX_MODULE = qml
TARGET = qmltestplugin
TARGETPATH = QtTest
-include(../qimportbase.pri)
-
-CONFIG += qt plugin
QT += qml quick qmltest qmltest-private v8-private qml-private core-private testlib
SOURCES += main.cpp
-OTHER_FILES += testlib.json
-
-DESTDIR = $$QT.qml.imports/$$TARGETPATH
-
-target.path += $$[QT_INSTALL_IMPORTS]/QtTest
-OTHER_IMPORT_FILES = \
- qmldir \
+QML_FILES = \
TestCase.qml \
SignalSpy.qml \
testlogger.js
-otherImportFiles.files += $$OTHER_IMPORT_FILES
+load(qml_plugin)
-otherImportFiles.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
-
-copy2build.input = OTHER_IMPORT_FILES
-copy2build.output = $$QT.qml.imports/$$TARGETPATH/${QMAKE_FILE_BASE}${QMAKE_FILE_EXT}
-
-
-INSTALLS += target otherImportFiles
+OTHER_FILES += testlib.json
diff --git a/src/imports/window/window.pro b/src/imports/window/window.pro
index 42b6f5911d..68179a848b 100644
--- a/src/imports/window/window.pro
+++ b/src/imports/window/window.pro
@@ -1,19 +1,10 @@
+CXX_MODULE = qml
TARGET = windowplugin
TARGETPATH = QtQuick/Window.2
-include(../qimportbase.pri)
SOURCES += \
plugin.cpp
QT += quick-private qml-private
-OTHER_FILES += \
- qmldir
-
-DESTDIR = $$QT.qml.imports/$$TARGETPATH
-target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
-
-qmldir.files += $$PWD/qmldir
-qmldir.path += $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
-
-INSTALLS += target qmldir
+load(qml_plugin)
diff --git a/src/imports/xmllistmodel/xmllistmodel.pro b/src/imports/xmllistmodel/xmllistmodel.pro
index 8c056e8448..09d5666919 100644
--- a/src/imports/xmllistmodel/xmllistmodel.pro
+++ b/src/imports/xmllistmodel/xmllistmodel.pro
@@ -1,16 +1,10 @@
+CXX_MODULE = qml
TARGET = qmlxmllistmodelplugin
TARGETPATH = QtQuick/XmlListModel
-include(../qimportbase.pri)
QT += network qml xmlpatterns qml-private v8-private core-private
SOURCES += qqmlxmllistmodel.cpp plugin.cpp
HEADERS += qqmlxmllistmodel_p.h
-DESTDIR = $$QT.qml.imports/$$TARGETPATH
-target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
-
-qmldir.files += $$PWD/qmldir
-qmldir.path += $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
-
-INSTALLS += target qmldir \ No newline at end of file
+load(qml_plugin)