diff options
author | Alex <qt-info@nokia.com> | 2011-05-23 12:49:50 +1000 |
---|---|---|
committer | Alex <qt-info@nokia.com> | 2011-05-23 12:49:50 +1000 |
commit | 660805caba6a45934f8def8f0c203837ddbed098 (patch) | |
tree | fc73d5c661bc6d111cdf86a31a563a11f07388b9 /src/imports/qimportbase.pri | |
parent | e9d32d8e3feb54f5e7aa06a96fc45a7964d03d1b (diff) |
Add sensor's declarative plugin
Diffstat (limited to 'src/imports/qimportbase.pri')
-rw-r--r-- | src/imports/qimportbase.pri | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/imports/qimportbase.pri b/src/imports/qimportbase.pri new file mode 100644 index 00000000..8647f05c --- /dev/null +++ b/src/imports/qimportbase.pri @@ -0,0 +1,38 @@ +load(qt_module) + +symbian:include($$QT_SOURCE_TREE/src/plugins/qpluginbase.pri) +TEMPLATE = lib +CONFIG += qt plugin + +win32|mac:!wince*:!win32-msvc:!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.declarative.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 + +include($$QT_SOURCE_TREE/src/qt_targets.pri) + +wince*:LIBS += $$QMAKE_LIBS_GUI + +symbian: { + TARGET.EPOCALLOWDLLDATA=1 + TARGET.CAPABILITY = All -Tcb + load(armcc_warnings) +} |