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 "libexplicitkeydice", 31 "libhex", 32 "liblog_rust", 33 "libsecretkeeper_client", 34 ], 35} 36 37rust_test { 38 name: "VtsSecretkeeperTargetTest", 39 srcs: ["secretkeeper_test_client.rs"], 40 defaults: [ 41 "rdroidtest.defaults", 42 "secretkeeper_use_latest_hal_aidl_rust", 43 ], 44 test_suites: [ 45 "general-tests", 46 "vts", 47 ], 48 test_config: "AndroidTest.xml", 49 rustlibs: [ 50 "libauthgraph_boringssl", 51 "libauthgraph_core", 52 "libauthgraph_wire", 53 "libauthgraph_vts_test", 54 "libbinder_rs", 55 "libciborium", 56 "libcoset", 57 "libdice_policy_builder", 58 "libexplicitkeydice", 59 "liblog_rust", 60 "libsecretkeeper_client", 61 "libsecretkeeper_comm_nostd", 62 "libsecretkeeper_core_nostd", 63 "libsecretkeeper_test", 64 ], 65 require_root: true, 66} 67 68rust_binary { 69 name: "secretkeeper_cli", 70 srcs: ["secretkeeper_cli.rs"], 71 defaults: ["secretkeeper_use_latest_hal_aidl_rust"], 72 lints: "android", 73 prefer_rlib: true, 74 rustlibs: [ 75 "libanyhow", 76 "libauthgraph_boringssl", 77 "libauthgraph_core", 78 "libbinder_rs", 79 "libclap", 80 "libcoset", 81 "libdice_policy_builder", 82 "libexplicitkeydice", 83 "libhex", 84 "liblog_rust", 85 "libsecretkeeper_client", 86 "libsecretkeeper_comm_nostd", 87 "libsecretkeeper_test", 88 ], 89} 90