Toolchain_ios.cmake 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #
  2. # Copyright (c) Contributors to the Open 3D Engine Project.
  3. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. #
  7. #
  8. set(CMAKE_SYSTEM_NAME iOS)
  9. set(CMAKE_SYSTEM_VERSION 1)
  10. set(CMAKE_OSX_ARCHITECTURES arm64)
  11. set(LY_IOS_CODE_SIGNING_IDENTITY "iPhone Developer" CACHE STRING "iPhone Developer")
  12. set(LY_IOS_DEPLOYMENT_TARGET "14.0" CACHE STRING "iOS Deployment Target")
  13. set(LY_IOS_DEVELOPMENT_TEAM "CF9TGN983S" CACHE STRING "The development team ID")
  14. # PAL variables
  15. set(PAL_PLATFORM_NAME iOS)
  16. string(TOLOWER ${PAL_PLATFORM_NAME} PAL_PLATFORM_NAME_LOWERCASE)
  17. include(${CMAKE_CURRENT_LIST_DIR}/SDK_ios.cmake)
  18. set(CMAKE_XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "1,2")
  19. set(CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET ${LY_IOS_DEPLOYMENT_TARGET})
  20. set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
  21. set(CMAKE_XCODE_ATTRIBUTE_ENABLE_BITCODE NO)
  22. set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED YES)
  23. set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY ${LY_IOS_CODE_SIGNING_IDENTITY})
  24. set(CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM ${LY_IOS_DEVELOPMENT_TEAM})