xref: /aosp_15_r20/hardware/interfaces/security/secretkeeper/aidl/vts/Android.bp (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
1/*
2 * Copyright (C) 2023 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 */
16
17package {
18    default_team: "trendy_team_virtualization",
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22rust_library {
23    name: "libsecretkeeper_test",
24    crate_name: "secretkeeper_test",
25    srcs: ["lib.rs"],
26    rustlibs: [
27        "libciborium",
28        "libcoset",
29        "libdiced_open_dice",
30        "libhex",
31        "liblog_rust",
32        "libsecretkeeper_client",
33    ],
34}
35
36rust_test {
37    name: "VtsSecretkeeperTargetTest",
38    srcs: ["secretkeeper_test_client.rs"],
39    defaults: [
40        "rdroidtest.defaults",
41        "secretkeeper_use_latest_hal_aidl_rust",
42    ],
43    test_suites: [
44        "general-tests",
45        "vts",
46    ],
47    test_config: "AndroidTest.xml",
48    rustlibs: [
49        "libauthgraph_boringssl",
50        "libauthgraph_core",
51        "libauthgraph_wire",
52        "libauthgraph_vts_test",
53        "libbinder_rs",
54        "libciborium",
55        "libcoset",
56        "libdice_policy_builder",
57        "liblog_rust",
58        "libsecretkeeper_client",
59        "libsecretkeeper_comm_nostd",
60        "libsecretkeeper_core_nostd",
61        "libsecretkeeper_test",
62    ],
63    require_root: true,
64}
65
66rust_binary {
67    name: "secretkeeper_cli",
68    srcs: ["secretkeeper_cli.rs"],
69    defaults: ["secretkeeper_use_latest_hal_aidl_rust"],
70    lints: "android",
71    prefer_rlib: true,
72    rustlibs: [
73        "libanyhow",
74        "libauthgraph_boringssl",
75        "libauthgraph_core",
76        "libbinder_rs",
77        "libclap",
78        "libcoset",
79        "libdice_policy_builder",
80        "libhex",
81        "liblog_rust",
82        "libsecretkeeper_client",
83        "libsecretkeeper_comm_nostd",
84        "libsecretkeeper_test",
85    ],
86}
87