Home | History | Annotate | Download | only in patches
      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 #######################################
     48 # target static library
     49 include $(CLEAR_VARS)
     50 include $(LOCAL_PATH)/../android-config.mk
     51 
     52 ifneq ($(TARGET_ARCH),x86)
     53 LOCAL_NDK_VERSION := 5
     54 LOCAL_SDK_VERSION := 9
     55 endif
     56 LOCAL_SRC_FILES += $(local_src_files)
     57 LOCAL_C_INCLUDES += $(local_c_includes)
     58 LOCAL_MODULE_TAGS := optional
     59 LOCAL_MODULE:= libssl_static
     60 include $(BUILD_STATIC_LIBRARY)
     61 
     62 #######################################
     63 # target shared library
     64 include $(CLEAR_VARS)
     65 include $(LOCAL_PATH)/../android-config.mk
     66 
     67 ifneq ($(TARGET_ARCH),x86)
     68 LOCAL_NDK_VERSION := 5
     69 LOCAL_SDK_VERSION := 9
     70 endif
     71 LOCAL_SRC_FILES += $(local_src_files)
     72 LOCAL_C_INCLUDES += $(local_c_includes)
     73 LOCAL_SHARED_LIBRARIES += libcrypto
     74 LOCAL_MODULE_TAGS := optional
     75 LOCAL_MODULE:= libssl
     76 include $(BUILD_SHARED_LIBRARY)
     77 
     78 #######################################
     79 # host shared library
     80 include $(CLEAR_VARS)
     81 include $(LOCAL_PATH)/../android-config.mk
     82 LOCAL_SRC_FILES += $(local_src_files)
     83 LOCAL_C_INCLUDES += $(local_c_includes)
     84 LOCAL_SHARED_LIBRARIES += libcrypto
     85 LOCAL_MODULE_TAGS := optional
     86 LOCAL_MODULE:= libssl
     87 include $(BUILD_HOST_SHARED_LIBRARY)
     88 
     89 #######################################
     90 # ssltest
     91 include $(CLEAR_VARS)
     92 include $(LOCAL_PATH)/../android-config.mk
     93 LOCAL_SRC_FILES:= ssltest.c
     94 LOCAL_C_INCLUDES += $(local_c_includes)
     95 LOCAL_SHARED_LIBRARIES := libssl libcrypto
     96 LOCAL_MODULE:= ssltest
     97 LOCAL_MODULE_TAGS := optional
     98 include $(BUILD_EXECUTABLE)
     99