Home | History | Annotate | Download | only in openssl
      1 local_c_flags :=
      2 
      3 local_c_includes := $(log_c_includes)
      4 
      5 local_additional_dependencies := $(LOCAL_PATH)/android-config.mk $(LOCAL_PATH)/Crypto.mk
      6 
      7 include $(LOCAL_PATH)/Crypto-config.mk
      8 
      9 #######################################
     10 # target static library
     11 include $(CLEAR_VARS)
     12 include $(LOCAL_PATH)/android-config.mk
     13 
     14 LOCAL_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.
     19 ifeq (,$(TARGET_BUILD_APPS))
     20 LOCAL_CLANG := true
     21 else
     22 LOCAL_SDK_VERSION := 9
     23 endif
     24 
     25 LOCAL_SRC_FILES += $(target_src_files)
     26 LOCAL_CFLAGS += $(target_c_flags)
     27 LOCAL_C_INCLUDES += $(target_c_includes)
     28 LOCAL_MODULE_TAGS := optional
     29 LOCAL_MODULE:= libcrypto_static
     30 LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
     31 include $(BUILD_STATIC_LIBRARY)
     32 
     33 #######################################
     34 # target shared library
     35 include $(CLEAR_VARS)
     36 include $(LOCAL_PATH)/android-config.mk
     37 
     38 LOCAL_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.
     43 ifeq (,$(TARGET_BUILD_APPS))
     44 LOCAL_CLANG := true
     45 else
     46 LOCAL_SDK_VERSION := 9
     47 endif
     48 LOCAL_LDFLAGS += -ldl
     49 
     50 LOCAL_SRC_FILES += $(target_src_files)
     51 LOCAL_CFLAGS += $(target_c_flags)
     52 LOCAL_C_INCLUDES += $(target_c_includes)
     53 LOCAL_MODULE_TAGS := optional
     54 LOCAL_MODULE:= libcrypto
     55 LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
     56 include $(BUILD_SHARED_LIBRARY)
     57 
     58 #######################################
     59 # host shared library
     60 include $(CLEAR_VARS)
     61 include $(LOCAL_PATH)/android-config.mk
     62 LOCAL_SHARED_LIBRARIES := $(log_shared_libraries)
     63 LOCAL_SRC_FILES += $(host_src_files)
     64 LOCAL_CFLAGS += $(host_c_flags) -DPURIFY
     65 LOCAL_C_INCLUDES += $(host_c_includes)
     66 LOCAL_LDLIBS += -ldl
     67 LOCAL_MODULE_TAGS := optional
     68 LOCAL_MODULE:= libcrypto-host
     69 LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
     70 include $(BUILD_HOST_SHARED_LIBRARY)
     71 
     72 ########################################
     73 # host static library, which is used by some SDK tools.
     74 
     75 include $(CLEAR_VARS)
     76 include $(LOCAL_PATH)/android-config.mk
     77 LOCAL_SHARED_LIBRARIES := $(log_shared_libraries)
     78 LOCAL_SRC_FILES += $(host_src_files)
     79 LOCAL_CFLAGS += $(host_c_flags) -DPURIFY
     80 LOCAL_C_INCLUDES += $(host_c_includes)
     81 LOCAL_LDLIBS += -ldl
     82 LOCAL_MODULE_TAGS := optional
     83 LOCAL_MODULE:= libcrypto_static
     84 LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
     85 include $(BUILD_HOST_STATIC_LIBRARY)
     86