diff --git a/reference/tools/gnu/autotoolstoolchain.rst b/reference/tools/gnu/autotoolstoolchain.rst index 4d344084b28e..3ce15957a150 100644 --- a/reference/tools/gnu/autotoolstoolchain.rst +++ b/reference/tools/gnu/autotoolstoolchain.rst @@ -259,6 +259,8 @@ conf - ``tools.build:linker_scripts`` list of linker scripts, each of which will be prefixed with ``-T`` and added to ``LDFLAGS``. Only use this flag with linkers that supports specifying linker scripts with the ``-T`` flag, such as ``ld``, ``gold``, and ``lld``. - ``tools.build:sysroot`` defines the ``--sysroot`` flag to the compiler. +- ``tools.android:ndk_path`` (*new since Conan 2.5.0*) argument for NDK path in case of Android cross-compilation. It is used to set + some environment variables like ``CC``, ``CXX``, ``LD``, ``STRIP``, ``RANLIB``, ``AS``, and ``AR`` in the *conanautotoolstoolchain.sh|bat* script. - ``tools.build:compiler_executables`` dict-like Python object which specifies the compiler as key and the compiler executable path as value. Those keys will be mapped as follows: diff --git a/reference/tools/meson/mesontoolchain.rst b/reference/tools/meson/mesontoolchain.rst index 832de41c6ede..38aa1aebed2f 100644 --- a/reference/tools/meson/mesontoolchain.rst +++ b/reference/tools/meson/mesontoolchain.rst @@ -284,6 +284,25 @@ in this example of host profile: tools.apple:sdk_path=/my/path/to/iPhoneOS.sdk +**Android** + +It initializes the ``MesonToolchain`` ``c``, ``cpp``, and ``ar`` attributes, which are needed to cross-compile for Android, given the +Conan settings for Android and the ``tools.android:ndk_path`` configuration value like it's shown +in this example of host profile: + + +.. code-block:: text + :caption: **android_host_profile** + + [settings] + os = Android + os.api_level = 21 + arch = armv8 + + [conf] + tools.android:ndk_path=/my/path/to/NDK + + Cross-building and native=true ------------------------------ @@ -316,25 +335,6 @@ as public attributes of the ``MesonToolchain`` class, where the variables ``objc ``objcpp`` are initialized as ``clang`` and ``clang++`` respectively by default. -**Android** - -It initializes the ``MesonToolchain`` ``c``, ``cpp``, and ``ar`` attributes, which are needed to cross-compile for Android, given the -Conan settings for Android and the ``tools.android:ndk_path`` configuration value like it's shown -in this example of host profile: - - -.. code-block:: text - :caption: **android_host_profile** - - [settings] - os = Android - os.api_level = 21 - arch = armv8 - - [conf] - tools.android:ndk_path=/my/path/to/NDK - - .. seealso:: - :ref:`Getting started with Meson`