Home | History | Annotate | Download | only in openssl
      1 #######################################
      2 # target static library
      3 include $(CLEAR_VARS)
      4 LOCAL_SHARED_LIBRARIES := $(log_shared_libraries)
      5 
      6 # The static library should be used in only unbundled apps
      7 # and we don't have clang in unbundled build yet.
      8 LOCAL_SDK_VERSION := 9
      9 
     10 LOCAL_MODULE_TAGS := optional
     11 LOCAL_MODULE := libcrypto_static
     12 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/android-config.mk $(LOCAL_PATH)/Crypto.mk
     13 include $(LOCAL_PATH)/Crypto-config-target.mk
     14 include $(LOCAL_PATH)/android-config.mk
     15 
     16 # Replace cflags with static-specific cflags so we dont build in libdl deps
     17 LOCAL_CFLAGS_32 := $(openssl_cflags_static_32)
     18 LOCAL_CFLAGS_64 := $(openssl_cflags_static_64)
     19 include $(BUILD_STATIC_LIBRARY)
     20 
     21 #######################################
     22 # target shared library
     23 include $(CLEAR_VARS)
     24 LOCAL_SHARED_LIBRARIES := $(log_shared_libraries)
     25 
     26 # If we're building an unbundled build, don't try to use clang since it's not
     27 # in the NDK yet. This can be removed when a clang version that is fast enough
     28 # in the NDK.
     29 ifeq (,$(TARGET_BUILD_APPS))
     30 LOCAL_CLANG := true
     31 ifeq ($(HOST_OS), darwin)
     32 LOCAL_ASFLAGS += -no-integrated-as
     33 LOCAL_CFLAGS += -no-integrated-as
     34 endif
     35 else
     36 LOCAL_SDK_VERSION := 9
     37 endif
     38 LOCAL_LDFLAGS += -ldl
     39 
     40 LOCAL_MODULE_TAGS := optional
     41 LOCAL_MODULE := libcrypto
     42 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/android-config.mk $(LOCAL_PATH)/Crypto.mk
     43 include $(LOCAL_PATH)/Crypto-config-target.mk
     44 include $(LOCAL_PATH)/android-config.mk
     45 include $(BUILD_SHARED_LIBRARY)
     46 
     47 #######################################
     48 # host shared library
     49 include $(CLEAR_VARS)
     50 LOCAL_SHARED_LIBRARIES := $(log_shared_libraries)
     51 LOCAL_CFLAGS += -DPURIFY
     52 LOCAL_LDLIBS += -ldl
     53 LOCAL_MODULE_TAGS := optional
     54 LOCAL_MODULE := libcrypto-host
     55 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/android-config.mk $(LOCAL_PATH)/Crypto.mk
     56 LOCAL_MULTILIB := both
     57 include $(LOCAL_PATH)/Crypto-config-host.mk
     58 include $(LOCAL_PATH)/android-config.mk
     59 include $(BUILD_HOST_SHARED_LIBRARY)
     60 
     61 ########################################
     62 # host static library, which is used by some SDK tools.
     63 
     64 include $(CLEAR_VARS)
     65 LOCAL_SHARED_LIBRARIES := $(log_shared_libraries)
     66 LOCAL_CFLAGS += -DPURIFY
     67 LOCAL_LDLIBS += -ldl
     68 LOCAL_MODULE_TAGS := optional
     69 LOCAL_MODULE := libcrypto_static
     70 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/android-config.mk $(LOCAL_PATH)/Crypto.mk
     71 include $(LOCAL_PATH)/Crypto-config-host.mk
     72 include $(LOCAL_PATH)/android-config.mk
     73 include $(BUILD_HOST_STATIC_LIBRARY)
     74