Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How is android mk parsed in android ndk?


Asked by Zander House on Nov 29, 2021 Android



The build system parses Android.mk once per ABI specified by the APP_ABI variable, which is typically defined in your Application.mk file. If APP_ABI is all, then the build system parses Android.mk once per ABI the NDK supports. This section describes variables the build system defines each time it parses Android.mk.
Just so,
The NDK build system will compute these automatically for you. #An Android.mk file must begin with the definition of the LOCAL_PATH variable. #It is used to locate source files in the development tree. In this example, #Android.mk file itself). #!!! A module should start with LOCAL_PATH
Also, Static libraries can be used to generate shared libraries though. You can use the same source file in several modules. don't need to list header files or explicit dependencies between generated files in your Android.mk. The NDK build system will compute these automatically for you.
And,
LOCAL_PATH := $(call my-dir) This variable indicates the location of the source files in the development tree. Here, the macro function my-dir, provided by the build system, returns the path of the current directory (the directory containing the Android.mk file itself).
Also Know,
The syntax of the Android.mk allows you to group your sources into modules . A module is either a static library, a shared library, or a standalone executable.