diff --git a/UnleashedRecomp/CMakeLists.txt b/UnleashedRecomp/CMakeLists.txt index 3a32b57f..73f336a6 100644 --- a/UnleashedRecomp/CMakeLists.txt +++ b/UnleashedRecomp/CMakeLists.txt @@ -318,6 +318,20 @@ elseif (CMAKE_SYSTEM_NAME STREQUAL "iOS") ) string(REGEX REPLACE "^v" "" IOS_BUNDLE_VERSION "${IOS_BUNDLE_VERSION}") + set(UNLEASHED_RECOMP_IOS_ICON_FILES + "${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon20x20@2x.png" + "${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon20x20@3x.png" + "${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon29x29@2x.png" + "${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon29x29@3x.png" + "${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon40x40@2x.png" + "${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon40x40@3x.png" + "${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon60x60@2x.png" + "${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon60x60@3x.png" + "${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon76x76.png" + "${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon76x76@2x.png" + "${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon83.5x83.5@2x.png" + ) + add_executable(UnleashedRecomp MACOSX_BUNDLE ${UNLEASHED_RECOMP_CXX_SOURCES} ) @@ -332,6 +346,13 @@ elseif (CMAKE_SYSTEM_NAME STREQUAL "iOS") XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "1,2" XCODE_ATTRIBUTE_ENABLE_BITCODE "NO" ) + foreach(UNLEASHED_RECOMP_IOS_ICON_FILE IN LISTS UNLEASHED_RECOMP_IOS_ICON_FILES) + add_custom_command(TARGET UnleashedRecomp POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + "${UNLEASHED_RECOMP_IOS_ICON_FILE}" + "$" + ) + endforeach() elseif (APPLE) # Create version number for app bundle. CreateVersionString( diff --git a/UnleashedRecomp/res/ios/Info.plist.in b/UnleashedRecomp/res/ios/Info.plist.in index 03ec3b92..8c3fe5b5 100644 --- a/UnleashedRecomp/res/ios/Info.plist.in +++ b/UnleashedRecomp/res/ios/Info.plist.in @@ -12,6 +12,37 @@ ${MACOSX_BUNDLE_GUI_IDENTIFIER} CFBundleInfoDictionaryVersion 6.0 + CFBundleIcons + + CFBundlePrimaryIcon + + CFBundleIconFiles + + AppIcon20x20 + AppIcon29x29 + AppIcon40x40 + AppIcon60x60 + + UIPrerenderedIcon + + + + CFBundleIcons~ipad + + CFBundlePrimaryIcon + + CFBundleIconFiles + + AppIcon20x20 + AppIcon29x29 + AppIcon40x40 + AppIcon76x76 + AppIcon83.5x83.5 + + UIPrerenderedIcon + + + CFBundleName ${MACOSX_BUNDLE_BUNDLE_NAME} CFBundlePackageType diff --git a/UnleashedRecomp/res/ios/icons/AppIcon20x20@2x.png b/UnleashedRecomp/res/ios/icons/AppIcon20x20@2x.png new file mode 100644 index 00000000..ed4dd7f4 Binary files /dev/null and b/UnleashedRecomp/res/ios/icons/AppIcon20x20@2x.png differ diff --git a/UnleashedRecomp/res/ios/icons/AppIcon20x20@3x.png b/UnleashedRecomp/res/ios/icons/AppIcon20x20@3x.png new file mode 100644 index 00000000..57e231c0 Binary files /dev/null and b/UnleashedRecomp/res/ios/icons/AppIcon20x20@3x.png differ diff --git a/UnleashedRecomp/res/ios/icons/AppIcon29x29@2x.png b/UnleashedRecomp/res/ios/icons/AppIcon29x29@2x.png new file mode 100644 index 00000000..5fb300d8 Binary files /dev/null and b/UnleashedRecomp/res/ios/icons/AppIcon29x29@2x.png differ diff --git a/UnleashedRecomp/res/ios/icons/AppIcon29x29@3x.png b/UnleashedRecomp/res/ios/icons/AppIcon29x29@3x.png new file mode 100644 index 00000000..f9f36158 Binary files /dev/null and b/UnleashedRecomp/res/ios/icons/AppIcon29x29@3x.png differ diff --git a/UnleashedRecomp/res/ios/icons/AppIcon40x40@2x.png b/UnleashedRecomp/res/ios/icons/AppIcon40x40@2x.png new file mode 100644 index 00000000..d2d0ccda Binary files /dev/null and b/UnleashedRecomp/res/ios/icons/AppIcon40x40@2x.png differ diff --git a/UnleashedRecomp/res/ios/icons/AppIcon40x40@3x.png b/UnleashedRecomp/res/ios/icons/AppIcon40x40@3x.png new file mode 100644 index 00000000..b0b9f01c Binary files /dev/null and b/UnleashedRecomp/res/ios/icons/AppIcon40x40@3x.png differ diff --git a/UnleashedRecomp/res/ios/icons/AppIcon60x60@2x.png b/UnleashedRecomp/res/ios/icons/AppIcon60x60@2x.png new file mode 100644 index 00000000..b0b9f01c Binary files /dev/null and b/UnleashedRecomp/res/ios/icons/AppIcon60x60@2x.png differ diff --git a/UnleashedRecomp/res/ios/icons/AppIcon60x60@3x.png b/UnleashedRecomp/res/ios/icons/AppIcon60x60@3x.png new file mode 100644 index 00000000..6ce66a0c Binary files /dev/null and b/UnleashedRecomp/res/ios/icons/AppIcon60x60@3x.png differ diff --git a/UnleashedRecomp/res/ios/icons/AppIcon76x76.png b/UnleashedRecomp/res/ios/icons/AppIcon76x76.png new file mode 100644 index 00000000..8b3d6fb6 Binary files /dev/null and b/UnleashedRecomp/res/ios/icons/AppIcon76x76.png differ diff --git a/UnleashedRecomp/res/ios/icons/AppIcon76x76@2x.png b/UnleashedRecomp/res/ios/icons/AppIcon76x76@2x.png new file mode 100644 index 00000000..c3ac9798 Binary files /dev/null and b/UnleashedRecomp/res/ios/icons/AppIcon76x76@2x.png differ diff --git a/UnleashedRecomp/res/ios/icons/AppIcon83.5x83.5@2x.png b/UnleashedRecomp/res/ios/icons/AppIcon83.5x83.5@2x.png new file mode 100644 index 00000000..73bfdc05 Binary files /dev/null and b/UnleashedRecomp/res/ios/icons/AppIcon83.5x83.5@2x.png differ