• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1local_c_flags :=
2
3local_c_includes := $(log_c_includes)
4
5local_additional_dependencies := $(LOCAL_PATH)/android-config.mk $(LOCAL_PATH)/Ssl.mk
6
7include $(LOCAL_PATH)/Ssl-config.mk
8
9#######################################
10# target static library
11include $(CLEAR_VARS)
12include $(LOCAL_PATH)/android-config.mk
13
14# If we're building an unbundled build, don't try to use clang since it's not
15# in the NDK yet. This can be removed when a clang version that is fast enough
16# in the NDK.
17ifeq (,$(TARGET_BUILD_APPS))
18LOCAL_CLANG := true
19else
20LOCAL_SDK_VERSION := 9
21endif
22
23LOCAL_SRC_FILES += $(target_src_files)
24LOCAL_CFLAGS += $(target_c_flags)
25LOCAL_C_INCLUDES += $(target_c_includes)
26LOCAL_SHARED_LIBRARIES = $(log_shared_libraries)
27LOCAL_MODULE_TAGS := optional
28LOCAL_MODULE:= libssl_static
29LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
30include $(BUILD_STATIC_LIBRARY)
31
32#######################################
33# target shared library
34include $(CLEAR_VARS)
35include $(LOCAL_PATH)/android-config.mk
36
37# If we're building an unbundled build, don't try to use clang since it's not
38# in the NDK yet. This can be removed when a clang version that is fast enough
39# in the NDK.
40ifeq (,$(TARGET_BUILD_APPS))
41LOCAL_CLANG := true
42else
43LOCAL_SDK_VERSION := 9
44endif
45
46LOCAL_SRC_FILES += $(target_src_files)
47LOCAL_CFLAGS += $(target_c_flags)
48LOCAL_C_INCLUDES += $(target_c_includes)
49LOCAL_SHARED_LIBRARIES += libcrypto $(log_shared_libraries)
50LOCAL_MODULE_TAGS := optional
51LOCAL_MODULE:= libssl
52LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
53include $(BUILD_SHARED_LIBRARY)
54
55#######################################
56# host shared library
57include $(CLEAR_VARS)
58include $(LOCAL_PATH)/android-config.mk
59LOCAL_SRC_FILES += $(host_src_files)
60LOCAL_CFLAGS += $(host_c_flags)
61LOCAL_C_INCLUDES += $(host_c_includes)
62LOCAL_SHARED_LIBRARIES += libcrypto-host $(log_shared_libraries)
63LOCAL_MODULE_TAGS := optional
64LOCAL_MODULE:= libssl-host
65LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
66include $(BUILD_HOST_SHARED_LIBRARY)
67
68#######################################
69# ssltest
70include $(CLEAR_VARS)
71include $(LOCAL_PATH)/android-config.mk
72LOCAL_SRC_FILES:= ssl/ssltest.c
73LOCAL_C_INCLUDES += $(host_c_includes)
74LOCAL_SHARED_LIBRARIES := libssl libcrypto $(log_shared_libraries)
75LOCAL_MODULE:= ssltest
76LOCAL_MODULE_TAGS := optional
77LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
78include $(BUILD_EXECUTABLE)
79