1local_c_flags := 2 3local_c_includes := $(log_c_includes) 4 5local_additional_dependencies := $(LOCAL_PATH)/android-config.mk $(LOCAL_PATH)/Crypto.mk 6 7include $(LOCAL_PATH)/Crypto-config.mk 8 9####################################### 10# target static library 11include $(CLEAR_VARS) 12include $(LOCAL_PATH)/android-config.mk 13 14LOCAL_SHARED_LIBRARIES := $(log_shared_libraries) 15 16ifneq (,$(TARGET_BUILD_APPS)) 17LOCAL_SDK_VERSION := 9 18endif 19 20LOCAL_SRC_FILES += $(target_src_files) 21LOCAL_CFLAGS += $(target_c_flags) 22LOCAL_C_INCLUDES += $(target_c_includes) 23LOCAL_MODULE_TAGS := optional 24LOCAL_MODULE:= libcrypto_static 25LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies) 26include $(BUILD_STATIC_LIBRARY) 27 28####################################### 29# target shared library 30include $(CLEAR_VARS) 31include $(LOCAL_PATH)/android-config.mk 32 33LOCAL_SHARED_LIBRARIES := $(log_shared_libraries) 34 35ifneq (,$(TARGET_BUILD_APPS)) 36LOCAL_SDK_VERSION := 9 37endif 38LOCAL_LDFLAGS += -ldl 39 40LOCAL_SRC_FILES += $(target_src_files) 41LOCAL_CFLAGS += $(target_c_flags) 42LOCAL_C_INCLUDES += $(target_c_includes) 43LOCAL_MODULE_TAGS := optional 44LOCAL_MODULE:= libcrypto 45LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies) 46include $(BUILD_SHARED_LIBRARY) 47 48####################################### 49# host shared library 50include $(CLEAR_VARS) 51include $(LOCAL_PATH)/android-config.mk 52LOCAL_SHARED_LIBRARIES := $(log_shared_libraries) 53LOCAL_SRC_FILES += $(host_src_files) 54LOCAL_CFLAGS += $(host_c_flags) -DPURIFY 55LOCAL_C_INCLUDES += $(host_c_includes) 56LOCAL_LDLIBS += -ldl 57LOCAL_MODULE_TAGS := optional 58LOCAL_MODULE:= libcrypto 59LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies) 60include $(BUILD_HOST_SHARED_LIBRARY) 61 62######################################## 63# host static library, which is used by some SDK tools. 64 65include $(CLEAR_VARS) 66include $(LOCAL_PATH)/android-config.mk 67LOCAL_SHARED_LIBRARIES := $(log_shared_libraries) 68LOCAL_SRC_FILES += $(host_src_files) 69LOCAL_CFLAGS += $(host_c_flags) -DPURIFY 70LOCAL_C_INCLUDES += $(host_c_includes) 71LOCAL_LDLIBS += -ldl 72LOCAL_MODULE_TAGS := optional 73LOCAL_MODULE:= libcrypto_static 74LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies) 75include $(BUILD_HOST_STATIC_LIBRARY) 76