commit | 5cd83a5aef45f9c6befa23f88b0a8540d5b11e2b | [log] [tgz] |
---|---|---|
author | Dan Albert <danalbert@google.com> | Tue Mar 19 14:42:21 2019 -0700 |
committer | Dan Albert <danalbert@google.com> | Tue Mar 19 14:45:19 2019 -0700 |
tree | 3355c49827c6fce936857c767ac0c7f34c67f48e | |
parent | e09652d101f4606cbd12b15c064536c22a640ae3 [diff] |
Fix timer doc test. The syntax was wrong for the line continuation which was causing this test to fail. We don't really want to make this test flaky by having it depend on the actual time spent running the test (though it should never take more than 1 second, which is the minimum resolution of default output), so hide it in a function so the block is still checked but not run. Test: nose2 ndk Bug: None Change-Id: Id41149cd27ab19a9c763db5ce45345742a559dd3
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 necessary, 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.