summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-06-02 14:19:59 (GMT)
committerBrad King <brad.king@kitware.com>2016-08-12 14:40:51 (GMT)
commit64be1ae4a3ae98e63cf35d495f0ca06c77cdf923 (patch)
treefdab240a1a1d781579ceb64d421e259b0a1f09a1 /Modules
parent47866770cee381851ccc8070f64459909a838288 (diff)
downloadCMake-64be1ae4a3ae98e63cf35d495f0ca06c77cdf923.zip
CMake-64be1ae4a3ae98e63cf35d495f0ca06c77cdf923.tar.gz
CMake-64be1ae4a3ae98e63cf35d495f0ca06c77cdf923.tar.bz2
Android: Add placeholders for platform-specific compiler selection
Add infrastructure modules to be loaded for determining a compiler selection when targeting Android platforms.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Android-Determine-C.cmake2
-rw-r--r--Modules/Platform/Android-Determine-CXX.cmake2
-rw-r--r--Modules/Platform/Android/Determine-Compiler.cmake21
3 files changed, 25 insertions, 0 deletions
diff --git a/Modules/Platform/Android-Determine-C.cmake b/Modules/Platform/Android-Determine-C.cmake
new file mode 100644
index 0000000..c7d1d15
--- /dev/null
+++ b/Modules/Platform/Android-Determine-C.cmake
@@ -0,0 +1,2 @@
+include(Platform/Android/Determine-Compiler)
+__android_determine_compiler(C)
diff --git a/Modules/Platform/Android-Determine-CXX.cmake b/Modules/Platform/Android-Determine-CXX.cmake
new file mode 100644
index 0000000..3a3de88
--- /dev/null
+++ b/Modules/Platform/Android-Determine-CXX.cmake
@@ -0,0 +1,2 @@
+include(Platform/Android/Determine-Compiler)
+__android_determine_compiler(CXX)
diff --git a/Modules/Platform/Android/Determine-Compiler.cmake b/Modules/Platform/Android/Determine-Compiler.cmake
new file mode 100644
index 0000000..a036481
--- /dev/null
+++ b/Modules/Platform/Android/Determine-Compiler.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_DETERMINE_COMPILER)
+ return()
+endif()
+set(__ANDROID_DETERMINE_COMPILER 1)
+
+macro(__android_determine_compiler lang)
+endmacro()