LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
# This is the target being built.
LOCAL_MODULE:= libled_jni
# All of the source files that we will compile.
LOCAL_SRC_FILES:=
led_jni.cpp
# All of the shared libraries we link against.
LOCAL_SHARED_LIBRARIES :=
libutils
libhardware #因为jni调用:hw_get_module方法,所以需要连接库:libhardware
# Also need the JNI headers.
LOCAL_C_INCLUDES +=
$(JNI_H_INCLUDE)
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
LOCAL_C_INCLUDES: 可选变量,表示头文件的搜索路径。默认的头文件的搜索路径是LOCAL_PATH目录
PRIVATE_C_INCLUDES中包含了项目的LOCAL_C_INCLUDES的定义 (参见binary.mk)
LOCAL_MODULE_PATH 和LOCAL_UNSTRIPPED_PATH指定最后的目标安装路径