1 local_c_flags := 2 3 local_c_includes := $(log_c_includes) 4 5 local_additional_dependencies := $(LOCAL_PATH)/android-config.mk $(LOCAL_PATH)/Ssl.mk 6 7 include $(LOCAL_PATH)/Ssl-config.mk 8 9 ####################################### 10 # target static library 11 include $(CLEAR_VARS) 12 include $(LOCAL_PATH)/android-config.mk 13 14 # If we're building an unbundled build, don't try to use clang since it's not 15 # in the NDK yet. This can be removed when a clang version that is fast enough 16 # in the NDK. 17 ifeq (,$(TARGET_BUILD_APPS)) 18 LOCAL_CLANG := true 19 else 20 LOCAL_SDK_VERSION := 9 21 endif 22 23 LOCAL_SRC_FILES += $(target_src_files) 24 LOCAL_CFLAGS += $(target_c_flags) 25 LOCAL_C_INCLUDES += $(target_c_includes) 26 LOCAL_SHARED_LIBRARIES = $(log_shared_libraries) 27 LOCAL_MODULE_TAGS := optional 28 LOCAL_MODULE:= libssl_static 29 LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies) 30 include $(BUILD_STATIC_LIBRARY) 31 32 ####################################### 33 # target shared library 34 include $(CLEAR_VARS) 35 include $(LOCAL_PATH)/android-config.mk 36 37 # If we're building an unbundled build, don't try to use clang since it's not 38 # in the NDK yet. This can be removed when a clang version that is fast enough 39 # in the NDK. 40 ifeq (,$(TARGET_BUILD_APPS)) 41 LOCAL_CLANG := true 42 else 43 LOCAL_SDK_VERSION := 9 44 endif 45 46 LOCAL_SRC_FILES += $(target_src_files) 47 LOCAL_CFLAGS += $(target_c_flags) 48 LOCAL_C_INCLUDES += $(target_c_includes) 49 LOCAL_SHARED_LIBRARIES += libcrypto $(log_shared_libraries) 50 LOCAL_MODULE_TAGS := optional 51 LOCAL_MODULE:= libssl 52 LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies) 53 include $(BUILD_SHARED_LIBRARY) 54 55 ####################################### 56 # host shared library 57 include $(CLEAR_VARS) 58 include $(LOCAL_PATH)/android-config.mk 59 LOCAL_SRC_FILES += $(host_src_files) 60 LOCAL_CFLAGS += $(host_c_flags) 61 LOCAL_C_INCLUDES += $(host_c_includes) 62 LOCAL_SHARED_LIBRARIES += libcrypto-host $(log_shared_libraries) 63 LOCAL_MODULE_TAGS := optional 64 LOCAL_MODULE:= libssl-host 65 LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies) 66 include $(BUILD_HOST_SHARED_LIBRARY) 67 68 ####################################### 69 # ssltest 70 include $(CLEAR_VARS) 71 include $(LOCAL_PATH)/android-config.mk 72 LOCAL_SRC_FILES:= ssl/ssltest.c 73 LOCAL_C_INCLUDES += $(host_c_includes) 74 LOCAL_SHARED_LIBRARIES := libssl libcrypto $(log_shared_libraries) 75 LOCAL_MODULE:= ssltest 76 LOCAL_MODULE_TAGS := optional 77 LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies) 78 include $(BUILD_EXECUTABLE) 79