Shikha Panwar | 18cafa0 | 2023-10-05 18:45:04 +0000 | [diff] [blame] | 1 | // Copyright (C) 2023 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 | |
| 15 | package { |
Aditya Choudhary | ad2ba1b | 2024-02-05 15:45:22 +0000 | [diff] [blame] | 16 | default_team: "trendy_team_virtualization", |
Shikha Panwar | 18cafa0 | 2023-10-05 18:45:04 +0000 | [diff] [blame] | 17 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 18 | } |
| 19 | |
| 20 | aidl_interface { |
| 21 | name: "android.hardware.security.secretkeeper", |
| 22 | vendor_available: true, |
| 23 | srcs: ["android/hardware/security/secretkeeper/*.aidl"], |
David Drysdale | 8898d2e | 2023-11-07 15:20:15 +0000 | [diff] [blame] | 24 | imports: [ |
| 25 | "android.hardware.security.authgraph-V1", |
| 26 | ], |
Shikha Panwar | 18cafa0 | 2023-10-05 18:45:04 +0000 | [diff] [blame] | 27 | stability: "vintf", |
Matt Gilbride | c823233 | 2024-11-13 12:24:36 +0000 | [diff] [blame] | 28 | frozen: false, |
Shikha Panwar | 18cafa0 | 2023-10-05 18:45:04 +0000 | [diff] [blame] | 29 | backend: { |
David Drysdale | 8898d2e | 2023-11-07 15:20:15 +0000 | [diff] [blame] | 30 | java: { |
Nikolay Elenkov | 03cf716 | 2024-03-21 07:04:15 +0000 | [diff] [blame] | 31 | enabled: true, |
| 32 | platform_apis: true, |
David Drysdale | 8898d2e | 2023-11-07 15:20:15 +0000 | [diff] [blame] | 33 | }, |
Shikha Panwar | 18cafa0 | 2023-10-05 18:45:04 +0000 | [diff] [blame] | 34 | ndk: { |
| 35 | enabled: true, |
| 36 | }, |
| 37 | rust: { |
| 38 | enabled: true, |
| 39 | apex_available: [ |
| 40 | "//apex_available:platform", |
| 41 | "com.android.virt", |
| 42 | ], |
| 43 | }, |
| 44 | }, |
Devin Moore | a8efdb1 | 2024-02-20 17:31:40 +0000 | [diff] [blame] | 45 | versions_with_info: [ |
| 46 | { |
| 47 | version: "1", |
| 48 | imports: ["android.hardware.security.authgraph-V1"], |
| 49 | }, |
| 50 | ], |
| 51 | |
Shikha Panwar | 18cafa0 | 2023-10-05 18:45:04 +0000 | [diff] [blame] | 52 | } |
David Drysdale | 8898d2e | 2023-11-07 15:20:15 +0000 | [diff] [blame] | 53 | |
| 54 | // cc_defaults that includes the latest Secretkeeper AIDL library. |
| 55 | // Modules that depend on Secretkeeper directly can include this cc_defaults to avoid |
| 56 | // managing dependency versions explicitly. |
| 57 | cc_defaults { |
| 58 | name: "secretkeeper_use_latest_hal_aidl_ndk_static", |
| 59 | static_libs: [ |
| 60 | "android.hardware.security.secretkeeper-V1-ndk", |
| 61 | ], |
| 62 | } |
| 63 | |
| 64 | cc_defaults { |
| 65 | name: "secretkeeper_use_latest_hal_aidl_ndk_shared", |
| 66 | shared_libs: [ |
| 67 | "android.hardware.security.secretkeeper-V1-ndk", |
| 68 | ], |
| 69 | } |
| 70 | |
| 71 | cc_defaults { |
| 72 | name: "secretkeeper_use_latest_hal_aidl_cpp_static", |
| 73 | static_libs: [ |
| 74 | "android.hardware.security.secretkeeper-V1-cpp", |
| 75 | ], |
| 76 | } |
| 77 | |
| 78 | cc_defaults { |
| 79 | name: "secretkeeper_use_latest_hal_aidl_cpp_shared", |
| 80 | shared_libs: [ |
| 81 | "android.hardware.security.secretkeeper-V1-cpp", |
| 82 | ], |
| 83 | } |
| 84 | |
| 85 | // A rust_defaults that includes the latest Secretkeeper AIDL library. |
| 86 | // Modules that depend on Secretkeeper directly can include this rust_defaults to avoid |
| 87 | // managing dependency versions explicitly. |
| 88 | rust_defaults { |
| 89 | name: "secretkeeper_use_latest_hal_aidl_rust", |
| 90 | rustlibs: [ |
Matt Gilbride | c823233 | 2024-11-13 12:24:36 +0000 | [diff] [blame] | 91 | "android.hardware.security.secretkeeper-V2-rust", |
David Drysdale | 8898d2e | 2023-11-07 15:20:15 +0000 | [diff] [blame] | 92 | ], |
| 93 | } |