1// 2// Copyright (C) 2019 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15 16package { 17 // See: http://go/android-license-faq 18 // A large-scale-change added 'default_applicable_licenses' to import 19 // all of the 'license_kinds' from "external_boringssl_license" 20 // to get the below license kinds: 21 // SPDX-license-identifier-Apache-2.0 22 default_applicable_licenses: ["external_boringssl_license"], 23} 24 25cc_defaults { 26 name: "boringssl_self_test_defaults", 27 compile_multilib: "both", 28 multilib: { 29 lib32: { 30 suffix: "32", 31 }, 32 lib64: { 33 suffix: "64", 34 }, 35 }, 36 shared_libs: [ 37 "libcrypto", 38 ], 39 srcs: [ 40 "boringssl_self_test.cpp", 41 ], 42} 43 44cc_binary { 45 name: "boringssl_self_test", 46 visibility: [ 47 "//art/build/sdk", 48 "//external/conscrypt", 49 "//external/conscrypt/apex", 50 "//external/conscrypt/apex/testing", 51 "//visibility:any_system_partition", 52 ], 53 defaults: ["boringssl_self_test_defaults"], 54 apex_available: [ 55 "//apex_available:platform", 56 "com.android.conscrypt", 57 ], 58 min_sdk_version: "29", 59} 60 61cc_binary { 62 name: "boringssl_self_test_vendor", 63 defaults: ["boringssl_self_test_defaults"], 64 stem: "boringssl_self_test", 65 vendor: true, 66 init_rc: ["boringssl_self_test.rc"], 67 required: [ 68 "boringssl_self_test.zygote64.rc", 69 "boringssl_self_test.zygote64_32.rc", 70 ], 71 visibility: ["//visibility:any_system_partition"], 72} 73 74prebuilt_etc { 75 name: "boringssl_self_test.zygote64_32.rc", 76 src: "boringssl_self_test.zygote64_32.rc", 77 vendor: true, 78 symlinks: [ 79 "boringssl_self_test.zygote32.rc", 80 "boringssl_self_test.no_zygote.rc", 81 ], 82} 83 84prebuilt_etc { 85 name: "boringssl_self_test.zygote64.rc", 86 src: "boringssl_self_test.zygote64.rc", 87 vendor: true, 88} 89