Ady Abraham | fd549c9 | 2021-09-04 21:58:20 -0700 | [diff] [blame] | 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 | |
| 17 | aidl_interface { |
| 18 | name: "android.hardware.graphics.composer3", |
| 19 | host_supported: true, |
| 20 | vendor_available: true, |
| 21 | vndk: { |
| 22 | enabled: true, |
| 23 | support_system_process: true, |
| 24 | }, |
| 25 | srcs: ["android/hardware/graphics/composer3/*.aidl"], |
| 26 | stability: "vintf", |
| 27 | imports: [ |
| 28 | "android.hardware.graphics.common-V3", |
| 29 | "android.hardware.common-V2", |
| 30 | "android.hardware.common.fmq-V1", |
| 31 | ], |
| 32 | backend: { |
| 33 | cpp: { |
| 34 | enabled: false, |
| 35 | }, |
| 36 | java: { |
| 37 | sdk_version: "module_current", |
| 38 | enabled: false, |
| 39 | }, |
| 40 | ndk: { |
| 41 | vndk: { |
| 42 | enabled: true, |
| 43 | }, |
| 44 | }, |
| 45 | }, |
| 46 | } |
| 47 | |
| 48 | cc_library { |
| 49 | name: "android.hardware.graphics.composer3-translate-ndk", |
| 50 | vendor_available: true, |
| 51 | srcs: ["android/hardware/graphics/composer3/translate-ndk.cpp"], |
| 52 | shared_libs: [ |
| 53 | "libbinder_ndk", |
| 54 | "libhidlbase", |
| 55 | "android.hardware.graphics.composer3-V1-ndk", |
| 56 | "android.hardware.graphics.composer@2.1", |
| 57 | "android.hardware.graphics.composer@2.4", |
| 58 | ], |
| 59 | export_include_dirs: ["include"], |
| 60 | } |