Application.mk

The Application.mk file shown in Listing 2–4 is one of the simplest of its kind. However, this file can specify quite a few more things, and you may need to define many of them in your application. Table 2–3 shows the different variables you can define in Application.mk.

Image

You will focus on these variables when fine-tuning your application for performance:

  • APP_OPTIM
  • APP_CFLAGS
  • APP_CPPFLAGS
  • APP_STL
  • APP_ABI

APP_OPTIM is optional and can be set to either “release” or “debug.” If it is not defined, it will be automatically set based on whether your application is debuggable (android:debuggable set to true in the application's manifest): ...

Get Pro Android Apps Performance Optimization 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.