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