From e722d4a0e547a743a22cff17b9182c75d7e5bb57 Mon Sep 17 00:00:00 2001 From: Benau Date: Wed, 17 Jul 2019 14:50:49 +0800 Subject: [PATCH] Update supertuxkart iOS info plist Need to copy icons from dependencies manually --- .gitignore | 1 + CMakeLists.txt | 9 ++++--- data/SuperTuxKart-Info-iOS.plist | 40 ++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 data/SuperTuxKart-Info-iOS.plist diff --git a/.gitignore b/.gitignore index 5a5c24af1..a4ae291d8 100644 --- a/.gitignore +++ b/.gitignore @@ -77,3 +77,4 @@ lib/fribidi lib/harfbuzz .DS_Store +supertuxkart/ diff --git a/CMakeLists.txt b/CMakeLists.txt index bb01dd179..7bd26ec36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/data/SuperTuxKart-Info-iOS.plist b/data/SuperTuxKart-Info-iOS.plist new file mode 100644 index 000000000..a49b6c917 --- /dev/null +++ b/data/SuperTuxKart-Info-iOS.plist @@ -0,0 +1,40 @@ + + + + + CFBundleDisplayName + SuperTuxKart + CFBundleExecutable + supertuxkart + CFBundleIdentifier + org.supertuxkart.stk + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + SuperTuxKart + CFBundleShortVersionString + ${PROJECT_VERSION} + CFBundleVersion + ${IOS_BUILD_VERSION} + CSResourcesFileMapped + + UIRequiredDeviceCapabilities + + arm64 + + UIStatusBarHidden + + UIRequiresFullScreen + + UISupportedInterfaceOrientations + + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + +