• 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        "-Wall",
29        "-Werror",
30        "-Wno-implicit-function-declaration",
31        "-Wno-unused-variable",
32    ],
33
34    export_include_dirs: [
35        "lib/crypto",
36    ],
37
38    local_include_dirs: [
39        "lib/util",
40    ],
41
42    srcs: [
43        "lib/crypto/crypto_scrypt-ref.c",
44    ],
45
46    arch: {
47        arm: {
48            neon: {
49                srcs: [
50                    "lib/crypto/crypto_scrypt-neon.c",
51                ],
52                exclude_srcs: [
53                    "lib/crypto/crypto_scrypt-ref.c",
54                ],
55            },
56        },
57        arm64: {
58            srcs: [
59                "lib/crypto/crypto_scrypt-neon.c",
60            ],
61            exclude_srcs: [
62                "lib/crypto/crypto_scrypt-ref.c",
63            ],
64        },
65        x86: {
66            srcs: [
67                "lib/crypto/crypto_scrypt-sse.c",
68            ],
69            exclude_srcs: [
70                "lib/crypto/crypto_scrypt-ref.c",
71            ],
72        },
73        x86_64: {
74            srcs: [
75                "lib/crypto/crypto_scrypt-sse.c",
76            ],
77            exclude_srcs: [
78                "lib/crypto/crypto_scrypt-ref.c",
79            ],
80        },
81    },
82}
83