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/apex",
49        "//external/conscrypt/apex/testing",
50    ],
51    defaults: ["boringssl_self_test_defaults"],
52    apex_available: [
53        "//apex_available:platform",
54        "com.android.conscrypt",
55    ],
56    min_sdk_version: "29",
57}
58
59cc_binary {
60    name: "boringssl_self_test_vendor",
61    defaults: ["boringssl_self_test_defaults"],
62    stem: "boringssl_self_test",
63    vendor: true,
64    init_rc: ["boringssl_self_test.rc"],
65}
66