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)
相關文章
相關標籤/搜索