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