summaryrefslogtreecommitdiff
path: root/src/app/app.pro
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/app.pro')
-rw-r--r--src/app/app.pro27
1 files changed, 19 insertions, 8 deletions
diff --git a/src/app/app.pro b/src/app/app.pro
index 496d2ebe35..7ae24c943f 100644
--- a/src/app/app.pro
+++ b/src/app/app.pro
@@ -5,6 +5,7 @@ TEMPLATE = app
CONFIG += qtc_runnable
TARGET = $$IDE_APP_TARGET
DESTDIR = $$IDE_APP_PATH
+VERSION = $$QTCREATOR_VERSION
QT -= testlib
HEADERS += ../tools/qtcreatorcrashhandler/crashhandlersetup.h
@@ -24,20 +25,30 @@ win32 {
INSTALLS += target
} else:macx {
LIBS += -framework CoreFoundation
- ICON = qtcreator.icns
- FILETYPES.files = profile.icns prifile.icns
- FILETYPES.path = Contents/Resources
- QMAKE_BUNDLE_DATA += FILETYPES
- info.input = Info.plist.in
- info.output = $$IDE_BIN_PATH/../Info.plist
- QMAKE_SUBSTITUTES = info
+ ASSETCATALOG.files = $$PWD/qtcreator.xcassets
+ macx-xcode {
+ QMAKE_BUNDLE_DATA += ASSETCATALOG
+ } else {
+ ASSETCATALOG.output = $$IDE_DATA_PATH/qtcreator.icns
+ ASSETCATALOG.commands = xcrun actool \
+ --app-icon qtcreator \
+ --output-partial-info-plist $$shell_quote($(TMPDIR)/qtcreator.Info.plist) \
+ --platform macosx \
+ --minimum-deployment-target 10.7 \
+ --compile $$shell_quote($$IDE_DATA_PATH) \
+ $$shell_quote($$PWD/qtcreator.xcassets) > /dev/null
+ ASSETCATALOG.input = ASSETCATALOG.files
+ ASSETCATALOG.CONFIG += no_link target_predeps
+ QMAKE_EXTRA_COMPILERS += ASSETCATALOG
+ }
+ QMAKE_INFO_PLIST = Info.plist
} else {
target.path = $$INSTALL_BIN_PATH
INSTALLS += target
}
DISTFILES += qtcreator.rc \
- Info.plist.in \
+ Info.plist \
$$PWD/app_version.h.in
QMAKE_SUBSTITUTES += $$PWD/app_version.h.in