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)

转载于:https://www.cnblogs.com/bluestorm/p/11545961.html

你可能感兴趣的:(ubuntu下编译android jni到so库的mk文件配置)