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:
Brad King 2016-06-02 10:16:11 -04:00
parent 735f168bf0
commit 47866770ce
7 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,2 @@
include(Platform/Android-Clang)
__android_compiler_clang(C)

View File

@ -0,0 +1,2 @@
include(Platform/Android-Clang)
__android_compiler_clang(CXX)

View File

@ -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()

View File

@ -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()

View File

@ -0,0 +1,2 @@
include(Platform/Android-GNU)
__android_compiler_gnu(C)

View File

@ -0,0 +1,2 @@
include(Platform/Android-GNU)
__android_compiler_gnu(CXX)

View File

@ -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()