Home | History | Annotate | Download | only in ssl
      1 LOCAL_PATH:= $(call my-dir)
      2 
      3 local_c_includes := \
      4 	external/openssl \
      5 	external/openssl/include \
      6 	external/openssl/crypto
      7 
      8 local_src_files:= \
      9 	s2_meth.c \
     10 	s2_srvr.c \
     11 	s2_clnt.c \
     12 	s2_lib.c \
     13 	s2_enc.c \
     14 	s2_pkt.c \
     15 	s3_meth.c \
     16 	s3_srvr.c \
     17 	s3_clnt.c \
     18 	s3_lib.c \
     19 	s3_enc.c \
     20 	s3_pkt.c \
     21 	s3_both.c \
     22 	s23_meth.c \
     23 	s23_srvr.c \
     24 	s23_clnt.c \
     25 	s23_lib.c \
     26 	s23_pkt.c \
     27 	t1_meth.c \
     28 	t1_srvr.c \
     29 	t1_clnt.c \
     30 	t1_lib.c \
     31 	t1_enc.c \
     32 	t1_reneg.c \
     33 	ssl_lib.c \
     34 	ssl_err2.c \
     35 	ssl_cert.c \
     36 	ssl_sess.c \
     37 	ssl_ciph.c \
     38 	ssl_stat.c \
     39 	ssl_rsa.c \
     40 	ssl_asn1.c \
     41 	ssl_txt.c \
     42 	ssl_algs.c \
     43 	bio_ssl.c \
     44 	ssl_err.c \
     45 	kssl.c
     46 
     47 include $(CLEAR_VARS)
     48 include $(LOCAL_PATH)/../android-config.mk
     49 LOCAL_SRC_FILES += $(local_src_files)
     50 LOCAL_C_INCLUDES += $(local_c_includes)
     51 LOCAL_SHARED_LIBRARIES += libcrypto
     52 LOCAL_MODULE_TAGS := optional
     53 LOCAL_MODULE:= libssl
     54 include $(BUILD_SHARED_LIBRARY)
     55 
     56 ifeq ($(WITH_HOST_DALVIK),true)
     57     include $(CLEAR_VARS)
     58     include $(LOCAL_PATH)/../android-config.mk
     59     LOCAL_SRC_FILES += $(local_src_files)
     60     LOCAL_C_INCLUDES += $(local_c_includes)
     61     LOCAL_SHARED_LIBRARIES += libcrypto
     62     LOCAL_MODULE_TAGS := optional
     63     LOCAL_MODULE:= libssl
     64     include $(BUILD_HOST_SHARED_LIBRARY)
     65 endif
     66 
     67 # ssltest
     68 include $(CLEAR_VARS)
     69 include $(LOCAL_PATH)/../android-config.mk
     70 LOCAL_SRC_FILES:= ssltest.c
     71 LOCAL_C_INCLUDES += $(local_c_includes)
     72 LOCAL_SHARED_LIBRARIES := libssl libcrypto
     73 LOCAL_MODULE:= ssltest
     74 LOCAL_MODULE_TAGS := optional
     75 include $(BUILD_EXECUTABLE)
     76