blob: e33cf26bf853a40a1406676b6226795e6d8a4c7b [file] [log] [blame]
Dees Troy4dff2e62013-11-10 04:11:43 +00001# 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.
24unknown_arch_c_flags :=
25unknown_arch_src_files :=
26unknown_arch_exclude_files :=
27
28
29common_c_flags :=
30
31common_src_files := \
32 lib/crypto/crypto_scrypt-ref.c \
33
34common_c_includes := \
35 lib/crypto \
36 lib/util \
37
38arm_c_flags :=
39
40arm_src_files :=
41
42arm_exclude_files :=
43
44arm_neon_c_flags :=
45
46arm_neon_src_files := \
47 lib/crypto/crypto_scrypt-neon.c \
48
49arm_neon_exclude_files := \
50 lib/crypto/crypto_scrypt-ref.c \
51
52x86_c_flags :=
53
54x86_src_files := \
55 lib/crypto/crypto_scrypt-sse.c \
56
57x86_exclude_files := \
58 lib/crypto/crypto_scrypt-ref.c \
59
60x86_64_c_flags :=
61
62x86_64_src_files := \
63 lib/crypto/crypto_scrypt-sse.c \
64
65x86_64_exclude_files := \
66 lib/crypto/crypto_scrypt-ref.c \
67
68mips_c_flags :=
69
70mips_src_files :=
71
72mips_exclude_files :=
73
74target_arch := $(TARGET_ARCH)
75ifeq ($(target_arch)-$(TARGET_HAS_BIGENDIAN),mips-true)
76target_arch := unknown_arch
77endif
78
79target_c_flags := $(common_c_flags) $($(target_arch)_c_flags) $(local_c_flags)
Ethan Yonker253368a2014-11-25 15:00:52 -060080target_c_includes := $(addprefix external/scrypt/,$(common_c_includes)) $(local_c_includes)
Dees Troy4dff2e62013-11-10 04:11:43 +000081target_src_files := $(common_src_files) $($(target_arch)_src_files)
82target_src_files := $(filter-out $($(target_arch)_exclude_files), $(target_src_files))
83
84# Hacks for ARM NEON support
Logan Chien597fbc02017-08-31 21:48:38 +080085ifneq (,$(filter $(target_arch), arm arm64))
Dees Troy4dff2e62013-11-10 04:11:43 +000086ifeq ($(ARCH_ARM_HAVE_NEON),true)
87target_c_flags += $(arm_neon_c_flags)
88target_src_files += $(arm_neon_src_files)
89target_src_files := $(filter-out $(arm_neon_exclude_files), $(target_src_files))
90endif
91endif
92
93ifeq ($(HOST_OS)-$(HOST_ARCH),linux-x86)
94host_arch := x86
95else
96host_arch := unknown_arch
97endif
98
99host_c_flags := $(common_c_flags) $($(host_arch)_c_flags) $(local_c_flags)
Ethan Yonker253368a2014-11-25 15:00:52 -0600100host_c_includes := $(addprefix external/scrypt/,$(common_c_includes)) $(local_c_includes)
Dees Troy4dff2e62013-11-10 04:11:43 +0000101host_src_files := $(common_src_files) $($(host_arch)_src_files)
102host_src_files := $(filter-out $($(host_arch)_exclude_files), $(host_src_files))
103
104local_additional_dependencies += $(LOCAL_PATH)/Scrypt-config.mk
105