1*cd192fa9SAndroid Build Coastguard Worker// 2*cd192fa9SAndroid Build Coastguard Worker// Copyright (C) 2017 The Android Open Source Project 3*cd192fa9SAndroid Build Coastguard Worker// 4*cd192fa9SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 5*cd192fa9SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 6*cd192fa9SAndroid Build Coastguard Worker// You may obtain a copy of the License at 7*cd192fa9SAndroid Build Coastguard Worker// 8*cd192fa9SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 9*cd192fa9SAndroid Build Coastguard Worker// 10*cd192fa9SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 11*cd192fa9SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 12*cd192fa9SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*cd192fa9SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 14*cd192fa9SAndroid Build Coastguard Worker// limitations under the License. 15*cd192fa9SAndroid Build Coastguard Worker// 16*cd192fa9SAndroid Build Coastguard Worker 17*cd192fa9SAndroid Build Coastguard Workerpackage { 18*cd192fa9SAndroid Build Coastguard Worker default_applicable_licenses: ["external_scrypt_license"], 19*cd192fa9SAndroid Build Coastguard Worker} 20*cd192fa9SAndroid Build Coastguard Worker 21*cd192fa9SAndroid Build Coastguard Worker// Added automatically by a large-scale-change that took the approach of 22*cd192fa9SAndroid Build Coastguard Worker// 'apply every license found to every target'. While this makes sure we respect 23*cd192fa9SAndroid Build Coastguard Worker// every license restriction, it may not be entirely correct. 24*cd192fa9SAndroid Build Coastguard Worker// 25*cd192fa9SAndroid Build Coastguard Worker// e.g. GPL in an MIT project might only apply to the contrib/ directory. 26*cd192fa9SAndroid Build Coastguard Worker// 27*cd192fa9SAndroid Build Coastguard Worker// Please consider splitting the single license below into multiple licenses, 28*cd192fa9SAndroid Build Coastguard Worker// taking care not to lose any license_kind information, and overriding the 29*cd192fa9SAndroid Build Coastguard Worker// default license using the 'licenses: [...]' property on targets as needed. 30*cd192fa9SAndroid Build Coastguard Worker// 31*cd192fa9SAndroid Build Coastguard Worker// For unused files, consider creating a 'filegroup' with "//visibility:private" 32*cd192fa9SAndroid Build Coastguard Worker// to attach the license to, and including a comment whether the files may be 33*cd192fa9SAndroid Build Coastguard Worker// used in the current project. 34*cd192fa9SAndroid Build Coastguard Worker// http://go/android-license-faq 35*cd192fa9SAndroid Build Coastguard Workerlicense { 36*cd192fa9SAndroid Build Coastguard Worker name: "external_scrypt_license", 37*cd192fa9SAndroid Build Coastguard Worker visibility: [":__subpackages__"], 38*cd192fa9SAndroid Build Coastguard Worker license_kinds: [ 39*cd192fa9SAndroid Build Coastguard Worker "SPDX-license-identifier-Apache-2.0", 40*cd192fa9SAndroid Build Coastguard Worker "SPDX-license-identifier-BSD", 41*cd192fa9SAndroid Build Coastguard Worker ], 42*cd192fa9SAndroid Build Coastguard Worker license_text: [ 43*cd192fa9SAndroid Build Coastguard Worker "NOTICE", 44*cd192fa9SAndroid Build Coastguard Worker ], 45*cd192fa9SAndroid Build Coastguard Worker} 46*cd192fa9SAndroid Build Coastguard Worker 47*cd192fa9SAndroid Build Coastguard Workerbuild = ["sources.bp"] 48*cd192fa9SAndroid Build Coastguard Worker 49*cd192fa9SAndroid Build Coastguard Workercc_library_static { 50*cd192fa9SAndroid Build Coastguard Worker name: "libscrypt_static", 51*cd192fa9SAndroid Build Coastguard Worker defaults: ["libscrypt_sources"], 52*cd192fa9SAndroid Build Coastguard Worker shared_libs: ["libcrypto"], 53*cd192fa9SAndroid Build Coastguard Worker sdk_version: "17", 54*cd192fa9SAndroid Build Coastguard Worker host_supported: true, 55*cd192fa9SAndroid Build Coastguard Worker vendor_available: true, 56*cd192fa9SAndroid Build Coastguard Worker target: { 57*cd192fa9SAndroid Build Coastguard Worker windows: { 58*cd192fa9SAndroid Build Coastguard Worker enabled: true, 59*cd192fa9SAndroid Build Coastguard Worker }, 60*cd192fa9SAndroid Build Coastguard Worker }, 61*cd192fa9SAndroid Build Coastguard Worker} 62*cd192fa9SAndroid Build Coastguard Worker 63*cd192fa9SAndroid Build Coastguard Workercc_test { 64*cd192fa9SAndroid Build Coastguard Worker name: "scrypt_test", 65*cd192fa9SAndroid Build Coastguard Worker srcs: ["tests/scrypt_test.cpp"], 66*cd192fa9SAndroid Build Coastguard Worker cflags: ["-Wall", "-Werror"], 67*cd192fa9SAndroid Build Coastguard Worker shared_libs: ["libcrypto"], 68*cd192fa9SAndroid Build Coastguard Worker static_libs: ["libscrypt_static"], 69*cd192fa9SAndroid Build Coastguard Worker} 70