1local_c_includes := \ 2 external/openssl \ 3 external/openssl/include \ 4 external/openssl/crypto 5 6local_src_files:= \ 7 ssl/bio_ssl.c \ 8 ssl/d1_both.c \ 9 ssl/d1_enc.c \ 10 ssl/d1_lib.c \ 11 ssl/d1_pkt.c \ 12 ssl/d1_srtp.c \ 13 ssl/kssl.c \ 14 ssl/s23_clnt.c \ 15 ssl/s23_lib.c \ 16 ssl/s23_meth.c \ 17 ssl/s23_pkt.c \ 18 ssl/s23_srvr.c \ 19 ssl/s2_clnt.c \ 20 ssl/s2_enc.c \ 21 ssl/s2_lib.c \ 22 ssl/s2_meth.c \ 23 ssl/s2_pkt.c \ 24 ssl/s2_srvr.c \ 25 ssl/s3_both.c \ 26 ssl/s3_clnt.c \ 27 ssl/s3_enc.c \ 28 ssl/s3_lib.c \ 29 ssl/s3_meth.c \ 30 ssl/s3_pkt.c \ 31 ssl/s3_srvr.c \ 32 ssl/ssl_algs.c \ 33 ssl/ssl_asn1.c \ 34 ssl/ssl_cert.c \ 35 ssl/ssl_ciph.c \ 36 ssl/ssl_err.c \ 37 ssl/ssl_err2.c \ 38 ssl/ssl_lib.c \ 39 ssl/ssl_rsa.c \ 40 ssl/ssl_sess.c \ 41 ssl/ssl_stat.c \ 42 ssl/ssl_txt.c \ 43 ssl/t1_clnt.c \ 44 ssl/t1_enc.c \ 45 ssl/t1_lib.c \ 46 ssl/t1_meth.c \ 47 ssl/t1_reneg.c \ 48 ssl/t1_srvr.c \ 49 ssl/tls_srp.c 50 51local_c_includes += $(log_c_includes) 52 53local_additional_dependencies := $(LOCAL_PATH)/android-config.mk $(LOCAL_PATH)/Ssl.mk 54 55####################################### 56# target static library 57include $(CLEAR_VARS) 58include $(LOCAL_PATH)/android-config.mk 59 60ifeq ($(TARGET_ARCH),arm) 61LOCAL_SDK_VERSION := 9 62endif 63LOCAL_SRC_FILES += $(local_src_files) 64LOCAL_C_INCLUDES += $(local_c_includes) 65LOCAL_SHARED_LIBRARIES = $(log_shared_libraries) 66LOCAL_MODULE_TAGS := optional 67LOCAL_MODULE:= libssl_static 68LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies) 69include $(BUILD_STATIC_LIBRARY) 70 71####################################### 72# target shared library 73include $(CLEAR_VARS) 74include $(LOCAL_PATH)/android-config.mk 75 76ifeq ($(TARGET_ARCH),arm) 77LOCAL_SDK_VERSION := 9 78endif 79LOCAL_SRC_FILES += $(local_src_files) 80LOCAL_C_INCLUDES += $(local_c_includes) 81LOCAL_SHARED_LIBRARIES += libcrypto $(log_shared_libraries) 82LOCAL_MODULE_TAGS := optional 83LOCAL_MODULE:= libssl 84LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies) 85include $(BUILD_SHARED_LIBRARY) 86 87####################################### 88# host shared library 89include $(CLEAR_VARS) 90include $(LOCAL_PATH)/android-config.mk 91LOCAL_SRC_FILES += $(local_src_files) 92LOCAL_C_INCLUDES += $(local_c_includes) 93LOCAL_SHARED_LIBRARIES += libcrypto $(log_shared_libraries) 94LOCAL_MODULE_TAGS := optional 95LOCAL_MODULE:= libssl 96LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies) 97include $(BUILD_HOST_SHARED_LIBRARY) 98 99####################################### 100# ssltest 101include $(CLEAR_VARS) 102include $(LOCAL_PATH)/android-config.mk 103LOCAL_SRC_FILES:= ssl/ssltest.c 104LOCAL_C_INCLUDES += $(local_c_includes) 105LOCAL_SHARED_LIBRARIES := libssl libcrypto $(log_shared_libraries) 106LOCAL_MODULE:= ssltest 107LOCAL_MODULE_TAGS := optional 108LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies) 109include $(BUILD_EXECUTABLE) 110