Update supertuxkart iOS info plist

Need to copy icons from dependencies manually
This commit is contained in:
Benau 2019-07-17 14:50:49 +08:00
parent b95c3233d6
commit e722d4a0e5
3 changed files with 45 additions and 5 deletions

1
.gitignore vendored
View File

@ -77,3 +77,4 @@ lib/fribidi
lib/harfbuzz
.DS_Store
supertuxkart/

View File

@ -46,12 +46,8 @@ endif()
if (IOS)
ADD_DEFINITIONS(-DMOBILE_STK)
ADD_DEFINITIONS(-DIOS_STK)
set(CMAKE_XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "1,2")
option(USE_GLES2 "Use OpenGL ES2 renderer" ON)
set(MACOSX_BUNDLE_ICON_FILE ${PROJECT_SOURCE_DIR}/data/supertuxkart.icns)
set(MACOSX_BUNDLE_BUNDLE_NAME "SuperTuxKart")
set(MACOSX_BUNDLE_GUI_IDENTIFIER "org.supertuxkart.stk")
set(MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION}")
set(MACOSX_BUNDLE_BUNDLE_VERSION ${IOS_BUILD_VERSION})
endif()
if((UNIX AND NOT APPLE) AND NOT SERVER_ONLY)
@ -494,6 +490,9 @@ else()
file(GLOB IOS_ASSETS_FILES ${IOS_ASSETS})
set_source_files_properties(${IOS_ASSETS_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
add_executable(supertuxkart ${STK_SOURCES} ${STK_RESOURCES} ${STK_HEADERS} ${IOS_ASSETS_FILES})
set_target_properties(supertuxkart PROPERTIES
MACOSX_BUNDLE_INFO_PLIST ${PROJECT_SOURCE_DIR}/data/SuperTuxKart-Info-iOS.plist
XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET 9.0)
else()
add_executable(supertuxkart ${STK_SOURCES} ${STK_RESOURCES} ${STK_HEADERS})
endif()

View File

@ -0,0 +1,40 @@
<?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>CFBundleDisplayName</key>
<string>SuperTuxKart</string>
<key>CFBundleExecutable</key>
<string>supertuxkart</string>
<key>CFBundleIdentifier</key>
<string>org.supertuxkart.stk</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>SuperTuxKart </string>
<key>CFBundleShortVersionString</key>
<string>${PROJECT_VERSION}</string>
<key>CFBundleVersion</key>
<string>${IOS_BUILD_VERSION}</string>
<key>CSResourcesFileMapped</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>arm64</string>
</array>
<key>UIStatusBarHidden</key>
<true/>
<key>UIRequiresFullScreen</key>
<true/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>