Android-GNU.cmake 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. # This module is shared by multiple languages; use include blocker.
  4. if(__ANDROID_COMPILER_GNU)
  5. return()
  6. endif()
  7. set(__ANDROID_COMPILER_GNU 1)
  8. # Support for NVIDIA Nsight Tegra Visual Studio Edition was previously
  9. # implemented in the CMake VS IDE generators. Avoid interfering with
  10. # that functionality for now. Later we may try to integrate this.
  11. if(CMAKE_VS_PLATFORM_NAME STREQUAL "Tegra-Android")
  12. macro(__android_compiler_gnu lang)
  13. endmacro()
  14. return()
  15. endif()
  16. # Commonly used Android toolchain files that pre-date CMake upstream support
  17. # set CMAKE_SYSTEM_VERSION to 1. Avoid interfering with them.
  18. if(CMAKE_SYSTEM_VERSION EQUAL 1)
  19. macro(__android_compiler_gnu lang)
  20. endmacro()
  21. return()
  22. endif()
  23. include(Platform/Android-Common)
  24. include(Platform/Android/abi-${CMAKE_ANDROID_ARCH_ABI}-GNU)
  25. macro(__android_compiler_gnu lang)
  26. __android_compiler_common(${lang})
  27. endmacro()