Android.mk

Posted panda-w

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Android.mk相关的知识,希望对你有一定的参考价值。

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)

以上是关于Android.mk的主要内容,如果未能解决你的问题,请参考以下文章

Android JNI学习笔记-编译文件Android.mkApplication.mk 与camke