blob: 4975ab912633c4c06ee3f923e31b2381bdc82316 [file] [log] [blame]
Shikha Panwar18cafa02023-10-05 18:45:04 +00001// 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
15package {
Aditya Choudharyad2ba1b2024-02-05 15:45:22 +000016 default_team: "trendy_team_virtualization",
Shikha Panwar18cafa02023-10-05 18:45:04 +000017 default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20aidl_interface {
21 name: "android.hardware.security.secretkeeper",
22 vendor_available: true,
23 srcs: ["android/hardware/security/secretkeeper/*.aidl"],
David Drysdale8898d2e2023-11-07 15:20:15 +000024 imports: [
25 "android.hardware.security.authgraph-V1",
26 ],
Shikha Panwar18cafa02023-10-05 18:45:04 +000027 stability: "vintf",
Devin Moorea8efdb12024-02-20 17:31:40 +000028 frozen: true,
Shikha Panwar18cafa02023-10-05 18:45:04 +000029 backend: {
David Drysdale8898d2e2023-11-07 15:20:15 +000030 java: {
31 enabled: false,
32 },
Shikha Panwar18cafa02023-10-05 18:45:04 +000033 ndk: {
34 enabled: true,
35 },
36 rust: {
37 enabled: true,
38 apex_available: [
39 "//apex_available:platform",
40 "com.android.virt",
41 ],
42 },
43 },
Devin Moorea8efdb12024-02-20 17:31:40 +000044 versions_with_info: [
45 {
46 version: "1",
47 imports: ["android.hardware.security.authgraph-V1"],
48 },
49 ],
50
Shikha Panwar18cafa02023-10-05 18:45:04 +000051}
David Drysdale8898d2e2023-11-07 15:20:15 +000052
53// cc_defaults that includes the latest Secretkeeper AIDL library.
54// Modules that depend on Secretkeeper directly can include this cc_defaults to avoid
55// managing dependency versions explicitly.
56cc_defaults {
57 name: "secretkeeper_use_latest_hal_aidl_ndk_static",
58 static_libs: [
59 "android.hardware.security.secretkeeper-V1-ndk",
60 ],
61}
62
63cc_defaults {
64 name: "secretkeeper_use_latest_hal_aidl_ndk_shared",
65 shared_libs: [
66 "android.hardware.security.secretkeeper-V1-ndk",
67 ],
68}
69
70cc_defaults {
71 name: "secretkeeper_use_latest_hal_aidl_cpp_static",
72 static_libs: [
73 "android.hardware.security.secretkeeper-V1-cpp",
74 ],
75}
76
77cc_defaults {
78 name: "secretkeeper_use_latest_hal_aidl_cpp_shared",
79 shared_libs: [
80 "android.hardware.security.secretkeeper-V1-cpp",
81 ],
82}
83
84// A rust_defaults that includes the latest Secretkeeper AIDL library.
85// Modules that depend on Secretkeeper directly can include this rust_defaults to avoid
86// managing dependency versions explicitly.
87rust_defaults {
88 name: "secretkeeper_use_latest_hal_aidl_rust",
89 rustlibs: [
90 "android.hardware.security.secretkeeper-V1-rust",
91 ],
92}