• 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)/Crypto.mk
6
7include $(LOCAL_PATH)/Crypto-config.mk
8
9#######################################
10# target static library
11include $(CLEAR_VARS)
12include $(LOCAL_PATH)/android-config.mk
13
14LOCAL_SHARED_LIBRARIES := $(log_shared_libraries)
15
16# If we're building an unbundled build, don't try to use clang since it's not
17# in the NDK yet. This can be removed when a clang version that is fast enough
18# in the NDK.
19ifeq (,$(TARGET_BUILD_APPS))
20LOCAL_CLANG := true
21else
22LOCAL_SDK_VERSION := 9
23endif
24
25LOCAL_SRC_FILES += $(target_src_files)
26LOCAL_CFLAGS += $(target_c_flags)
27LOCAL_C_INCLUDES += $(target_c_includes)
28LOCAL_MODULE_TAGS := optional
29LOCAL_MODULE:= libcrypto_static
30LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
31include $(BUILD_STATIC_LIBRARY)
32
33#######################################
34# target shared library
35include $(CLEAR_VARS)
36include $(LOCAL_PATH)/android-config.mk
37
38LOCAL_SHARED_LIBRARIES := $(log_shared_libraries)
39
40# If we're building an unbundled build, don't try to use clang since it's not
41# in the NDK yet. This can be removed when a clang version that is fast enough
42# in the NDK.
43ifeq (,$(TARGET_BUILD_APPS))
44LOCAL_CLANG := true
45else
46LOCAL_SDK_VERSION := 9
47endif
48LOCAL_LDFLAGS += -ldl
49
50LOCAL_SRC_FILES += $(target_src_files)
51LOCAL_CFLAGS += $(target_c_flags)
52LOCAL_C_INCLUDES += $(target_c_includes)
53LOCAL_MODULE_TAGS := optional
54LOCAL_MODULE:= libcrypto
55LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
56include $(BUILD_SHARED_LIBRARY)
57
58#######################################
59# host shared library
60include $(CLEAR_VARS)
61include $(LOCAL_PATH)/android-config.mk
62LOCAL_SHARED_LIBRARIES := $(log_shared_libraries)
63LOCAL_SRC_FILES += $(host_src_files)
64LOCAL_CFLAGS += $(host_c_flags) -DPURIFY
65LOCAL_C_INCLUDES += $(host_c_includes)
66LOCAL_LDLIBS += -ldl
67LOCAL_MODULE_TAGS := optional
68LOCAL_MODULE:= libcrypto-host
69LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
70include $(BUILD_HOST_SHARED_LIBRARY)
71
72########################################
73# host static library, which is used by some SDK tools.
74
75include $(CLEAR_VARS)
76include $(LOCAL_PATH)/android-config.mk
77LOCAL_SHARED_LIBRARIES := $(log_shared_libraries)
78LOCAL_SRC_FILES += $(host_src_files)
79LOCAL_CFLAGS += $(host_c_flags) -DPURIFY
80LOCAL_C_INCLUDES += $(host_c_includes)
81LOCAL_LDLIBS += -ldl
82LOCAL_MODULE_TAGS := optional
83LOCAL_MODULE:= libcrypto_static
84LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
85include $(BUILD_HOST_STATIC_LIBRARY)
86