1/** 2 * Copyright (c) 2021, 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 17package { 18 default_team: "trendy_team_android_core_graphics_stack", 19 // See: http://go/android-license-faq 20 // A large-scale-change added 'default_applicable_licenses' to import 21 // all of the 'license_kinds' from "hardware_interfaces_license" 22 // to get the below license kinds: 23 // SPDX-license-identifier-Apache-2.0 24 default_applicable_licenses: ["hardware_interfaces_license"], 25} 26 27aidl_interface { 28 name: "android.hardware.graphics.composer3", 29 host_supported: true, 30 vendor_available: true, 31 double_loadable: true, 32 frozen: true, 33 srcs: [ 34 "android/hardware/graphics/composer3/*.aidl", 35 ], 36 stability: "vintf", 37 imports: [ 38 "android.hardware.graphics.common-V5", 39 "android.hardware.common-V2", 40 ], 41 backend: { 42 cpp: { 43 enabled: false, 44 }, 45 java: { 46 sdk_version: "module_current", 47 enabled: false, 48 }, 49 ndk: { 50 }, 51 rust: { 52 enabled: true, 53 }, 54 }, 55 versions_with_info: [ 56 { 57 version: "1", 58 imports: [ 59 "android.hardware.graphics.common-V5", 60 "android.hardware.common-V2", 61 ], 62 }, 63 { 64 version: "2", 65 imports: [ 66 "android.hardware.graphics.common-V5", 67 "android.hardware.common-V2", 68 ], 69 }, 70 { 71 version: "3", 72 imports: [ 73 "android.hardware.graphics.common-V5", 74 "android.hardware.common-V2", 75 ], 76 }, 77 78 ], 79 80} 81 82cc_library_headers { 83 name: "android.hardware.graphics.composer3-command-buffer", 84 defaults: ["android.hardware.graphics.composer3-ndk_shared"], 85 vendor_available: true, 86 shared_libs: [ 87 "android.hardware.common-V2-ndk", 88 "libbase", 89 "libfmq", 90 "libsync", 91 ], 92 static_libs: [ 93 "libaidlcommonsupport", 94 ], 95 export_shared_lib_headers: [ 96 "libfmq", 97 "libsync", 98 ], 99 export_include_dirs: ["include"], 100} 101 102cc_test { 103 name: "android.hardware.graphics.composer3-hidl2aidl-asserts", 104 defaults: ["android.hardware.graphics.composer3-ndk_shared"], 105 vendor_available: true, 106 srcs: ["android/hardware/graphics/composer3/Hidl2AidlAsserts.cpp"], 107 shared_libs: [ 108 "libbinder_ndk", 109 "libhidlbase", 110 "android.hardware.graphics.composer@2.1", 111 "android.hardware.graphics.composer@2.4", 112 ], 113} 114