diff options
author | Vincent Bénony | 2015-12-02 17:10:37 +0100 |
---|---|---|
committer | Vincent Bénony | 2016-01-06 16:17:29 +0100 |
commit | 64c6f3a37bbeaaf41c6c590b2c7cf01eb56f277e (patch) | |
tree | 61298984fc5a3dc89093bcf20022279e6ad1a2a3 | |
parent | 62e281df263b3f88360d2fb514eb6590eee39c11 (diff) | |
download | scummvm-rg350-64c6f3a37bbeaaf41c6c590b2c7cf01eb56f277e.tar.gz scummvm-rg350-64c6f3a37bbeaaf41c6c590b2c7cf01eb56f277e.tar.bz2 scummvm-rg350-64c6f3a37bbeaaf41c6c590b2c7cf01eb56f277e.zip |
IOS: Fixes the Info.plist file generation
-rw-r--r-- | dists/iphone/Info.plist | 2 | ||||
-rw-r--r-- | dists/iphone/Info.plist.in | 2 | ||||
-rw-r--r-- | ports.mk | 89 |
3 files changed, 89 insertions, 4 deletions
diff --git a/dists/iphone/Info.plist b/dists/iphone/Info.plist index a4118e9b7d..3735919321 100644 --- a/dists/iphone/Info.plist +++ b/dists/iphone/Info.plist @@ -10,6 +10,8 @@ <dict/> <key>CFBundleIcons~ipad</key> <dict/> + <key>UILaunchImages</key> + <array/> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleInfoDictionaryVersion</key> diff --git a/dists/iphone/Info.plist.in b/dists/iphone/Info.plist.in index a645bb689f..c179ffed8f 100644 --- a/dists/iphone/Info.plist.in +++ b/dists/iphone/Info.plist.in @@ -10,6 +10,8 @@ <dict/> <key>CFBundleIcons~ipad</key> <dict/> + <key>UILaunchImages</key> + <array/> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleInfoDictionaryVersion</key> @@ -78,7 +78,74 @@ endif iphonebundle: iphone mkdir -p $(bundle_name) - cp $(srcdir)/dists/iphone/Info.plist $(bundle_name)/ + awk 'BEGIN {s=0}\ + /<key>CFBundleIcons<\/key>/ {\ + print $$0;\ + print "\t<dict>";\ + print "\t\t<key>CFBundlePrimaryIcon</key>";\ + print "\t\t<dict>";\ + print "\t\t\t<key>CFBundleIconFiles</key>";\ + print "\t\t\t<array>";\ + print "\t\t\t\t<string>AppIcon29x29</string>";\ + print "\t\t\t\t<string>AppIcon40x40</string>";\ + print "\t\t\t\t<string>AppIcon60x60</string>";\ + print "\t\t\t</array>";\ + print "\t\t</dict>";\ + print "\t</dict>";\ + s=2}\ + /<key>CFBundleIcons~ipad<\/key>/ {\ + print $$0;\ + print "\t<dict>";\ + print "\t\t<key>CFBundlePrimaryIcon</key>";\ + print "\t\t<dict>";\ + print "\t\t\t<key>CFBundleIconFiles</key>";\ + print "\t\t\t<array>";\ + print "\t\t\t\t<string>AppIcon29x29</string>";\ + print "\t\t\t\t<string>AppIcon40x40</string>";\ + print "\t\t\t\t<string>AppIcon60x60</string>";\ + print "\t\t\t\t<string>AppIcon76x76</string>";\ + print "\t\t\t</array>";\ + print "\t\t</dict>";\ + print "\t</dict>";\ + s=2}\ + /<key>UILaunchImages<\/key>/ {\ + print $$0;\ + print "\t<array>";\ + print "\t\t<dict>";\ + print "\t\t\t<key>UILaunchImageMinimumOSVersion</key>";\ + print "\t\t\t<string>7.0</string>";\ + print "\t\t\t<key>UILaunchImageName</key>";\ + print "\t\t\t<string>LaunchImage-700-568h</string>";\ + print "\t\t\t<key>UILaunchImageOrientation</key>";\ + print "\t\t\t<string>Portrait</string>";\ + print "\t\t\t<key>UILaunchImageSize</key>";\ + print "\t\t\t<string>{320, 568}</string>";\ + print "\t\t</dict>";\ + print "\t\t<dict>";\ + print "\t\t\t<key>UILaunchImageMinimumOSVersion</key>";\ + print "\t\t\t<string>7.0</string>";\ + print "\t\t\t<key>UILaunchImageName</key>";\ + print "\t\t\t<string>LaunchImage-700-Portrait</string>";\ + print "\t\t\t<key>UILaunchImageOrientation</key>";\ + print "\t\t\t<string>Portrait</string>";\ + print "\t\t\t<key>UILaunchImageSize</key>";\ + print "\t\t\t<string>{768, 1024}</string>";\ + print "\t\t</dict>";\ + print "\t\t<dict>";\ + print "\t\t\t<key>UILaunchImageMinimumOSVersion</key>";\ + print "\t\t\t<string>7.0</string>";\ + print "\t\t\t<key>UILaunchImageName</key>";\ + print "\t\t\t<string>LaunchImage-700-Landscape</string>";\ + print "\t\t\t<key>UILaunchImageOrientation</key>";\ + print "\t\t\t<string>Landscape</string>";\ + print "\t\t\t<key>UILaunchImageSize</key>";\ + print "\t\t\t<string>{768, 1024}</string>";\ + print "\t\t</dict>";\ + print "\t</array>";\ + s=2}\ + s==0 {print $$0}\ + s > 0 { s-- }' $(srcdir)/dists/iphone/Info.plist >$(bundle_name)/Info.plist + sed -i '' -e 's/$$(PRODUCT_BUNDLE_IDENTIFIER)/org.scummvm.scummvm/' $(bundle_name)/Info.plist cp $(DIST_FILES_DOCS) $(bundle_name)/ cp $(DIST_FILES_THEMES) $(bundle_name)/ ifdef DIST_FILES_ENGINEDATA @@ -88,9 +155,23 @@ endif ldid -S scummvm chmod 755 scummvm cp scummvm $(bundle_name)/ScummVM - cp $(srcdir)/dists/iphone/icon.png $(bundle_name)/ - cp $(srcdir)/dists/iphone/icon-72.png $(bundle_name)/ - cp $(srcdir)/dists/iphone/Default.png $(bundle_name)/ + cp $(srcdir)/dists/iphone/Images.xcassets/AppIcon.appiconset/icon4-29@2x.png $(bundle_name)/AppIcon29x29@2x.png + cp $(srcdir)/dists/iphone/Images.xcassets/AppIcon.appiconset/icon4-29@2x.png $(bundle_name)/AppIcon29x29@2x~ipad.png + cp $(srcdir)/dists/iphone/Images.xcassets/AppIcon.appiconset/icon4-29@3x.png $(bundle_name)/AppIcon29x29@3x.png + cp $(srcdir)/dists/iphone/Images.xcassets/AppIcon.appiconset/icon4-29.png $(bundle_name)/AppIcon29x29~ipad.png + cp $(srcdir)/dists/iphone/Images.xcassets/AppIcon.appiconset/icon4-40@2x.png $(bundle_name)/AppIcon40x40@2x.png + cp $(srcdir)/dists/iphone/Images.xcassets/AppIcon.appiconset/icon4-40@2x.png $(bundle_name)/AppIcon40x40@2x~ipad.png + cp $(srcdir)/dists/iphone/Images.xcassets/AppIcon.appiconset/icon4-40@3x.png $(bundle_name)/AppIcon40x40@3x.png + cp $(srcdir)/dists/iphone/Images.xcassets/AppIcon.appiconset/icon4-40.png $(bundle_name)/AppIcon40x40~ipad.png + cp $(srcdir)/dists/iphone/Images.xcassets/AppIcon.appiconset/icon4-60@2x.png $(bundle_name)/AppIcon60x60@2x.png + cp $(srcdir)/dists/iphone/Images.xcassets/AppIcon.appiconset/icon4-60@3x.png $(bundle_name)/AppIcon60x60@3x.png + cp $(srcdir)/dists/iphone/Images.xcassets/AppIcon.appiconset/icon4-76@2x.png $(bundle_name)/AppIcon76x76@2x~ipad.png + cp $(srcdir)/dists/iphone/Images.xcassets/AppIcon.appiconset/icon4-76.png $(bundle_name)/AppIcon76x76~ipad.png + cp $(srcdir)/dists/iphone/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-640x1136-1.png $(bundle_name)/LaunchImage-700-568h@2x.png + cp $(srcdir)/dists/iphone/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-2048x1536.png $(bundle_name)/LaunchImage-700-Landscape@2x~ipad.png + cp $(srcdir)/dists/iphone/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-1024x768.png $(bundle_name)/LaunchImage-700-Landscape~ipad.png + cp $(srcdir)/dists/iphone/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-1536x2048.png $(bundle_name)/LaunchImage-700-Portrait@2x~ipad.png + cp $(srcdir)/dists/iphone/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-768x1024.png $(bundle_name)/LaunchImage-700-Portrait~ipad.png # Binary patch workaround for Iphone 5/IPad 4 "Illegal instruction: 4" toolchain issue (http://code.google.com/p/iphone-gcc-full/issues/detail?id=6) cp scummvm scummvm-iph5 sed -i'' 's/\x00\x30\x93\xe4/\x00\x30\x93\xe5/g;s/\x00\x30\xd3\xe4/\x00\x30\xd3\xe5/g;' scummvm-iph5 |