From 740e1900bc93e67e0ff85d684cd636149f7122c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 26 Nov 2013 13:40:21 +0100 Subject: iOS: Provide default launch image for 4-inch devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Tor Arne Vestbø --- mkspecs/macx-ios-clang/Default-568h@2x.png | Bin 0 -> 18594 bytes mkspecs/macx-ios-clang/features/default_post.prf | 10 ++++++++++ 2 files changed, 10 insertions(+) create mode 100644 mkspecs/macx-ios-clang/Default-568h@2x.png (limited to 'mkspecs/macx-ios-clang') 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 Binary files /dev/null and b/mkspecs/macx-ios-clang/Default-568h@2x.png 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 { -- cgit v1.2.3