File parsed but not updating
Note that under certain circumstances the NDK might parse your several times, each with different definition for some of these variables.
CLEAR_VARS Points to a build script that undefines nearly all LOCAL_XXX variables listed in the "Module-description" section below.
the files under: Here, we can see: - The 'src' directory containing the Java sources for the sample Android project.
- The 'jni' directory containing the native source for the sample, i.e.
Before describing the syntax in details, let's consider the simple "hello JNI" example, i.e.
You can define one or more modules in each file, and you can use the same source file in several modules. For example, you don't need to list header files or explicit dependencies between generated files in your
The NDK build system will compute these automatically for you.
Note that you should not list header and included files here, because the build system will compute dependencies automatically for you; just list the source files that will be passed directly to a compiler, and you should be good.
Note that the default extension for C source files is '.cpp'. The BUILD_SHARED_LIBRARY is a variable provided by the build system that points to a GNU Makefile script that is in charge of collecting all the information you defined in LOCAL_XXX variables since the latest 'include $(CLEAR_VARS)' and determine what to build, and how to do it exactly.