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 15package { 16 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "hardware_interfaces_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["hardware_interfaces_license"], 22} 23 24aidl_interface { 25 name: "android.hardware.security.authgraph", 26 vendor_available: true, 27 srcs: [ 28 "android/hardware/security/authgraph/*.aidl", 29 ], 30 stability: "vintf", 31 frozen: true, 32 backend: { 33 java: { 34 platform_apis: true, 35 }, 36 ndk: { 37 enabled: true, 38 }, 39 rust: { 40 enabled: true, 41 apex_available: [ 42 "//apex_available:platform", 43 "com.android.virt", 44 ], 45 }, 46 }, 47 versions_with_info: [ 48 { 49 version: "1", 50 imports: [], 51 }, 52 ], 53 54} 55 56// cc_defaults that includes the latest Authgraph AIDL library. 57// Modules that depend on Authgraph directly can include this cc_defaults to avoid 58// managing dependency versions explicitly. 59cc_defaults { 60 name: "authgraph_use_latest_hal_aidl_ndk_static", 61 static_libs: [ 62 "android.hardware.security.authgraph-V1-ndk", 63 ], 64} 65 66cc_defaults { 67 name: "authgraph_use_latest_hal_aidl_ndk_shared", 68 shared_libs: [ 69 "android.hardware.security.authgraph-V1-ndk", 70 ], 71} 72 73cc_defaults { 74 name: "authgraph_use_latest_hal_aidl_cpp_static", 75 static_libs: [ 76 "android.hardware.security.authgraph-V1-cpp", 77 ], 78} 79 80cc_defaults { 81 name: "authgraph_use_latest_hal_aidl_cpp_shared", 82 shared_libs: [ 83 "android.hardware.security.authgraph-V1-cpp", 84 ], 85} 86 87// A rust_defaults that includes the latest Authgraph AIDL library. 88// Modules that depend on Authgraph directly can include this rust_defaults to avoid 89// managing dependency versions explicitly. 90rust_defaults { 91 name: "authgraph_use_latest_hal_aidl_rust", 92 rustlibs: [ 93 "android.hardware.security.authgraph-V1-rust", 94 ], 95} 96