summaryrefslogtreecommitdiff
path: root/qtcreator.pro
diff options
context:
space:
mode:
authorDaniel Molkentin <daniel.molkentin@nokia.com>2012-01-12 18:22:12 +0100
committerDaniel Molkentin <daniel.molkentin@nokia.com>2012-01-12 19:24:30 +0100
commitde26dad95915dbafb16c4966ecca9c5cf9daeb6b (patch)
tree1e7daae104774c79f01adeebece320efb7c7fe6f /qtcreator.pro
parente96c5237cb09db8d1310f90beb33f549ba19602f (diff)
downloadqt-creator-de26dad95915dbafb16c4966ecca9c5cf9daeb6b.tar.gz
Add bindist and deployqt targets
Change-Id: Ide9a41d34e73e99959fca18053e06978f724b5aa Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'qtcreator.pro')
-rw-r--r--qtcreator.pro18
1 files changed, 18 insertions, 0 deletions
diff --git a/qtcreator.pro b/qtcreator.pro
index 7b63cbb82b..09b416cb57 100644
--- a/qtcreator.pro
+++ b/qtcreator.pro
@@ -16,3 +16,21 @@ unix:!macx:!isEmpty(copydata):SUBDIRS += bin
OTHER_FILES += dist/copyright_template.txt \
$$files(dist/changes-*)
+
+macx {
+ APPBUNDLE = "$$OUT_PWD/bin/Qt Creator.app"
+ deployqt.commands = macdeployqt "$${APPBUNDLE}" \
+ -executable="$${APPBUNDLE}/Contents/MacOS/qmlpuppet.app/Contents/MacOS/qmlpuppet" \
+ -executable="$${APPBUNDLE}/Contents/Resources/qtpromaker" \
+ -executable="$${APPBUNDLE}/Contents/MacOS/qmlprofiler"
+ deployqt.depends = default
+ bindist.commands = 7z a -mx9 $$OUT_PWD/qtcreator$(INSTALL_POSTFIX).7z "$$OUT_PWD/bin/Qt Creator.app/"
+} else {
+ deployqt.commands = $$PWD/scripts/deployqt.py -i $(INSTALL_ROOT)
+ win32:deployqt.commands ~= s,/,\\\\,g
+ deployqt.depends = install
+ bindist.commands = 7z a -mx9 $$OUT_PWD/qtcreator$(INSTALL_POSTFIX).7z $(INSTALL_ROOT)
+ win32:bindist.commands ~= s,/,\\\\,g
+}
+bindist.depends = deployqt
+QMAKE_EXTRA_TARGETS += deployqt bindist