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