blob: ac923ca71ebb24c976dc29354e43e999b1879921 [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 {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19aidl_interface {
20 name: "android.hardware.security.secretkeeper",
21 vendor_available: true,
22 srcs: ["android/hardware/security/secretkeeper/*.aidl"],
David Drysdale8898d2e2023-11-07 15:20:15 +000023 imports: [
24 "android.hardware.security.authgraph-V1",
25 ],
Shikha Panwar18cafa02023-10-05 18:45:04 +000026 stability: "vintf",
David Drysdale8898d2e2023-11-07 15:20:15 +000027 frozen: false,
Shikha Panwar18cafa02023-10-05 18:45:04 +000028 backend: {
David Drysdale8898d2e2023-11-07 15:20:15 +000029 java: {
30 enabled: false,
31 },
Shikha Panwar18cafa02023-10-05 18:45:04 +000032 ndk: {
33 enabled: true,
34 },
35 rust: {
36 enabled: true,
37 apex_available: [
38 "//apex_available:platform",
39 "com.android.virt",
40 ],
41 },
42 },
43}
David Drysdale8898d2e2023-11-07 15:20:15 +000044
45// cc_defaults that includes the latest Secretkeeper AIDL library.
46// Modules that depend on Secretkeeper directly can include this cc_defaults to avoid
47// managing dependency versions explicitly.
48cc_defaults {
49 name: "secretkeeper_use_latest_hal_aidl_ndk_static",
50 static_libs: [
51 "android.hardware.security.secretkeeper-V1-ndk",
52 ],
53}
54
55cc_defaults {
56 name: "secretkeeper_use_latest_hal_aidl_ndk_shared",
57 shared_libs: [
58 "android.hardware.security.secretkeeper-V1-ndk",
59 ],
60}
61
62cc_defaults {
63 name: "secretkeeper_use_latest_hal_aidl_cpp_static",
64 static_libs: [
65 "android.hardware.security.secretkeeper-V1-cpp",
66 ],
67}
68
69cc_defaults {
70 name: "secretkeeper_use_latest_hal_aidl_cpp_shared",
71 shared_libs: [
72 "android.hardware.security.secretkeeper-V1-cpp",
73 ],
74}
75
76// A rust_defaults that includes the latest Secretkeeper AIDL library.
77// Modules that depend on Secretkeeper directly can include this rust_defaults to avoid
78// managing dependency versions explicitly.
79rust_defaults {
80 name: "secretkeeper_use_latest_hal_aidl_rust",
81 rustlibs: [
82 "android.hardware.security.secretkeeper-V1-rust",
83 ],
84}