Commit 3acd1afc authored by Calvin Buckley's avatar Calvin Buckley 🤔

Make a bundle with a readable app name and icon

This does some tweaks for the Mac build to have an icon and a title
cased application name. To do so, we had to create a plist, plus an
icns file (similar to how we did the Windows icon).

https://doc.qt.io/qt-5/qmake-variable-reference.html#qmake-info-plist
parent 838331d1
File added
<?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>CFBundleName</key>
<string>QCachegrind</string>
<key>CFBundleExecutable</key>
<string>@EXECUTABLE@</string>
<key>CFBundleGetInfoString</key>
<string>@FULL_VERSION@</string>
<key>CFBundleIconFile</key>
<string>@ICON@</string>
<key>CFBundleIdentifier</key>
<string>@BUNDLEIDENTIFIER@</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>NOTE</key>
<string>This file was generated by Qt/QMake.</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
</dict>
</plist>
TEMPLATE = app
include (../version.pri)
mac {
QMAKE_TARGET_BUNDLE_PREFIX = org.kde
# For the bundle name etc.
TARGET = QCachegrind
QMAKE_INFO_PLIST = qcachegrind.plist
}
QMAKE_TARGET_PRODUCT = QCacheGrind
QMAKE_TARGET_DESCRIPTION = QCacheGrind
# Assembled from the KCacheGrind icon PNGs
RC_ICONS = ../logo.ico
# Filename is significant on macOS
ICON = ../logo.icns
greaterThan(QT_MAJOR_VERSION, 4) {
QT += widgets
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment