• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
6//
7// Copyright (C) 2017 The Android Open Source Project
8//
9// Licensed under the Apache License, Version 2.0 (the "License");
10// you may not use this file except in compliance with the License.
11// You may obtain a copy of the License at
12//
13//      http://www.apache.org/licenses/LICENSE-2.0
14//
15// Unless required by applicable law or agreed to in writing, software
16// distributed under the License is distributed on an "AS IS" BASIS,
17// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18// See the License for the specific language governing permissions and
19// limitations under the License.
20//
21
22cc_defaults {
23    name: "libscrypt_sources",
24
25    cflags: [
26        "-DHAVE_CONFIG_H",
27        "-DUSE_OPENSSL_PBKDF2",
28    ],
29
30    export_include_dirs: [
31        "lib/crypto",
32    ],
33
34    local_include_dirs: [
35        "lib/util",
36    ],
37
38    srcs: [
39        "lib/crypto/crypto_scrypt-ref.c",
40    ],
41
42    arch: {
43        arm: {
44            neon: {
45                srcs: [
46                    "lib/crypto/crypto_scrypt-neon.c",
47                ],
48                exclude_srcs: [
49                    "lib/crypto/crypto_scrypt-ref.c",
50                ],
51            },
52        },
53        arm64: {
54            srcs: [
55                "lib/crypto/crypto_scrypt-neon.c",
56            ],
57            exclude_srcs: [
58                "lib/crypto/crypto_scrypt-ref.c",
59            ],
60        },
61        x86: {
62            srcs: [
63                "lib/crypto/crypto_scrypt-sse.c",
64            ],
65            exclude_srcs: [
66                "lib/crypto/crypto_scrypt-ref.c",
67            ],
68        },
69        x86_64: {
70            srcs: [
71                "lib/crypto/crypto_scrypt-sse.c",
72            ],
73            exclude_srcs: [
74                "lib/crypto/crypto_scrypt-ref.c",
75            ],
76        },
77    },
78}
79