Shikha Panwar | a6eaf55 | 2023-10-19 16:32:40 +0000 | [diff] [blame] | 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 | |
| 17 | package { |
Aditya Choudhary | ad2ba1b | 2024-02-05 15:45:22 +0000 | [diff] [blame] | 18 | default_team: "trendy_team_virtualization", |
Shikha Panwar | a6eaf55 | 2023-10-19 16:32:40 +0000 | [diff] [blame] | 19 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 20 | } |
| 21 | |
David Drysdale | b95093d | 2024-01-11 19:26:57 +0000 | [diff] [blame] | 22 | rust_library { |
| 23 | name: "libsecretkeeper_test", |
| 24 | crate_name: "secretkeeper_test", |
| 25 | srcs: ["lib.rs"], |
| 26 | rustlibs: [ |
| 27 | "libciborium", |
| 28 | "libcoset", |
| 29 | "libdiced_open_dice", |
David Drysdale | 5f4493d | 2024-03-14 10:14:07 +0000 | [diff] [blame^] | 30 | "libhex", |
David Drysdale | b95093d | 2024-01-11 19:26:57 +0000 | [diff] [blame] | 31 | "liblog_rust", |
| 32 | "libsecretkeeper_client", |
| 33 | ], |
| 34 | } |
| 35 | |
Shikha Panwar | a6eaf55 | 2023-10-19 16:32:40 +0000 | [diff] [blame] | 36 | rust_test { |
| 37 | name: "VtsSecretkeeperTargetTest", |
| 38 | srcs: ["secretkeeper_test_client.rs"], |
David Drysdale | 099c876 | 2023-12-20 17:19:19 +0000 | [diff] [blame] | 39 | defaults: [ |
| 40 | "rdroidtest.defaults", |
| 41 | ], |
Shikha Panwar | a6eaf55 | 2023-10-19 16:32:40 +0000 | [diff] [blame] | 42 | test_suites: [ |
| 43 | "general-tests", |
| 44 | "vts", |
| 45 | ], |
David Drysdale | 3817430 | 2023-12-13 10:50:03 +0000 | [diff] [blame] | 46 | test_config: "AndroidTest.xml", |
Shikha Panwar | a6eaf55 | 2023-10-19 16:32:40 +0000 | [diff] [blame] | 47 | rustlibs: [ |
Shikha Panwar | a6eaf55 | 2023-10-19 16:32:40 +0000 | [diff] [blame] | 48 | "android.hardware.security.secretkeeper-V1-rust", |
David Drysdale | bef8d3a | 2023-11-27 14:08:42 +0000 | [diff] [blame] | 49 | "libauthgraph_boringssl", |
David Drysdale | 8898d2e | 2023-11-07 15:20:15 +0000 | [diff] [blame] | 50 | "libauthgraph_core", |
Shikha Panwar | 0d286b3 | 2024-02-22 15:50:29 +0000 | [diff] [blame] | 51 | "libauthgraph_wire", |
David Drysdale | 8898d2e | 2023-11-07 15:20:15 +0000 | [diff] [blame] | 52 | "libauthgraph_vts_test", |
Shikha Panwar | a6eaf55 | 2023-10-19 16:32:40 +0000 | [diff] [blame] | 53 | "libbinder_rs", |
Shikha Panwar | 7c53bb3 | 2024-01-03 17:58:11 +0000 | [diff] [blame] | 54 | "libciborium", |
Shikha Panwar | cbad9a3 | 2023-11-28 11:19:59 +0000 | [diff] [blame] | 55 | "libcoset", |
Shikha Panwar | 9eab79b | 2024-01-19 11:05:11 +0000 | [diff] [blame] | 56 | "libdice_policy_builder", |
Shikha Panwar | a6eaf55 | 2023-10-19 16:32:40 +0000 | [diff] [blame] | 57 | "liblog_rust", |
David Drysdale | b95093d | 2024-01-11 19:26:57 +0000 | [diff] [blame] | 58 | "libsecretkeeper_client", |
| 59 | "libsecretkeeper_comm_nostd", |
| 60 | "libsecretkeeper_core_nostd", |
| 61 | "libsecretkeeper_test", |
Shikha Panwar | a6eaf55 | 2023-10-19 16:32:40 +0000 | [diff] [blame] | 62 | ], |
| 63 | require_root: true, |
| 64 | } |
David Drysdale | b95093d | 2024-01-11 19:26:57 +0000 | [diff] [blame] | 65 | |
| 66 | rust_binary { |
| 67 | name: "secretkeeper_cli", |
| 68 | srcs: ["secretkeeper_cli.rs"], |
| 69 | lints: "android", |
| 70 | rlibs: [ |
| 71 | "android.hardware.security.secretkeeper-V1-rust", |
| 72 | "libanyhow", |
| 73 | "libauthgraph_boringssl", |
| 74 | "libauthgraph_core", |
| 75 | "libbinder_rs", |
| 76 | "libclap", |
| 77 | "libcoset", |
Shikha Panwar | 9eab79b | 2024-01-19 11:05:11 +0000 | [diff] [blame] | 78 | "libdice_policy_builder", |
David Drysdale | b95093d | 2024-01-11 19:26:57 +0000 | [diff] [blame] | 79 | "libhex", |
| 80 | "liblog_rust", |
| 81 | "libsecretkeeper_client", |
| 82 | "libsecretkeeper_comm_nostd", |
| 83 | "libsecretkeeper_test", |
| 84 | ], |
| 85 | } |