mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-07 15:18:38 -06:00
Android: Add CMAKE_ANDROID_NDK_TOOLCHAIN_HOST_TAG variable
The NDK provides prebuilt toolchain files in directories named for the host architecture. The NDK build system calls this `HOST_TAG`. Expose the value publicly for use by clients that need to pass it to external tools. Suggested-by: Ruslan Baratov <ruslan_baratov@yahoo.com>
This commit is contained in:
@@ -244,6 +244,7 @@ Variables that Control the Build
|
||||
/variable/CMAKE_ANDROID_NATIVE_LIB_DEPENDENCIES
|
||||
/variable/CMAKE_ANDROID_NATIVE_LIB_DIRECTORIES
|
||||
/variable/CMAKE_ANDROID_NDK
|
||||
/variable/CMAKE_ANDROID_NDK_TOOLCHAIN_HOST_TAG
|
||||
/variable/CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION
|
||||
/variable/CMAKE_ANDROID_PROCESS_MAX
|
||||
/variable/CMAKE_ANDROID_PROGUARD
|
||||
|
||||
@@ -4,3 +4,8 @@ android-info-variables
|
||||
* When :ref:`Cross Compiling for Android with the NDK`, the
|
||||
:variable:`CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION` variable is
|
||||
now set by CMake if it is not set by the user or toolchain file.
|
||||
|
||||
* When :ref:`Cross Compiling for Android with the NDK`, a new
|
||||
:variable:`CMAKE_ANDROID_NDK_TOOLCHAIN_HOST_TAG` variable is
|
||||
now set by CMake to expose the host directory component of the
|
||||
path to the NDK prebuilt toolchains.
|
||||
|
||||
6
Help/variable/CMAKE_ANDROID_NDK_TOOLCHAIN_HOST_TAG.rst
Normal file
6
Help/variable/CMAKE_ANDROID_NDK_TOOLCHAIN_HOST_TAG.rst
Normal file
@@ -0,0 +1,6 @@
|
||||
CMAKE_ANDROID_NDK_TOOLCHAIN_HOST_TAG
|
||||
------------------------------------
|
||||
|
||||
When :ref:`Cross Compiling for Android with the NDK`, this variable
|
||||
provides the NDK's "host tag" used to construct the path to prebuilt
|
||||
toolchains that run on the host.
|
||||
Reference in New Issue
Block a user