diff options
author | Memphiz <memphis@machzwo.de> | 2018-10-23 22:10:34 +0200 |
---|---|---|
committer | Memphiz <memphis@machzwo.de> | 2018-10-23 22:43:26 +0200 |
commit | f45b0fa68e020cb733cff7cbebe4d40d89240646 (patch) | |
tree | 1fa1ac5b3c7ff85863bb1ecfd278deb009df9770 /cmake | |
parent | 03b0877369b7cfcab4bf909858840fcc91f2ceb5 (diff) |
[cmake/Xcode] - fix missing text and icon resources when using target Xcode
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/scripts/ios/Install.cmake | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/cmake/scripts/ios/Install.cmake b/cmake/scripts/ios/Install.cmake index 7b6c3ded0a..f32c73f56f 100644 --- a/cmake/scripts/ios/Install.cmake +++ b/cmake/scripts/ios/Install.cmake @@ -21,19 +21,13 @@ set(BUNDLE_RESOURCES ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/Default-568h@2 ${CMAKE_SOURCE_DIR}/tools/darwin/packaging/media/ios/rounded/AppIcon76x76.png ${CMAKE_SOURCE_DIR}/tools/darwin/packaging/media/ios/rounded/AppIcon76x76@2x.png) -if(CMAKE_GENERATOR STREQUAL Xcode) - set(RESOURCE_LOCATION ${APP_NAME}.app) -else() - set(RESOURCE_LOCATION ".") -endif() - target_sources(${APP_NAME_LC} PRIVATE ${BUNDLE_RESOURCES}) foreach(file IN LISTS BUNDLE_RESOURCES) - set_source_files_properties(${file} PROPERTIES MACOSX_PACKAGE_LOCATION ${RESOURCE_LOCATION}) + set_source_files_properties(${file} PROPERTIES MACOSX_PACKAGE_LOCATION .) endforeach() target_sources(${APP_NAME_LC} PRIVATE ${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/English.lproj/InfoPlist.strings) -set_source_files_properties(${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/English.lproj/InfoPlist.strings PROPERTIES MACOSX_PACKAGE_LOCATION "${RESOURCE_LOCATION}/English.lproj") +set_source_files_properties(${CMAKE_SOURCE_DIR}/xbmc/platform/darwin/ios/English.lproj/InfoPlist.strings PROPERTIES MACOSX_PACKAGE_LOCATION "./English.lproj") # Options for code signing propagated as env vars to Codesign.command via Xcode set(IOS_CODE_SIGN_IDENTITY "" CACHE STRING "Code Sign Identity") |