xref: /aosp_15_r20/system/authgraph/boringssl/Android.bp (revision 4185b0660fbe514985fdcf75410317caad8afad1)
1// Copyright 2022, The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_team: "trendy_team_android_hardware_backed_security",
17    default_applicable_licenses: ["system_authgraph_license"],
18}
19
20rust_defaults {
21    name: "libauthgraph_boringssl_defaults",
22    edition: "2021",
23    lints: "android",
24    host_supported: true,
25    vendor_available: true,
26    rustlibs: [
27        "libauthgraph_core",
28        "libauthgraph_wire",
29        "libcoset",
30        "libopenssl",
31        "libzeroize",
32    ],
33}
34
35rust_library {
36    name: "libauthgraph_boringssl",
37    crate_name: "authgraph_boringssl",
38    srcs: ["src/lib.rs"],
39    defaults: [
40        "libauthgraph_boringssl_defaults",
41    ],
42}
43
44rust_test {
45    name: "libauthgraph_boringssl_test",
46    crate_name: "authgraph_boringssl_test",
47    srcs: ["src/lib.rs"],
48    defaults: [
49        "libauthgraph_boringssl_defaults",
50    ],
51    rustlibs: [
52        "libauthgraph_core_test",
53        "libhex",
54    ],
55    // Needed for the vendor test variant
56    require_root: true,
57    test_options: {
58        unit_test: true,
59    },
60}
61