summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_LANG_ANDROID_TOOLCHAIN_PREFIX.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-06-20 19:48:12 (GMT)
committerBrad King <brad.king@kitware.com>2016-08-23 16:53:10 (GMT)
commit6b84df8da98169af43d4173dfbd1dedf5979dcb2 (patch)
tree731592335256e7bb9dd701b1c512f37e2c95d0de /Help/variable/CMAKE_LANG_ANDROID_TOOLCHAIN_PREFIX.rst
parentd7d4083025f3007b862dd500c8f5fc64e105055b (diff)
downloadCMake-6b84df8da98169af43d4173dfbd1dedf5979dcb2.zip
CMake-6b84df8da98169af43d4173dfbd1dedf5979dcb2.tar.gz
CMake-6b84df8da98169af43d4173dfbd1dedf5979dcb2.tar.bz2
Help: Document cross compiling for Android
CMake now supports cross compiling for Android using the NDK or a standalone toolchain. Document the associated variables and how how to write toolchain files for Android.
Diffstat (limited to 'Help/variable/CMAKE_LANG_ANDROID_TOOLCHAIN_PREFIX.rst')
-rw-r--r--Help/variable/CMAKE_LANG_ANDROID_TOOLCHAIN_PREFIX.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_LANG_ANDROID_TOOLCHAIN_PREFIX.rst b/Help/variable/CMAKE_LANG_ANDROID_TOOLCHAIN_PREFIX.rst
new file mode 100644
index 0000000..b51422f
--- /dev/null
+++ b/Help/variable/CMAKE_LANG_ANDROID_TOOLCHAIN_PREFIX.rst
@@ -0,0 +1,11 @@
+CMAKE_<LANG>_ANDROID_TOOLCHAIN_PREFIX
+-------------------------------------
+
+When :ref:`Cross Compiling for Android` this variable contains the absolute
+path prefixing the toolchain GNU compiler and its binutils.
+
+See also :variable:`CMAKE_<LANG>_ANDROID_TOOLCHAIN_SUFFIX`.
+
+For example, the path to the linker is::
+
+ ${CMAKE_CXX_ANDROID_TOOLCHAIN_PREFIX}ld${CMAKE_CXX_ANDROID_TOOLCHAIN_SUFFIX}