转载地址:
http://blog.csdn.net/earbao/article/details/38702311
http://blog.csdn.net/brucexu1978/article/details/9225037
在Android.mk中打印输出信息的方法是:$(warning string)或者$(error string) $(info string)
输出变量方式为:$(warning $(var))
$(warning 'hello')
$(warning $(LOCAL_SRC_FILES),$(LOCAL_PATH))
$(warning $(all-subdir-makefiles),$(this.makefile))
$(warning $(TARGET_ARCH))
$(info erroinfo, hello)
$(message msg)
$(info $(TARGET_PLATFORM))
用shell echo命令输出, 不过需要重定向到文件
$(shell echo "test echo">$(LOCAL_PATH)/echo_file)
其它shell命令也可使用
$(shell uname -m > $(LOCAL_PATH)/echo_file)返回机器名到文件
阅读(6128) | 评论(0) | 转发(0) |