diff options
author | Brad King <brad.king@kitware.com> | 2016-06-02 14:16:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-08-12 14:40:51 (GMT) |
commit | 47866770cee381851ccc8070f64459909a838288 (patch) | |
tree | 2c5f4033501c288644c6a7055d48e6b7d81d347f /Modules | |
parent | 735f168bf08a4fdf1d9e245035d2dbcadbed652f (diff) | |
download | CMake-47866770cee381851ccc8070f64459909a838288.zip CMake-47866770cee381851ccc8070f64459909a838288.tar.gz CMake-47866770cee381851ccc8070f64459909a838288.tar.bz2 |
Android: Add placeholders for platform-specific compiler settings
Add infrastructure modules to be loaded for Clang and GNU compilers
when targeting Android platforms.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/Android-Clang-C.cmake | 2 | ||||
-rw-r--r-- | Modules/Platform/Android-Clang-CXX.cmake | 2 | ||||
-rw-r--r-- | Modules/Platform/Android-Clang.cmake | 24 | ||||
-rw-r--r-- | Modules/Platform/Android-Common.cmake | 21 | ||||
-rw-r--r-- | Modules/Platform/Android-GNU-C.cmake | 2 | ||||
-rw-r--r-- | Modules/Platform/Android-GNU-CXX.cmake | 2 | ||||
-rw-r--r-- | Modules/Platform/Android-GNU.cmake | 24 |
7 files changed, 77 insertions, 0 deletions
diff --git a/Modules/Platform/Android-Clang-C.cmake b/Modules/Platform/Android-Clang-C.cmake new file mode 100644 index 0000000..9e16911 --- /dev/null +++ b/Modules/Platform/Android-Clang-C.cmake @@ -0,0 +1,2 @@ +include(Platform/Android-Clang) +__android_compiler_clang(C) diff --git a/Modules/Platform/Android-Clang-CXX.cmake b/Modules/Platform/Android-Clang-CXX.cmake new file mode 100644 index 0000000..7111836 --- /dev/null +++ b/Modules/Platform/Android-Clang-CXX.cmake @@ -0,0 +1,2 @@ +include(Platform/Android-Clang) +__android_compiler_clang(CXX) diff --git a/Modules/Platform/Android-Clang.cmake b/Modules/Platform/Android-Clang.cmake new file mode 100644 index 0000000..b354b4c --- /dev/null +++ b/Modules/Platform/Android-Clang.cmake @@ -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() diff --git a/Modules/Platform/Android-Common.cmake b/Modules/Platform/Android-Common.cmake new file mode 100644 index 0000000..0ef9512 --- /dev/null +++ b/Modules/Platform/Android-Common.cmake @@ -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() diff --git a/Modules/Platform/Android-GNU-C.cmake b/Modules/Platform/Android-GNU-C.cmake new file mode 100644 index 0000000..78a6a50 --- /dev/null +++ b/Modules/Platform/Android-GNU-C.cmake @@ -0,0 +1,2 @@ +include(Platform/Android-GNU) +__android_compiler_gnu(C) diff --git a/Modules/Platform/Android-GNU-CXX.cmake b/Modules/Platform/Android-GNU-CXX.cmake new file mode 100644 index 0000000..41279d1 --- /dev/null +++ b/Modules/Platform/Android-GNU-CXX.cmake @@ -0,0 +1,2 @@ +include(Platform/Android-GNU) +__android_compiler_gnu(CXX) diff --git a/Modules/Platform/Android-GNU.cmake b/Modules/Platform/Android-GNU.cmake new file mode 100644 index 0000000..13369d0 --- /dev/null +++ b/Modules/Platform/Android-GNU.cmake @@ -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() |