blob: 5e4c23e0f16131806539637bb27de176df8aa544 [file] [log] [blame]
Ady Abrahamfd549c92021-09-04 21:58:20 -07001/**
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 Badoure613d202021-10-01 13:16:29 -070017package {
Aditya Choudharyc5c6c622024-01-31 11:06:17 +000018 default_team: "trendy_team_android_core_graphics_stack",
Bob Badoure613d202021-10-01 13:16:29 -070019 // 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
Ady Abrahamfd549c92021-09-04 21:58:20 -070027aidl_interface {
28 name: "android.hardware.graphics.composer3",
29 host_supported: true,
30 vendor_available: true,
31 vndk: {
32 enabled: true,
33 support_system_process: true,
34 },
Alex Buynytskyyec1198d2023-04-04 19:52:27 +000035 frozen: true,
Steven Morelanda2fbcab2022-11-19 00:03:50 +000036 vndk_use_version: "1",
Ady Abraham3192f3d2021-12-03 16:08:56 -080037 srcs: [
38 "android/hardware/graphics/composer3/*.aidl",
Ady Abraham3192f3d2021-12-03 16:08:56 -080039 ],
Ady Abrahamfd549c92021-09-04 21:58:20 -070040 stability: "vintf",
41 imports: [
Steven Morelanded277792022-10-29 00:51:21 +000042 "android.hardware.graphics.common-V4",
Ady Abrahamfd549c92021-09-04 21:58:20 -070043 "android.hardware.common-V2",
Ady Abrahamfd549c92021-09-04 21:58:20 -070044 ],
45 backend: {
46 cpp: {
47 enabled: false,
48 },
49 java: {
50 sdk_version: "module_current",
51 enabled: false,
52 },
53 ndk: {
54 vndk: {
55 enabled: true,
56 },
57 },
58 },
Jiyong Park703e9792022-03-22 14:18:48 +090059 versions_with_info: [
60 {
61 version: "1",
62 imports: [
Steven Morelanded277792022-10-29 00:51:21 +000063 "android.hardware.graphics.common-V4",
Jiyong Park703e9792022-03-22 14:18:48 +090064 "android.hardware.common-V2",
65 ],
66 },
Alex Buynytskyyec1198d2023-04-04 19:52:27 +000067 {
68 version: "2",
69 imports: [
70 "android.hardware.graphics.common-V4",
71 "android.hardware.common-V2",
72 ],
73 },
74
Jiyong Park703e9792022-03-22 14:18:48 +090075 ],
76
Ady Abrahamfd549c92021-09-04 21:58:20 -070077}
78
Ady Abrahamd06f0502021-09-21 16:32:07 -070079cc_library_headers {
80 name: "android.hardware.graphics.composer3-command-buffer",
Sally Qi784c2532022-08-22 13:50:32 -070081 defaults: ["android.hardware.graphics.composer3-ndk_shared"],
Ady Abrahamd06f0502021-09-21 16:32:07 -070082 vendor_available: true,
83 shared_libs: [
Ady Abraham3192f3d2021-12-03 16:08:56 -080084 "android.hardware.common-V2-ndk",
Ady Abrahamd06f0502021-09-21 16:32:07 -070085 "libbase",
86 "libfmq",
87 "libsync",
88 ],
89 static_libs: [
90 "libaidlcommonsupport",
91 ],
92 export_shared_lib_headers: [
93 "libfmq",
94 "libsync",
95 ],
96 export_include_dirs: ["include"],
97}
Ady Abrahamc4fd6332021-12-22 20:13:43 -080098
99cc_test {
100 name: "android.hardware.graphics.composer3-hidl2aidl-asserts",
Sally Qi784c2532022-08-22 13:50:32 -0700101 defaults: ["android.hardware.graphics.composer3-ndk_shared"],
Ady Abrahamc4fd6332021-12-22 20:13:43 -0800102 vendor_available: true,
103 srcs: ["android/hardware/graphics/composer3/Hidl2AidlAsserts.cpp"],
104 shared_libs: [
105 "libbinder_ndk",
106 "libhidlbase",
Ady Abrahamc4fd6332021-12-22 20:13:43 -0800107 "android.hardware.graphics.composer@2.1",
108 "android.hardware.graphics.composer@2.4",
109 ],
110}