Android NDK 同时编译多个Module

 

LOCAL_PATH := $(call my-dir)

##
## NDK 支持同时编译多个Module;
## 在配置的时候,每个Module需要 以 include $(CLEAR_VARS)开头 、 include $(BUILD_SHARED_LIBRARY)结尾

# 编译MD5签名so
include $(CLEAR_VARS)
LOCAL_MODULE    := MD5Sign
LOCAL_SRC_FILES := com_joyodream_common_jni_MD5Sign.cpp
LOCAL_LDLIBS    := -lm -llog
include $(BUILD_SHARED_LIBRARY)

# 编译图片模糊so
include $(CLEAR_VARS)
LOCAL_MODULE    := ImageBlur
LOCAL_SRC_FILES := com_joyodream_common_blur_ImageBlur.cpp
LOCAL_LDLIBS    := -lm -llog
include $(BUILD_SHARED_LIBRARY)

 

posted @ 2016-10-14 16:32  lipeil  阅读(1222)  评论(0编辑  收藏  举报