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 srcs: [ 49 "lib/crypto/crypto_scrypt-neon.c", 50 ], 51 exclude_srcs: [ 52 "lib/crypto/crypto_scrypt-ref.c", 53 ], 54 }, 55 arm64: { 56 srcs: [ 57 "lib/crypto/crypto_scrypt-neon.c", 58 ], 59 exclude_srcs: [ 60 "lib/crypto/crypto_scrypt-ref.c", 61 ], 62 }, 63 x86: { 64 srcs: [ 65 "lib/crypto/crypto_scrypt-sse.c", 66 ], 67 exclude_srcs: [ 68 "lib/crypto/crypto_scrypt-ref.c", 69 ], 70 }, 71 x86_64: { 72 srcs: [ 73 "lib/crypto/crypto_scrypt-sse.c", 74 ], 75 exclude_srcs: [ 76 "lib/crypto/crypto_scrypt-ref.c", 77 ], 78 }, 79 }, 80} 81