forked from dpolishuk/openssl-android
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathCrypto.mk
74 lines (61 loc) · 2.19 KB
/
Crypto.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
local_c_flags :=
local_c_includes := $(log_c_includes)
local_additional_dependencies := $(LOCAL_PATH)/android-config.mk $(LOCAL_PATH)/Crypto.mk
include $(LOCAL_PATH)/Crypto-config.mk
#######################################
# target static library
include $(CLEAR_VARS)
include $(LOCAL_PATH)/android-config.mk
LOCAL_SHARED_LIBRARIES := $(log_shared_libraries)
ifneq (,$(TARGET_BUILD_APPS))
LOCAL_SDK_VERSION := 9
endif
LOCAL_SRC_FILES += $(target_src_files)
LOCAL_CFLAGS += $(target_c_flags)
LOCAL_C_INCLUDES += $(target_c_includes)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE:= libcrypto_static
LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
include $(BUILD_STATIC_LIBRARY)
#######################################
# target shared library
include $(CLEAR_VARS)
include $(LOCAL_PATH)/android-config.mk
LOCAL_SHARED_LIBRARIES := $(log_shared_libraries)
ifneq (,$(TARGET_BUILD_APPS))
LOCAL_SDK_VERSION := 9
endif
LOCAL_LDFLAGS += -ldl
LOCAL_SRC_FILES += $(target_src_files)
LOCAL_CFLAGS += $(target_c_flags)
LOCAL_C_INCLUDES += $(target_c_includes)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE:= libcrypto
LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
include $(BUILD_SHARED_LIBRARY)
#######################################
# host shared library
#include $(CLEAR_VARS)
#include $(LOCAL_PATH)/android-config.mk
#LOCAL_SHARED_LIBRARIES := $(log_shared_libraries)
#LOCAL_SRC_FILES += $(host_src_files)
#LOCAL_CFLAGS += $(host_c_flags) -DPURIFY
#LOCAL_C_INCLUDES += $(host_c_includes)
#LOCAL_LDLIBS += -ldl
#LOCAL_MODULE_TAGS := optional
#LOCAL_MODULE:= libcrypto-host
#LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
#include $(BUILD_HOST_SHARED_LIBRARY)
########################################
# host static library, which is used by some SDK tools.
#include $(CLEAR_VARS)
#include $(LOCAL_PATH)/android-config.mk
#LOCAL_SHARED_LIBRARIES := $(log_shared_libraries)
#LOCAL_SRC_FILES += $(host_src_files)
#LOCAL_CFLAGS += $(host_c_flags) -DPURIFY
#LOCAL_C_INCLUDES += $(host_c_includes)
#LOCAL_LDLIBS += -ldl
#LOCAL_MODULE_TAGS := optional
#LOCAL_MODULE:= libcrypto_static
#LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
#include $(BUILD_HOST_STATIC_LIBRARY)