python - Android.mk debug output -


i building froyo, possible during building, make/python can output file , command calling right now.

for example, in 1 of android.mk, there line, says, echo build success. on monitor show "build success", want in addition, shows "android.mk line 20: echo build success".

is possible?

the message parser of android make comment accepts info , warning tags in android.mk.

for example, if want print value of internal variable:

local_cflags := -dhave_errno_h -g $(info value of local_cflags is: $(local_cflags)) 

the info tells compiler print info debug output.

you can same warning , error

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

would print highlighted warning message

and

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

would print message , stop build.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -