xref: /aosp_15_r20/external/scrypt/sources.bp (revision cd192fa97f712aaa0b7692ec7c6cc9c7ad6c8620)
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-unused-variable",
31    ],
32
33    export_include_dirs: [
34        "lib/crypto",
35    ],
36
37    local_include_dirs: [
38        "lib/util",
39    ],
40
41    srcs: [
42        "lib/crypto/crypto_scrypt-ref.c",
43    ],
44
45    arch: {
46        arm: {
47            srcs: [
48                "lib/crypto/crypto_scrypt-neon.c",
49            ],
50            exclude_srcs: [
51                "lib/crypto/crypto_scrypt-ref.c",
52            ],
53        },
54        arm64: {
55            srcs: [
56                "lib/crypto/crypto_scrypt-neon.c",
57            ],
58            exclude_srcs: [
59                "lib/crypto/crypto_scrypt-ref.c",
60            ],
61        },
62        x86: {
63            srcs: [
64                "lib/crypto/crypto_scrypt-sse.c",
65            ],
66            exclude_srcs: [
67                "lib/crypto/crypto_scrypt-ref.c",
68            ],
69        },
70        x86_64: {
71            srcs: [
72                "lib/crypto/crypto_scrypt-sse.c",
73            ],
74            exclude_srcs: [
75                "lib/crypto/crypto_scrypt-ref.c",
76            ],
77        },
78    },
79}
80