ubuntu下编译android jni到so库的mk文件配置

项目根目录下的Android.mk文件

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_JNI_SHARED_LIBRARIES := libaplex
LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4
LOCAL_SRC_FILES := $(call all-java-files-under, src)


LOCAL_PACKAGE_NAME := AplexTest
LOCAL_CERTIFICATE := platform

include $(BUILD_PACKAGE)


# Use the folloing include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))
LOCAL_PATH:= $(call my-dir)


jni目录下的Android.mk文件

 

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
AplexBuzz.c

LOCAL_C_INCLUDES += \
$(JNI_H_INCLUDE) \

LOCAL_SHARED_LIBRARIES := \
libandroid_runtime \
libnativehelper \
libcutils \
libutils \
liblog


LOCAL_MODULE := libaplex
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)

ubuntu下编译android jni到so库的mk文件配置

上一篇:bind、apply、call的区别


下一篇:CSS三大特性:层叠 继承 优先级