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 rebuild
    • V=1: This releases the build and also displays build commands
    • NDK_DEBUG=X: If we use 1, the build will be debuggable; ...

Get Android High Performance Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.