blob: 4e298800322b5369ddb524efd33b023e666e466f [file] [log] [blame]
Logan Chienee1d0142017-08-31 15:38:01 +08001// 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",
Chih-Hung Hsieh66d036e2017-09-29 10:45:56 -070028 "-Wall",
29 "-Werror",
Yi Kongbc248c02018-04-25 20:58:11 -070030 "-Wno-implicit-function-declaration",
31 "-Wno-unused-variable",
Logan Chienee1d0142017-08-31 15:38:01 +080032 ],
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 },
Logan Chien8db5d072017-08-31 21:48:38 +080057 arm64: {
58 srcs: [
59 "lib/crypto/crypto_scrypt-neon.c",
60 ],
61 exclude_srcs: [
62 "lib/crypto/crypto_scrypt-ref.c",
63 ],
64 },
Logan Chienee1d0142017-08-31 15:38:01 +080065 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}