Application.mk
The Application.mk
file is also an existing file in our sample project. It describes the native modules required by the app, and is generally located under the yourProject/jni
folder. As with the Android.mk
file, there are a few variables that we can include here and will increase the functionality of this file:
APP_OPTIM
: This is a very useful variable that can be used to decide the optimization level when the application modules are being built. It can be defined asrelease
ordebug
.Basically, when the modules are compiled in the
release
mode, they are very efficient and provide little information for debugging. Thedebug
mode, on the other hand, contains a bunch of useful information for debugging but is not very efficient for being distributed. The default mode isrelease
.Some of the optimization that takes place in the release mode is the naming of variables. They can be renamed and shortened (here you can think of the same optimization taking place when applying ProGuard...