Android.mk中打印输出信息

在Android.mk中打印输出信息的方法是:

  • $(info string)
  • $(warning string)
  • $(error string)

输出变量方式为:$(info $(var))

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := libappblog
LOCAL_CFLAGS := -Werror
LOCAL_SRC_FILES := appblog.cpp
LOCAL_LDLIBS := -llog -lGLESv2
$(warning 'www.appblog.cn')
$(warning $(LOCAL_SRC_FILES),$(LOCAL_PATH))
$(warning $(all-subdir-makefiles),$(this.makefile))
$(warning $(TARGET_ARCH))
$(info erroinfo,test)
$(message msg)
$(warning "LOCAL_LDLIBS = $(LOCAL_LDLIBS)")
$(info $(TARGET_PLATFORM))
include $(BUILD_SHARED_LIBRARY)

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :