Initial concepts
Before we start creating our first native application, we would like to introduce some initial concepts to the reader, to ensure easier understanding:
ndk-build: This file is the shell script in charge of invoking the NDK build. Automatically, this script checks that the system and the application is right, is generating the binaries that will be used, and copying them to our project structure. Being a shell script, it can be called with a few extra parameters:
clean
: This parameter makes the script clean all the binaries that have been previously generated–B
: Using the–B
option, we force the system to perform a rebuildV=1
: This releases the build and also displays build commandsNDK_DEBUG=X
: If we use1
, the build will be debuggable; if we use0
, we will be forcing a release buildNDK_LOG=X
: Using1
, NDK will log all the messages that are generated during the build
Keep in mind that all the parameters can be partially combined (for instance, you could use
B V=1
if you...