Android.mk
While Application.mk allows you to specify variables common to your whole application, Android.mk is used to specify what modules you want to build and how to build them, all of this in excruciating detail. Table 2–5 lists the available variables in NDK revision 6.
Once again, we are going to focus on the few variables that have an impact on performance:
- LOCAL_CFLAGS
- LOCAL_CPPFLAGS
- LOCAL_ARM_MODE
- LOCAL_ARM_NEON
- LOCAL_DISABLE_NO_EXECUTE
LOCAL_CFLAGS
and LOCAL_CPPFLAGS
are similar to APP_CFLAGS
and APP_CPPFLAGS
, but apply only to the current module, whereas the flags defined in Application.mk are for all the modules. It is recommended ...
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.