summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2013-11-26 13:40:21 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-29 09:55:23 +0100
commit740e1900bc93e67e0ff85d684cd636149f7122c5 (patch)
treeb7fbe271fa61f276322360d34f9a5da5fa03a5a9
parent9b782dca45331c0e0246b8439d5cf007a440afc8 (diff)
iOS: Provide default launch image for 4-inch devices
Otherwise the application will not scale to the full resolution of the device. We copy the image into the Xcode project, since it's internal to our build system and not meant as a template to be edited by the user. For 5.3 we need to provide a proper qmake/qbs mechanism to handle launch images. Task-number: QTBUG-31431 Change-Id: Ied0b2843a78c5ea865750e0404418ced7ad27082 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
-rw-r--r--mkspecs/macx-ios-clang/Default-568h@2x.pngbin0 -> 18594 bytes
-rw-r--r--mkspecs/macx-ios-clang/features/default_post.prf10
2 files changed, 10 insertions, 0 deletions
diff --git a/mkspecs/macx-ios-clang/Default-568h@2x.png b/mkspecs/macx-ios-clang/Default-568h@2x.png
new file mode 100644
index 0000000000..0891b7aabf
--- /dev/null
+++ b/mkspecs/macx-ios-clang/Default-568h@2x.png
Binary files differ
diff --git a/mkspecs/macx-ios-clang/features/default_post.prf b/mkspecs/macx-ios-clang/features/default_post.prf
index 0a35b1167d..262a8f1889 100644
--- a/mkspecs/macx-ios-clang/features/default_post.prf
+++ b/mkspecs/macx-ios-clang/features/default_post.prf
@@ -173,6 +173,16 @@ macx-xcode {
ios_device_family.name = TARGETED_DEVICE_FAMILY
ios_device_family.value = $$QMAKE_IOS_TARGETED_DEVICE_FAMILY
QMAKE_MAC_XCODE_SETTINGS += ios_device_family
+
+ # Set up default 4-inch iPhone/iPod launch image so that our apps
+ # support the full screen resolution of those devices.
+ launch_image = Default-568h@2x.png
+ copy_image.input = $$QMAKESPEC/$$launch_image
+ copy_image.output = $$OUT_PWD/$${TARGET}.xcodeproj/$$launch_image
+ copy_image.CONFIG = verbatim
+ QMAKE_SUBSTITUTES += copy_image
+ launch_images.files = $$copy_image.output
+ QMAKE_BUNDLE_DATA += launch_images
}
macx-xcode {