Android.mk debug output

I am building Froyo, is it possible that make / python can output the file and the command it is invoking now during build.

For example, in one of Android.mk there is a line that says: Success of echo assembly. On the monitor it will show “build success”, I want it to also show “Android.mk line 20: success of creating an echo”.

Is it possible?

+3
source share
2 answers

The android message analyzer makes a comment that accepts information and warning tags in your Android.mk.

For example, if you want to print the value of an internal variable:

LOCAL_CFLAGS := -DHAVE_ERRNO_H -g
$(info value of LOCAL_CFLAGS is: $(LOCAL_CFLAGS))

.

$(warning value of LOCAL_CFLAGS is: $(LOCAL_CFLAGS))

$(error value of LOCAL_CFLAGS is: $(LOCAL_CFLAGS))

.

+2

$(info) Java + ++ Android:

$info), Android.mk , ndk-gdb, , , -, $( info) ndk-gdb script ( get_build_var() get_build_var_for_abi()). , ndk-gdb script .

+2

Source: https://habr.com/ru/post/1767270/


All Articles