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)

上一篇:【Quartz】Quartz的数据库表


下一篇:Android使用Java Mail API发送邮件