标签:
LOCAL_PATH:= $(call my-dir)
#第三方库的设置方法,后面通过LOCAL_STATIC_LIBRARIES来引用
include $(CLEAR_VARS)
LOCAL_MODULE := libcrypto
LOCAL_SRC_FILES := libcrypto.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := openssl_use
LOCAL_C_INCLUDES := E:/study/openssl/openssl-android-master/include
# 遍历目录及子目录的函数
define walk
$(wildcard $(1)) $(foreach e, $(wildcard $(1)/*), $(call walk, $(e)))
endef
# 遍历Classes目录
ALLFILES = $(call walk, $(LOCAL_PATH)/src)
# 从所有文件中提取出所有.cpp文件
FILE_LIST += $(filter %.cpp %.cc, $(ALLFILES))
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)
LOCAL_STATIC_LIBRARIES := libcrypto
include $(BUILD_SHARED_LIBRARY)
标签:
原文地址:http://www.cnblogs.com/skylinee/p/4380363.html