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