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 | |
Bob Badour | e613d20 | 2021-10-01 13:16:29 -0700 | [diff] [blame] | 17 | package { |
| 18 | // See: http://go/android-license-faq |
| 19 | // A large-scale-change added 'default_applicable_licenses' to import |
| 20 | // all of the 'license_kinds' from "hardware_interfaces_license" |
| 21 | // to get the below license kinds: |
| 22 | // SPDX-license-identifier-Apache-2.0 |
| 23 | default_applicable_licenses: ["hardware_interfaces_license"], |
| 24 | } |
| 25 | |
Ady Abraham | fd549c9 | 2021-09-04 21:58:20 -0700 | [diff] [blame] | 26 | aidl_interface { |
| 27 | name: "android.hardware.graphics.composer3", |
| 28 | host_supported: true, |
| 29 | vendor_available: true, |
| 30 | vndk: { |
| 31 | enabled: true, |
| 32 | support_system_process: true, |
| 33 | }, |
| 34 | srcs: ["android/hardware/graphics/composer3/*.aidl"], |
| 35 | stability: "vintf", |
| 36 | imports: [ |
| 37 | "android.hardware.graphics.common-V3", |
| 38 | "android.hardware.common-V2", |
| 39 | "android.hardware.common.fmq-V1", |
| 40 | ], |
| 41 | backend: { |
| 42 | cpp: { |
| 43 | enabled: false, |
| 44 | }, |
| 45 | java: { |
| 46 | sdk_version: "module_current", |
| 47 | enabled: false, |
| 48 | }, |
| 49 | ndk: { |
| 50 | vndk: { |
| 51 | enabled: true, |
| 52 | }, |
| 53 | }, |
| 54 | }, |
| 55 | } |
| 56 | |
| 57 | cc_library { |
| 58 | name: "android.hardware.graphics.composer3-translate-ndk", |
| 59 | vendor_available: true, |
| 60 | srcs: ["android/hardware/graphics/composer3/translate-ndk.cpp"], |
| 61 | shared_libs: [ |
| 62 | "libbinder_ndk", |
| 63 | "libhidlbase", |
| 64 | "android.hardware.graphics.composer3-V1-ndk", |
| 65 | "android.hardware.graphics.composer@2.1", |
| 66 | "android.hardware.graphics.composer@2.4", |
| 67 | ], |
| 68 | export_include_dirs: ["include"], |
| 69 | } |