summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcon <qtc-committer@nokia.com>2011-03-28 15:31:27 +0200
committercon <qtc-committer@nokia.com>2011-03-29 17:54:52 +0200
commit530e7494dd5148a8844c083f6de414fc5dd1a5df (patch)
tree3ef934c6ae8683b0dc6117dcda3925f23742404e
parent88d72819953d126610b894acaf087fb9f096f2af (diff)
downloadqt-creator-530e7494dd5148a8844c083f6de414fc5dd1a5df.tar.gz
Automatic versioning for the qml tools.
Reviewed-by: Thomas Hartmann
-rw-r--r--share/qtcreator/qml/qmldump/Info.plist.in (renamed from share/qtcreator/qml/qmldump/Info.plist)10
-rw-r--r--share/qtcreator/qml/qmlobserver/Info.plist.in (renamed from share/qtcreator/qml/qmlobserver/Info_mac.plist)19
-rw-r--r--share/qtcreator/qml/qmlobserver/qmlobserver.pro3
-rw-r--r--share/qtcreator/static.pro10
-rw-r--r--src/tools/qmlpuppet/Info.plist.in (renamed from src/tools/qmlpuppet/Info.plist)10
-rw-r--r--src/tools/qmlpuppet/qmlpuppet.pro8
6 files changed, 44 insertions, 16 deletions
diff --git a/share/qtcreator/qml/qmldump/Info.plist b/share/qtcreator/qml/qmldump/Info.plist.in
index bf62990d11..d34a234d9f 100644
--- a/share/qtcreator/qml/qmldump/Info.plist
+++ b/share/qtcreator/qml/qmldump/Info.plist.in
@@ -1,6 +1,6 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
+<?xml version=\"1.0\" encoding=\"UTF-8\"?>
+<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">
+<plist version=\"1.0\">
<dict>
<key>NSHumanReadableCopyright</key>
<string>(C) 2008-2011 Nokia Corporation
@@ -20,9 +20,9 @@ Alternatively, this plugin may be used under the terms of the GNU Lesser General
<key>CFBundleIdentifier</key>
<string>com.nokia.qtcreator.qmldump</string>
<key>CFBundleVersion</key>
- <string>2.1.83</string>
+ <string>$$QTCREATOR_VERSION</string>
<key>CFBundleShortVersionString</key>
- <string>2.1.83</string>
+ <string>$$QTCREATOR_VERSION</string>
<key>LSUIElement</key>
<string>1</string>
</dict>
diff --git a/share/qtcreator/qml/qmlobserver/Info_mac.plist b/share/qtcreator/qml/qmlobserver/Info.plist.in
index 08775479ba..d5b7bb1a0f 100644
--- a/share/qtcreator/qml/qmlobserver/Info_mac.plist
+++ b/share/qtcreator/qml/qmlobserver/Info.plist.in
@@ -1,7 +1,16 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
-<plist version="0.1">
+<?xml version=\"1.0\" encoding=\"UTF-8\"?>
+<!DOCTYPE plist SYSTEM \"file://localhost/System/Library/DTDs/PropertyList.dtd\">
+<plist version=\"0.1\">
<dict>
+ <key>NSHumanReadableCopyright</key>
+ <string>(C) 2008-2011 Nokia Corporation
+Commercial Usage
+
+Licensees holding valid Qt Commercial licenses may use this file in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
+
+GNU Lesser General Public License Usage
+
+Alternatively, this plugin may be used under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation and appearing in the file LICENSE.LGPL included in the packaging of this file. Please review the following information to ensure the GNU Lesser General Public License version 2.1 requirements will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.</string>
<key>CFBundleIconFile</key>
<string>@ICON@</string>
<key>CFBundleIdentifier</key>
@@ -14,6 +23,10 @@
<string>@TYPEINFO@</string>
<key>CFBundleExecutable</key>
<string>@EXECUTABLE@</string>
+ <key>CFBundleVersion</key>
+ <string>$$QTCREATOR_VERSION</string>
+ <key>CFBundleShortVersionString</key>
+ <string>$$QTCREATOR_VERSION</string>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
diff --git a/share/qtcreator/qml/qmlobserver/qmlobserver.pro b/share/qtcreator/qml/qmlobserver/qmlobserver.pro
index 5ef9da0ed3..3bafb54ca2 100644
--- a/share/qtcreator/qml/qmlobserver/qmlobserver.pro
+++ b/share/qtcreator/qml/qmlobserver/qmlobserver.pro
@@ -60,8 +60,9 @@ symbian {
LIBS += -lavkon -lcone
}
}
+OTHER_FILES+=Info.plist
mac {
- QMAKE_INFO_PLIST=Info_mac.plist
+ QMAKE_INFO_PLIST=Info.plist
TARGET=QMLObserver
ICON=qml.icns
} else {
diff --git a/share/qtcreator/static.pro b/share/qtcreator/static.pro
index 205ab9e6bd..c9b997a1bf 100644
--- a/share/qtcreator/static.pro
+++ b/share/qtcreator/static.pro
@@ -96,3 +96,13 @@ QMAKE_EXTRA_COMPILERS += unconditionalCopy2build
INSTALLS += $$data_dir
}
}
+
+# do version magic for app bundles
+macx {
+ dumpinfo.input = qml/qmldump/Info.plist.in
+ dumpinfo.output = $$IDE_DATA_PATH/qml/qmldump/Info.plist
+ QMAKE_SUBSTITUTES += dumpinfo
+ observerinfo.input = qml/qmlobserver/Info.plist.in
+ observerinfo.output = $$IDE_DATA_PATH/qml/qmlobserver/Info.plist
+ QMAKE_SUBSTITUTES += observerinfo
+}
diff --git a/src/tools/qmlpuppet/Info.plist b/src/tools/qmlpuppet/Info.plist.in
index 6d42d6331a..7d0d6a1039 100644
--- a/src/tools/qmlpuppet/Info.plist
+++ b/src/tools/qmlpuppet/Info.plist.in
@@ -1,6 +1,6 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
+<?xml version=\"1.0\" encoding=\"UTF-8\"?>
+<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">
+<plist version=\"1.0\">
<dict>
<key>NSHumanReadableCopyright</key>
<string>(C) 2008-2011 Nokia Corporation
@@ -20,9 +20,9 @@ Alternatively, this plugin may be used under the terms of the GNU Lesser General
<key>CFBundleIdentifier</key>
<string>com.nokia.qtcreator.qmlpuppet</string>
<key>CFBundleVersion</key>
- <string>2.1.83</string>
+ <string>$$QTCREATOR_VERSION</string>
<key>CFBundleShortVersionString</key>
- <string>2.1.83</string>
+ <string>$$QTCREATOR_VERSION</string>
<key>LSUIElement</key>
<string>1</string>
</dict>
diff --git a/src/tools/qmlpuppet/qmlpuppet.pro b/src/tools/qmlpuppet/qmlpuppet.pro
index b4edaf1f3f..f59765e533 100644
--- a/src/tools/qmlpuppet/qmlpuppet.pro
+++ b/src/tools/qmlpuppet/qmlpuppet.pro
@@ -23,5 +23,9 @@ QT_BREAKPAD_ROOT_PATH = $$(QT_BREAKPAD_ROOT_PATH)
SOURCES += main.cpp
RESOURCES += qmlpuppet.qrc
-OTHER_FILES += Info.plist
-macx:QMAKE_INFO_PLIST = Info.plist
+OTHER_FILES += Info.plist.in
+macx {
+ info.input = Info.plist.in
+ info.output = $$IDE_BIN_PATH/$${TARGET}.app/Contents/Info.plist
+ QMAKE_SUBSTITUTES += info
+}