diff options
| author | manuel <manuel@mausz.at> | 2019-04-29 12:22:05 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2019-04-29 12:22:05 +0200 |
| commit | e317daf081a1048904fdf0b548946fa3ba6593a7 (patch) | |
| tree | 285a58fe8c6b4a95c9a6020afbe7bcc9cb913ea7 /cmake/scripts/ios/Install.cmake | |
| parent | 483c0b88bfc1b798396c31a4dd2f5239399ce59e (diff) | |
| download | kodi-pvr-build-e317daf081a1048904fdf0b548946fa3ba6593a7.tar.gz kodi-pvr-build-e317daf081a1048904fdf0b548946fa3ba6593a7.tar.bz2 kodi-pvr-build-e317daf081a1048904fdf0b548946fa3ba6593a7.zip | |
sync with upstream
Diffstat (limited to 'cmake/scripts/ios/Install.cmake')
| -rw-r--r-- | cmake/scripts/ios/Install.cmake | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/cmake/scripts/ios/Install.cmake b/cmake/scripts/ios/Install.cmake index 7b6c3de..7668e7c 100644 --- a/cmake/scripts/ios/Install.cmake +++ b/cmake/scripts/ios/Install.cmake | |||
| @@ -1,11 +1,26 @@ | |||
| 1 | # IOS packaging | 1 | # IOS packaging |
| 2 | 2 | ||
| 3 | set(BUNDLE_RESOURCES ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/Default-568h@2x.png | 3 | set(BUNDLE_RESOURCES ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-1100-Landscape-2436h@3x.png |
| 4 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/Default-667h@2x.png | 4 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-1100-Portrait-2436h@3x.png |
| 5 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/Default-736h@3x.png | 5 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-1200-Landscape-1792h@2x.png |
| 6 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/Default-Landscape-736h@3x.png | 6 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-1200-Portrait-2224h@2x.png |
| 7 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/Default-812h@3x.png | 7 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-1200-Landscape-2224h@2x.png |
| 8 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/Default-Landscape-812h@3x.png | 8 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-1200-Portrait-2388h@2x.png |
| 9 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-1200-Landscape-2388h@2x.png | ||
| 10 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-1200-Landscape-2688h@3x.png | ||
| 11 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-1200-Portrait-1792h@2x.png | ||
| 12 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-1200-Portrait-2688h@3x.png | ||
| 13 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-568h@2x.png | ||
| 14 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-700-568h@2x.png | ||
| 15 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-700-Landscape@2x~ipad.png | ||
| 16 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-700-Portrait@2x~ipad.png | ||
| 17 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-700@2x.png | ||
| 18 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-800-667h@2x.png | ||
| 19 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-800-Landscape-736h@3x.png | ||
| 20 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-800-Portrait-736h@3x.png | ||
| 21 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-Landscape@2x~ipad.png | ||
| 22 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage-Portrait@2x~ipad.png | ||
| 23 | ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/LaunchImage@2x.png | ||
| 9 | ${CMAKE_SOURCE_DIR}/tools/darwin/packaging/media/ios/rounded/AppIcon29x29.png | 24 | ${CMAKE_SOURCE_DIR}/tools/darwin/packaging/media/ios/rounded/AppIcon29x29.png |
| 10 | ${CMAKE_SOURCE_DIR}/tools/darwin/packaging/media/ios/rounded/AppIcon29x29@2x.png | 25 | ${CMAKE_SOURCE_DIR}/tools/darwin/packaging/media/ios/rounded/AppIcon29x29@2x.png |
| 11 | ${CMAKE_SOURCE_DIR}/tools/darwin/packaging/media/ios/rounded/AppIcon40x40.png | 26 | ${CMAKE_SOURCE_DIR}/tools/darwin/packaging/media/ios/rounded/AppIcon40x40.png |
| @@ -21,19 +36,13 @@ set(BUNDLE_RESOURCES ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/Default-568h@2 | |||
| 21 | ${CMAKE_SOURCE_DIR}/tools/darwin/packaging/media/ios/rounded/AppIcon76x76.png | 36 | ${CMAKE_SOURCE_DIR}/tools/darwin/packaging/media/ios/rounded/AppIcon76x76.png |
| 22 | ${CMAKE_SOURCE_DIR}/tools/darwin/packaging/media/ios/rounded/AppIcon76x76@2x.png) | 37 | ${CMAKE_SOURCE_DIR}/tools/darwin/packaging/media/ios/rounded/AppIcon76x76@2x.png) |
| 23 | 38 | ||
| 24 | if(CMAKE_GENERATOR STREQUAL Xcode) | ||
| 25 | set(RESOURCE_LOCATION ${APP_NAME}.app) | ||
| 26 | else() | ||
| 27 | set(RESOURCE_LOCATION ".") | ||
| 28 | endif() | ||
| 29 | |||
| 30 | target_sources(${APP_NAME_LC} PRIVATE ${BUNDLE_RESOURCES}) | 39 | target_sources(${APP_NAME_LC} PRIVATE ${BUNDLE_RESOURCES}) |
| 31 | foreach(file IN LISTS BUNDLE_RESOURCES) | 40 | foreach(file IN LISTS BUNDLE_RESOURCES) |
| 32 | set_source_files_properties(${file} PROPERTIES MACOSX_PACKAGE_LOCATION ${RESOURCE_LOCATION}) | 41 | set_source_files_properties(${file} PROPERTIES MACOSX_PACKAGE_LOCATION .) |
| 33 | endforeach() | 42 | endforeach() |
| 34 | 43 | ||
| 35 | target_sources(${APP_NAME_LC} PRIVATE ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/English.lproj/InfoPlist.strings) | 44 | target_sources(${APP_NAME_LC} PRIVATE ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/English.lproj/InfoPlist.strings) |
| 36 | set_source_files_properties(${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/English.lproj/InfoPlist.strings PROPERTIES MACOSX_PACKAGE_LOCATION "${RESOURCE_LOCATION}/English.lproj") | 45 | set_source_files_properties(${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/English.lproj/InfoPlist.strings PROPERTIES MACOSX_PACKAGE_LOCATION "./English.lproj") |
| 37 | 46 | ||
| 38 | # Options for code signing propagated as env vars to Codesign.command via Xcode | 47 | # Options for code signing propagated as env vars to Codesign.command via Xcode |
| 39 | set(IOS_CODE_SIGN_IDENTITY "" CACHE STRING "Code Sign Identity") | 48 | set(IOS_CODE_SIGN_IDENTITY "" CACHE STRING "Code Sign Identity") |
| @@ -73,6 +82,7 @@ add_custom_command(TARGET ${APP_NAME_LC} POST_BUILD | |||
| 73 | "BUILT_PRODUCTS_DIR=$<TARGET_FILE_DIR:${APP_NAME_LC}>/.." | 82 | "BUILT_PRODUCTS_DIR=$<TARGET_FILE_DIR:${APP_NAME_LC}>/.." |
| 74 | "WRAPPER_NAME=${APP_NAME}.app" | 83 | "WRAPPER_NAME=${APP_NAME}.app" |
| 75 | "APP_NAME=${APP_NAME}" | 84 | "APP_NAME=${APP_NAME}" |
| 85 | "CURRENT_ARCH=${ARCH}" | ||
| 76 | ${CMAKE_SOURCE_DIR}/tools/darwin/Support/Codesign.command | 86 | ${CMAKE_SOURCE_DIR}/tools/darwin/Support/Codesign.command |
| 77 | ) | 87 | ) |
| 78 | 88 | ||
