blob: 32a509269a53bb9708b50daa32d562b8f377e74f [file] [log] [blame]
Kinson Chik2cd211f2011-07-27 19:27:35 -07001LOCAL_PATH:= $(GET_LOCAL_DIR)
2
3local_c_includes := \
4 external/openssl \
5 external/openssl/include \
6 external/openssl/crypto
7
8local_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
47include $(CLEAR_VARS)
48include $(LOCAL_PATH)/../android-config.mk
49LOCAL_SRC_FILES += $(local_src_files)
50LOCAL_C_INCLUDES += $(local_c_includes)
51LOCAL_SHARED_LIBRARIES += libcrypto
52LOCAL_MODULE_TAGS := optional
53LOCAL_MODULE:= libssl
54include $(BUILD_SHARED_LIBRARY)
55
56ifeq ($(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)
65endif
66
67# ssltest
68include $(CLEAR_VARS)
69include $(LOCAL_PATH)/../android-config.mk
70LOCAL_SRC_FILES:= ssltest.c
71LOCAL_C_INCLUDES += $(local_c_includes)
72LOCAL_SHARED_LIBRARIES := libssl libcrypto
73LOCAL_MODULE:= ssltest
74LOCAL_MODULE_TAGS := optional
75include $(BUILD_EXECUTABLE)