PALDetection_android.cmake 700 B

12345678910111213141516171819
  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. ly_set(LY_PLATFORM_DETECTION_Android Android)
  9. if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL Darwin)
  10. ly_set(LY_HOST_PLATFORM_DETECTION_Android Mac)
  11. elseif(${CMAKE_HOST_SYSTEM_NAME} STREQUAL Linux)
  12. # Linux supports multiple system architectures
  13. ly_set(LY_HOST_PLATFORM_DETECTION_Android ${CMAKE_HOST_SYSTEM_NAME})
  14. ly_set(LY_HOST_ARCHITECTURE_DETECTION_Android ${CMAKE_HOST_SYSTEM_PROCESSOR})
  15. else()
  16. ly_set(LY_HOST_PLATFORM_DETECTION_Android ${CMAKE_HOST_SYSTEM_NAME})
  17. endif()