I'm new to JNI, C++ and make files. In the Application.mk
of my sample Android-JNI-C++ project their is a APP_MODULES
property.
The Android NDK documentation just says
APP_MODULES
This variable is optional. If not defined, the NDK will build by default all the modules declared by your Android.mk, and any sub-makefile it may include.
If APP_MODULES is defined, it must be a space-separated list of module names as they appear in the LOCAL_MODULE definitions of Android.mk files. Note that the NDK will compute module dependencies automatically.
And I know from other questions on StackOverflow, that each module needs it's own Android.mk
.
But what is a module in this context? What is the advantage of having several modules instead of having only one?