Android NDK 同时编译多个Module

时间:2022-12-15 17:45:44

 

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)