blob: 5d713ae7d77dcd015d7f1f45cf7bbac876741358 [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,
Kiyoung Kim9e9d41d2024-03-11 13:04:36 +090031 double_loadable: true,
Devin Moore9df02452025-01-08 21:21:06 +000032 frozen: true,
Ady Abraham3192f3d2021-12-03 16:08:56 -080033 srcs: [
34 "android/hardware/graphics/composer3/*.aidl",
Ady Abraham3192f3d2021-12-03 16:08:56 -080035 ],
Ady Abrahamfd549c92021-09-04 21:58:20 -070036 stability: "vintf",
Eino-Ville Talvala50b91572024-10-16 17:48:22 -070037 defaults: [
38 "android.hardware.graphics.common-latest",
39 ],
Ady Abrahamfd549c92021-09-04 21:58:20 -070040 imports: [
Ady Abrahamfd549c92021-09-04 21:58:20 -070041 "android.hardware.common-V2",
Huihong Luo3a42a8a2023-12-13 10:07:22 -080042 "android.hardware.drm.common-V1",
Ady Abrahamfd549c92021-09-04 21:58:20 -070043 ],
44 backend: {
45 cpp: {
46 enabled: false,
47 },
48 java: {
49 sdk_version: "module_current",
50 enabled: false,
51 },
52 ndk: {
Ady Abrahamfd549c92021-09-04 21:58:20 -070053 },
Ady Abraham91181102023-07-26 19:42:08 +000054 rust: {
55 enabled: true,
56 },
Ady Abrahamfd549c92021-09-04 21:58:20 -070057 },
Jiyong Park703e9792022-03-22 14:18:48 +090058 versions_with_info: [
59 {
60 version: "1",
61 imports: [
Eino-Ville Talvala12a95752024-10-16 17:50:42 -070062 "android.hardware.graphics.common-V6",
Jiyong Park703e9792022-03-22 14:18:48 +090063 "android.hardware.common-V2",
64 ],
65 },
Alex Buynytskyyec1198d2023-04-04 19:52:27 +000066 {
67 version: "2",
68 imports: [
Eino-Ville Talvala12a95752024-10-16 17:50:42 -070069 "android.hardware.graphics.common-V6",
Alex Buynytskyyec1198d2023-04-04 19:52:27 +000070 "android.hardware.common-V2",
71 ],
72 },
Devin Moorea8efdb12024-02-20 17:31:40 +000073 {
74 version: "3",
75 imports: [
Eino-Ville Talvala12a95752024-10-16 17:50:42 -070076 "android.hardware.graphics.common-V6",
Devin Moorea8efdb12024-02-20 17:31:40 +000077 "android.hardware.common-V2",
78 ],
79 },
Devin Moore9df02452025-01-08 21:21:06 +000080 {
81 version: "4",
82 imports: [
83 "android.hardware.graphics.common-V6",
84 "android.hardware.common-V2",
85 "android.hardware.drm.common-V1",
86 ],
87 },
88
Jiyong Park703e9792022-03-22 14:18:48 +090089 ],
90
Ady Abrahamfd549c92021-09-04 21:58:20 -070091}
92
Ady Abrahamd06f0502021-09-21 16:32:07 -070093cc_library_headers {
94 name: "android.hardware.graphics.composer3-command-buffer",
Sally Qi784c2532022-08-22 13:50:32 -070095 defaults: ["android.hardware.graphics.composer3-ndk_shared"],
Ady Abrahamd06f0502021-09-21 16:32:07 -070096 vendor_available: true,
97 shared_libs: [
Ady Abraham3192f3d2021-12-03 16:08:56 -080098 "android.hardware.common-V2-ndk",
Ady Abrahamd06f0502021-09-21 16:32:07 -070099 "libbase",
100 "libfmq",
101 "libsync",
102 ],
103 static_libs: [
104 "libaidlcommonsupport",
105 ],
106 export_shared_lib_headers: [
107 "libfmq",
108 "libsync",
109 ],
110 export_include_dirs: ["include"],
111}
Ady Abrahamc4fd6332021-12-22 20:13:43 -0800112
113cc_test {
114 name: "android.hardware.graphics.composer3-hidl2aidl-asserts",
Sally Qi784c2532022-08-22 13:50:32 -0700115 defaults: ["android.hardware.graphics.composer3-ndk_shared"],
Ady Abrahamc4fd6332021-12-22 20:13:43 -0800116 vendor_available: true,
117 srcs: ["android/hardware/graphics/composer3/Hidl2AidlAsserts.cpp"],
118 shared_libs: [
119 "libbinder_ndk",
120 "libhidlbase",
Ady Abrahamc4fd6332021-12-22 20:13:43 -0800121 "android.hardware.graphics.composer@2.1",
122 "android.hardware.graphics.composer@2.4",
123 ],
124}