Add iOS app icons
|
|
@ -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}"
|
||||
"$<TARGET_BUNDLE_DIR:UnleashedRecomp>"
|
||||
)
|
||||
endforeach()
|
||||
elseif (APPLE)
|
||||
# Create version number for app bundle.
|
||||
CreateVersionString(
|
||||
|
|
|
|||
|
|
@ -12,6 +12,37 @@
|
|||
<string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleIcons</key>
|
||||
<dict>
|
||||
<key>CFBundlePrimaryIcon</key>
|
||||
<dict>
|
||||
<key>CFBundleIconFiles</key>
|
||||
<array>
|
||||
<string>AppIcon20x20</string>
|
||||
<string>AppIcon29x29</string>
|
||||
<string>AppIcon40x40</string>
|
||||
<string>AppIcon60x60</string>
|
||||
</array>
|
||||
<key>UIPrerenderedIcon</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>CFBundleIcons~ipad</key>
|
||||
<dict>
|
||||
<key>CFBundlePrimaryIcon</key>
|
||||
<dict>
|
||||
<key>CFBundleIconFiles</key>
|
||||
<array>
|
||||
<string>AppIcon20x20</string>
|
||||
<string>AppIcon29x29</string>
|
||||
<string>AppIcon40x40</string>
|
||||
<string>AppIcon76x76</string>
|
||||
<string>AppIcon83.5x83.5</string>
|
||||
</array>
|
||||
<key>UIPrerenderedIcon</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>CFBundleName</key>
|
||||
<string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
|
|
|
|||
BIN
UnleashedRecomp/res/ios/icons/AppIcon20x20@2x.png
Normal file
|
After Width: | Height: | Size: 6.2 KiB |
BIN
UnleashedRecomp/res/ios/icons/AppIcon20x20@3x.png
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
BIN
UnleashedRecomp/res/ios/icons/AppIcon29x29@2x.png
Normal file
|
After Width: | Height: | Size: 9.1 KiB |
BIN
UnleashedRecomp/res/ios/icons/AppIcon29x29@3x.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
UnleashedRecomp/res/ios/icons/AppIcon40x40@2x.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
UnleashedRecomp/res/ios/icons/AppIcon40x40@3x.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
UnleashedRecomp/res/ios/icons/AppIcon60x60@2x.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
UnleashedRecomp/res/ios/icons/AppIcon60x60@3x.png
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
UnleashedRecomp/res/ios/icons/AppIcon76x76.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
UnleashedRecomp/res/ios/icons/AppIcon76x76@2x.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
UnleashedRecomp/res/ios/icons/AppIcon83.5x83.5@2x.png
Normal file
|
After Width: | Height: | Size: 38 KiB |