Qbs: properly install Info.plist, PkgInfo, and app icon.
The icns files have also been moved into an asset catalog because "source code" as a rule should be stored in the preferred form of modification. Change-Id: I883db5704a46d8d7cf601f7fb4471619ebbc34bf Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
@@ -3,6 +3,7 @@ import QtcFunctions
|
||||
|
||||
Product {
|
||||
property string installDir
|
||||
property string installSourceBase
|
||||
|
||||
Depends { name: "cpp" }
|
||||
cpp.defines: project.generalDefines
|
||||
@@ -23,5 +24,6 @@ Product {
|
||||
fileTagsFilter: product.type
|
||||
qbs.install: true
|
||||
qbs.installDir: installDir
|
||||
qbs.installSourceBase: installSourceBase
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import qbs 1.0
|
||||
|
||||
Project {
|
||||
name: "Qt Creator"
|
||||
minimumQbsVersion: "1.4"
|
||||
minimumQbsVersion: "1.4.3"
|
||||
property bool withAutotests: qbs.buildVariant === "debug"
|
||||
property string ide_version_major: '3'
|
||||
property string ide_version_minor: '5'
|
||||
|
||||
@@ -235,7 +235,7 @@
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>(C) 2015 The Qt Company Ltd</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>$$ICON</string>
|
||||
<string>qtcreator</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleSignature</key>
|
||||
@@ -245,9 +245,9 @@
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>org.qt-project.qtcreator</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>$$QTCREATOR_VERSION</string>
|
||||
<string>@FULL_VERSION@</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>$$QTCREATOR_VERSION</string>
|
||||
<string>@SHORT_VERSION@</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.7.0</string>
|
||||
</dict>
|
||||
@@ -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_BIN_PATH/../Resources/qtcreator.icns
|
||||
ASSETCATALOG.commands = xcrun actool \
|
||||
--app-icon qtcreator \
|
||||
--output-partial-info-plist /dev/null \
|
||||
--platform macosx \
|
||||
--minimum-deployment-target 10.7 \
|
||||
--compile $$shell_quote($$IDE_BIN_PATH/../Resources) \
|
||||
$$shell_quote($$PWD/qtcreator.xcassets)
|
||||
ASSETCATALOG.input = ASSETCATALOG.files
|
||||
ASSETCATALOG.CONFIG += no_link
|
||||
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
|
||||
|
||||
@@ -1,9 +1,20 @@
|
||||
import qbs
|
||||
|
||||
QtcProduct {
|
||||
Depends { name: "bundle" }
|
||||
Depends { name: "ib"; condition: qbs.targetOS.contains("osx") }
|
||||
|
||||
bundle.isBundle: true
|
||||
bundle.infoPlistFile: "Info.plist"
|
||||
|
||||
ib.appIconName: "qtcreator"
|
||||
|
||||
type: ["application"]
|
||||
name: project.ide_app_target
|
||||
consoleApplication: qbs.debugInformation
|
||||
version: project.qtcreator_version
|
||||
|
||||
installSourceBase: buildDirectory
|
||||
|
||||
cpp.rpaths: qbs.targetOS.contains("osx") ? ["@executable_path/../Frameworks"]
|
||||
: ["$ORIGIN/../" + project.libDirName + "/qtcreator"]
|
||||
@@ -18,7 +29,9 @@ QtcProduct {
|
||||
Depends { name: "ExtensionSystem" }
|
||||
|
||||
files: [
|
||||
"Info.plist",
|
||||
"main.cpp",
|
||||
"qtcreator.xcassets",
|
||||
"qtcreator.rc",
|
||||
"../shared/qtsingleapplication/qtsingleapplication.h",
|
||||
"../shared/qtsingleapplication/qtsingleapplication.cpp",
|
||||
@@ -54,8 +67,8 @@ QtcProduct {
|
||||
}
|
||||
|
||||
Group {
|
||||
fileTagsFilter: product.type
|
||||
fileTagsFilter: ["infoplist", "pkginfo", "compiled_assetcatalog"]
|
||||
qbs.install: true
|
||||
qbs.installDir: project.ide_bin_path
|
||||
qbs.installSourceBase: installSourceBase
|
||||
}
|
||||
}
|
||||
|
||||
BIN
src/app/qtcreator.xcassets/prifile.iconset/icon_128x128.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/app/qtcreator.xcassets/prifile.iconset/icon_128x128@2x.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
src/app/qtcreator.xcassets/prifile.iconset/icon_16x16.png
Normal file
|
After Width: | Height: | Size: 787 B |
BIN
src/app/qtcreator.xcassets/prifile.iconset/icon_16x16@2x.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
src/app/qtcreator.xcassets/prifile.iconset/icon_256x256.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
src/app/qtcreator.xcassets/prifile.iconset/icon_256x256@2x.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
src/app/qtcreator.xcassets/prifile.iconset/icon_32x32.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
src/app/qtcreator.xcassets/prifile.iconset/icon_32x32@2x.png
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
src/app/qtcreator.xcassets/prifile.iconset/icon_512x512.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
src/app/qtcreator.xcassets/prifile.iconset/icon_512x512@2x.png
Normal file
|
After Width: | Height: | Size: 192 KiB |
BIN
src/app/qtcreator.xcassets/profile.iconset/icon_128x128.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/app/qtcreator.xcassets/profile.iconset/icon_128x128@2x.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
src/app/qtcreator.xcassets/profile.iconset/icon_16x16.png
Normal file
|
After Width: | Height: | Size: 787 B |
BIN
src/app/qtcreator.xcassets/profile.iconset/icon_16x16@2x.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
src/app/qtcreator.xcassets/profile.iconset/icon_256x256.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
src/app/qtcreator.xcassets/profile.iconset/icon_256x256@2x.png
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
src/app/qtcreator.xcassets/profile.iconset/icon_32x32.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
src/app/qtcreator.xcassets/profile.iconset/icon_32x32@2x.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
src/app/qtcreator.xcassets/profile.iconset/icon_512x512.png
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
src/app/qtcreator.xcassets/profile.iconset/icon_512x512@2x.png
Normal file
|
After Width: | Height: | Size: 196 KiB |
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"size" : "16x16",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_16x16.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "16x16",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_16x16@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "32x32",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_32x32.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "32x32",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_32x32@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "128x128",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_128x128.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "128x128",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_128x128@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "256x256",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_256x256.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "256x256",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_256x256@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "512x512",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_512x512.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "512x512",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_512x512@2x.png",
|
||||
"scale" : "2x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
||||
BIN
src/app/qtcreator.xcassets/qtcreator.appiconset/icon_128x128.png
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
|
After Width: | Height: | Size: 20 KiB |
BIN
src/app/qtcreator.xcassets/qtcreator.appiconset/icon_16x16.png
Normal file
|
After Width: | Height: | Size: 719 B |
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/app/qtcreator.xcassets/qtcreator.appiconset/icon_256x256.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 49 KiB |
BIN
src/app/qtcreator.xcassets/qtcreator.appiconset/icon_32x32.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
BIN
src/app/qtcreator.xcassets/qtcreator.appiconset/icon_512x512.png
Normal file
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 129 KiB |