1 # Auto-generated - DO NOT EDIT! 2 # To regenerate, edit scrypt.config, then run: 3 # ./import_scrypt.sh import /path/to/scrypt-1.1.6.tar.gz 4 # 5 # Before including this file, the local Android.mk must define the following 6 # variables: 7 # 8 # local_c_flags 9 # local_c_includes 10 # local_additional_dependencies 11 # 12 # This script will define the following variables: 13 # 14 # target_c_flags 15 # target_c_includes 16 # target_src_files 17 # 18 # host_c_flags 19 # host_c_includes 20 # host_src_files 21 # 22 23 # Ensure these are empty. 24 unknown_arch_c_flags := 25 unknown_arch_src_files := 26 unknown_arch_exclude_files := 27 28 29 common_c_flags := 30 31 common_src_files := \ 32 lib/crypto/crypto_scrypt-ref.c \ 33 34 common_c_includes := \ 35 lib/crypto \ 36 lib/util \ 37 38 arm_c_flags := 39 40 arm_src_files := 41 42 arm_exclude_files := 43 44 arm_neon_c_flags := 45 46 arm_neon_src_files := \ 47 lib/crypto/crypto_scrypt-neon.c \ 48 49 arm_neon_exclude_files := \ 50 lib/crypto/crypto_scrypt-ref.c \ 51 52 x86_c_flags := 53 54 x86_src_files := \ 55 lib/crypto/crypto_scrypt-sse.c \ 56 57 x86_exclude_files := \ 58 lib/crypto/crypto_scrypt-ref.c \ 59 60 x86_64_c_flags := 61 62 x86_64_src_files := \ 63 lib/crypto/crypto_scrypt-sse.c \ 64 65 x86_64_exclude_files := \ 66 lib/crypto/crypto_scrypt-ref.c \ 67 68 mips_c_flags := 69 70 mips_src_files := 71 72 mips_exclude_files := 73 74 target_arch := $(TARGET_ARCH) 75 ifeq ($(target_arch)-$(TARGET_HAS_BIGENDIAN),mips-true) 76 target_arch := unknown_arch 77 endif 78 79 target_c_flags := $(common_c_flags) $($(target_arch)_c_flags) $(local_c_flags) 80 target_c_includes := $(addprefix external/scrypt/,$(common_c_includes)) $(local_c_includes) 81 target_src_files := $(common_src_files) $($(target_arch)_src_files) 82 target_src_files := $(filter-out $($(target_arch)_exclude_files), $(target_src_files)) 83 84 # Hacks for ARM NEON support 85 ifeq ($(target_arch),arm) 86 ifeq ($(ARCH_ARM_HAVE_NEON),true) 87 target_c_flags += $(arm_neon_c_flags) 88 target_src_files += $(arm_neon_src_files) 89 target_src_files := $(filter-out $(arm_neon_exclude_files), $(target_src_files)) 90 endif 91 endif 92 93 ifeq ($(HOST_OS)-$(HOST_ARCH),linux-x86) 94 host_arch := x86 95 else 96 host_arch := unknown_arch 97 endif 98 99 host_c_flags := $(common_c_flags) $($(host_arch)_c_flags) $(local_c_flags) 100 host_c_includes := $(addprefix external/scrypt/,$(common_c_includes)) $(local_c_includes) 101 host_src_files := $(common_src_files) $($(host_arch)_src_files) 102 host_src_files := $(filter-out $($(host_arch)_exclude_files), $(host_src_files)) 103 104 local_additional_dependencies += $(LOCAL_PATH)/Scrypt-config.mk 105 106