mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Android: Add placeholders for platform-specific compiler settings
Add infrastructure modules to be loaded for Clang and GNU compilers when targeting Android platforms.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
include(Platform/Android-Clang)
|
||||
__android_compiler_clang(C)
|
||||
@@ -0,0 +1,2 @@
|
||||
include(Platform/Android-Clang)
|
||||
__android_compiler_clang(CXX)
|
||||
@@ -0,0 +1,24 @@
|
||||
#=============================================================================
|
||||
# Copyright 2015-2016 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# This module is shared by multiple languages; use include blocker.
|
||||
if(__ANDROID_COMPILER_CLANG)
|
||||
return()
|
||||
endif()
|
||||
set(__ANDROID_COMPILER_CLANG 1)
|
||||
|
||||
include(Platform/Android-Common)
|
||||
|
||||
macro(__android_compiler_clang lang)
|
||||
__android_compiler_common(${lang})
|
||||
endmacro()
|
||||
@@ -0,0 +1,21 @@
|
||||
#=============================================================================
|
||||
# Copyright 2015-2016 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# This module is shared by multiple languages; use include blocker.
|
||||
if(__ANDROID_COMPILER_COMMON)
|
||||
return()
|
||||
endif()
|
||||
set(__ANDROID_COMPILER_COMMON 1)
|
||||
|
||||
macro(__android_compiler_common lang)
|
||||
endmacro()
|
||||
@@ -0,0 +1,2 @@
|
||||
include(Platform/Android-GNU)
|
||||
__android_compiler_gnu(C)
|
||||
@@ -0,0 +1,2 @@
|
||||
include(Platform/Android-GNU)
|
||||
__android_compiler_gnu(CXX)
|
||||
@@ -0,0 +1,24 @@
|
||||
#=============================================================================
|
||||
# Copyright 2015-2016 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# This module is shared by multiple languages; use include blocker.
|
||||
if(__ANDROID_COMPILER_GNU)
|
||||
return()
|
||||
endif()
|
||||
set(__ANDROID_COMPILER_GNU 1)
|
||||
|
||||
include(Platform/Android-Common)
|
||||
|
||||
macro(__android_compiler_gnu lang)
|
||||
__android_compiler_common(${lang})
|
||||
endmacro()
|
||||
Reference in New Issue
Block a user