blob: bd6324a6a2667e74365b022f4a601b92bc1ce6f7 [file] [log] [blame]
Kenny Roote4706372013-06-11 17:24:36 -07001local_c_flags := -DUSE_OPENSSL_PBKDF2
Kenny Root5fd6d312013-06-11 16:36:54 -07002
Adam Langley49275762015-01-22 17:10:41 -08003local_c_includes := $(log_c_includes)
Kenny Root5fd6d312013-06-11 16:36:54 -07004
5local_additional_dependencies := $(LOCAL_PATH)/android-config.mk $(LOCAL_PATH)/Scrypt.mk
6
7include $(LOCAL_PATH)/Scrypt-config.mk
8
9#######################################
10# target static library
11include $(CLEAR_VARS)
12include $(LOCAL_PATH)/android-config.mk
13
Adam Langley49275762015-01-22 17:10:41 -080014LOCAL_SHARED_LIBRARIES := $(log_shared_libraries) libcrypto
Kenny Root5fd6d312013-06-11 16:36:54 -070015
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:= libscrypt_static
30LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
31include $(BUILD_STATIC_LIBRARY)
32
33########################################
34# host static library
35
36include $(CLEAR_VARS)
37include $(LOCAL_PATH)/android-config.mk
Adam Langley49275762015-01-22 17:10:41 -080038LOCAL_SHARED_LIBRARIES := $(log_shared_libraries) libcrypto-host
Kenny Root5fd6d312013-06-11 16:36:54 -070039LOCAL_SRC_FILES += $(host_src_files)
40LOCAL_CFLAGS += $(host_c_flags)
41LOCAL_C_INCLUDES += $(host_c_includes)
42LOCAL_LDLIBS += -ldl
43LOCAL_MODULE_TAGS := optional
44LOCAL_MODULE:= libscrypt_static
45LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies)
46include $(BUILD_HOST_STATIC_LIBRARY)