commit | cfdc5e2b915d44ff251925c9d1940009ef9469b7 | [log] [tgz] |
---|---|---|
author | Dan Albert <danalbert@google.com> | Thu Jun 25 15:53:55 2020 -0700 |
committer | Dan Albert <danalbert@google.com> | Thu Jun 25 15:55:45 2020 -0700 |
tree | 230a4e2db69ea0dced2e3ae188defc8e1f6802d8 | |
parent | 63332e34155bda86e1cd42e0d1360cc88088307d [diff] |
Fix bad stack traces on old devices when using LLD. We will need to send a patch to the driver to make sure this happens automatically, but that won't land in our toolchain for some time. Test: added test for build flags Test: observed good stack trace on API 25 using repro case from bug Bug: https://github.com/android/ndk/issues/1196 Change-Id: I6863065429adf1e86cb2e0532d7d7c1e6d00682a
The latest version of this document is available at https://android.googlesource.com/platform/ndk/+/master/README.md.
Note: This document is for developers of the NDK, not developers that use the NDK.
The NDK allows Android application developers to include native code in their Android application packages, compiled as JNI shared libraries.
This page provides an overview of what is contained in the NDK. For information on building or testing the NDK, the roadmap, or other information, see the navigation bar at the top of this page, or the docs directory.
The NDK components can be loosely grouped into host toolchains, target prebuilts, build systems, and support libraries.
For more information, see the Build System Maintainers guide.
While the NDK is primarily a toolchain for building Android code, the package also includes some build system support.
First, $NDK/build/core
contains ndk-build. This is the NDK's home grown build system. The entry point for this build system is $NDK/build/ndk-build
(or $NDK/build/ndk-build.cmd
).
A CMake toolchain file is included at $NDK/build/cmake/android.toolchain.cmake
. This is separate from CMake's own support for the NDK.
$NDK/build/tools/make_standalone_toolchain.py
is a tool which can create a redistributable toolchain that targets a single Android ABI and API level. As of NDK r19 it is unnecessary, as the installed toolchain may be invoked directly, but it remains for compatibility.
Since the Android Gradle plugin is responsible for both Java and native code, is not included as part of the NDK.
sources/android
and sources/third_party
contain modules that can be used in apps (gtest, cpufeatures, native_app_glue, etc) via $(call import-module,$MODULE)
in ndk-build. CMake modules are not yet available.