1####################################### 2# target static library 3include $(CLEAR_VARS) 4LOCAL_SHARED_LIBRARIES := $(log_shared_libraries) 5 6# The static library should be used in only unbundled apps 7# and we don't have clang in unbundled build yet. 8LOCAL_SDK_VERSION := 9 9 10LOCAL_MODULE_TAGS := optional 11LOCAL_MODULE := libcrypto_static 12LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/android-config.mk $(LOCAL_PATH)/Crypto.mk 13include $(LOCAL_PATH)/Crypto-config-target.mk 14include $(LOCAL_PATH)/android-config.mk 15 16# Replace cflags with static-specific cflags so we dont build in libdl deps 17LOCAL_CFLAGS_32 := $(openssl_cflags_static_32) 18LOCAL_CFLAGS_64 := $(openssl_cflags_static_64) 19include $(BUILD_STATIC_LIBRARY) 20 21####################################### 22# target shared library 23include $(CLEAR_VARS) 24LOCAL_SHARED_LIBRARIES := $(log_shared_libraries) 25 26# If we're building an unbundled build, don't try to use clang since it's not 27# in the NDK yet. This can be removed when a clang version that is fast enough 28# in the NDK. 29ifeq (,$(TARGET_BUILD_APPS)) 30LOCAL_CLANG := true 31ifeq ($(HOST_OS), darwin) 32LOCAL_ASFLAGS += -no-integrated-as 33LOCAL_CFLAGS += -no-integrated-as 34endif 35else 36LOCAL_SDK_VERSION := 9 37endif 38LOCAL_LDFLAGS += -ldl 39 40LOCAL_MODULE_TAGS := optional 41LOCAL_MODULE := libcrypto 42LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/android-config.mk $(LOCAL_PATH)/Crypto.mk 43include $(LOCAL_PATH)/Crypto-config-target.mk 44include $(LOCAL_PATH)/android-config.mk 45include $(BUILD_SHARED_LIBRARY) 46 47####################################### 48# host shared library 49include $(CLEAR_VARS) 50LOCAL_SHARED_LIBRARIES := $(log_shared_libraries) 51LOCAL_CFLAGS += -DPURIFY 52LOCAL_LDLIBS += -ldl 53LOCAL_MODULE_TAGS := optional 54LOCAL_MODULE := libcrypto-host 55LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/android-config.mk $(LOCAL_PATH)/Crypto.mk 56LOCAL_MULTILIB := both 57include $(LOCAL_PATH)/Crypto-config-host.mk 58include $(LOCAL_PATH)/android-config.mk 59include $(BUILD_HOST_SHARED_LIBRARY) 60 61######################################## 62# host static library, which is used by some SDK tools. 63 64include $(CLEAR_VARS) 65LOCAL_SHARED_LIBRARIES := $(log_shared_libraries) 66LOCAL_CFLAGS += -DPURIFY 67LOCAL_LDLIBS += -ldl 68LOCAL_MODULE_TAGS := optional 69LOCAL_MODULE := libcrypto_static 70LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/android-config.mk $(LOCAL_PATH)/Crypto.mk 71include $(LOCAL_PATH)/Crypto-config-host.mk 72include $(LOCAL_PATH)/android-config.mk 73include $(BUILD_HOST_STATIC_LIBRARY) 74