blob: 6c4574633545547bf9962b979e77a8a01003a043 [file] [log] [blame]
Dan Willemsen3106c1c2016-10-03 23:56:51 -07001// Copyright 2010 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
Bob Badour3306e492021-02-25 15:35:37 -080014package {
15 // See: http://go/android-license-faq
16 // A large-scale-change added 'default_applicable_licenses' to import
17 // all of the 'license_kinds' from "frameworks_native_license"
18 // to get the below license kinds:
19 // SPDX-license-identifier-Apache-2.0
20 default_applicable_licenses: ["frameworks_native_license"],
John Reck38bc8a82024-02-21 17:08:27 -050021 default_team: "trendy_team_android_core_graphics_stack",
Bob Badour3306e492021-02-25 15:35:37 -080022}
23
Ady Abraham107788e2023-10-17 12:31:08 -070024aconfig_declarations {
25 name: "libgui_flags",
26 package: "com.android.graphics.libgui.flags",
Oriol Prieto Gasco33fd22e2024-02-06 18:34:41 +000027 container: "system",
Ady Abraham107788e2023-10-17 12:31:08 -070028 srcs: ["libgui_flags.aconfig"],
29}
30
31cc_aconfig_library {
32 name: "libguiflags",
33 host_supported: true,
34 vendor_available: true,
35 min_sdk_version: "29",
36 apex_available: [
37 "//apex_available:platform",
38 "com.android.media.swcodec",
39 "test_com.android.media.swcodec",
40 ],
41 aconfig_declarations: "libgui_flags",
42}
43
Jiyong Park172bd722017-06-21 12:14:18 +090044cc_library_headers {
45 name: "libgui_headers",
46 vendor_available: true,
47 export_include_dirs: ["include"],
Lajos Molnar7aa71e72019-04-01 15:34:32 -070048
49 // we must build this module to get the required header as that is generated
Marco Nelissencb04dee2019-10-28 12:55:47 -070050 export_shared_lib_headers: [
51 "android.hidl.token@1.0-utils",
52 "android.hardware.graphics.bufferqueue@1.0",
53 "android.hardware.graphics.bufferqueue@2.0",
54 ],
55 shared_libs: [
56 "android.hidl.token@1.0-utils",
57 "android.hardware.graphics.bufferqueue@1.0",
58 "android.hardware.graphics.bufferqueue@2.0",
59 ],
Ady Abraham107788e2023-10-17 12:31:08 -070060 static_libs: ["libguiflags"],
61 export_static_lib_headers: ["libguiflags"],
Jooyung Han7bcb8932020-04-16 18:48:32 +090062 min_sdk_version: "29",
Ray Essickeed53a02022-02-09 09:40:20 -080063 // TODO(b/218719284) can media use be constrained to libgui_bufferqueue_static?
64 apex_available: [
65 "//apex_available:platform",
66 "com.android.media.swcodec",
67 "test_com.android.media.swcodec",
68 ],
Jiyong Park172bd722017-06-21 12:14:18 +090069}
Dan Willemsen3106c1c2016-10-03 23:56:51 -070070
Alec Mouricdedc5d2021-03-01 22:39:55 -080071cc_library_headers {
72 name: "libgui_aidl_headers",
73 vendor_available: true,
74 static_libs: [
75 "libgui_aidl_static",
76 ],
77
78 export_static_lib_headers: [
79 "libgui_aidl_static",
80 ],
81}
82
chaviw3277faf2021-05-19 16:45:23 -050083// AIDL files that should be exposed to java
84filegroup {
85 name: "guiconstants_aidl",
86 srcs: [
Vishnu Nair9cf4a4d2021-09-17 12:16:08 -070087 "android/gui/DropInputMode.aidl",
Patrick Williams090ad062023-08-08 12:30:10 -050088 "android/gui/StalledTransactionInfo.aidl",
chaviw3277faf2021-05-19 16:45:23 -050089 "android/**/TouchOcclusionMode.aidl",
90 ],
91}
92
Vinh Tran6bd75632023-04-14 18:55:25 -040093filegroup {
94 name: "android_gui_aidl",
95 srcs: [
96 "android/gui/DisplayInfo.aidl",
97 "android/gui/FocusRequest.aidl",
98 "android/gui/InputApplicationInfo.aidl",
99 "android/gui/IWindowInfosListener.aidl",
Patrick Williamsacd22582023-07-12 13:47:28 -0500100 "android/gui/IWindowInfosPublisher.aidl",
Vinh Tran6bd75632023-04-14 18:55:25 -0400101 "android/gui/IWindowInfosReportedListener.aidl",
102 "android/gui/WindowInfo.aidl",
Patrick Williamsd828f302023-04-28 17:52:08 -0500103 "android/gui/WindowInfosUpdate.aidl",
Vinh Tran6bd75632023-04-14 18:55:25 -0400104 ],
105}
106
chaviw3277faf2021-05-19 16:45:23 -0500107cc_library_static {
108 name: "libgui_window_info_static",
109 vendor_available: true,
110 host_supported: true,
111 srcs: [
112 ":guiconstants_aidl",
Prabir Pradhande788502021-12-22 00:26:07 -0800113 ":inputconstants_aidl",
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700114 "android/gui/DisplayInfo.aidl",
chaviw3277faf2021-05-19 16:45:23 -0500115 "android/gui/FocusRequest.aidl",
116 "android/gui/InputApplicationInfo.aidl",
chaviw60c9d3e2021-06-04 12:52:17 -0500117 "android/gui/IWindowInfosListener.aidl",
Patrick Williamsacd22582023-07-12 13:47:28 -0500118 "android/gui/IWindowInfosPublisher.aidl",
chaviwbf023a62021-06-07 16:00:06 -0500119 "android/gui/IWindowInfosReportedListener.aidl",
Patrick Williamsd828f302023-04-28 17:52:08 -0500120 "android/gui/WindowInfosUpdate.aidl",
chaviw3277faf2021-05-19 16:45:23 -0500121 "android/gui/WindowInfo.aidl",
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700122 "DisplayInfo.cpp",
chaviw3277faf2021-05-19 16:45:23 -0500123 "WindowInfo.cpp",
Patrick Williamsd828f302023-04-28 17:52:08 -0500124 "WindowInfosUpdate.cpp",
chaviw3277faf2021-05-19 16:45:23 -0500125 ],
126
127 shared_libs: [
128 "libbinder",
129 ],
130
131 local_include_dirs: [
132 "include",
133 ],
134
135 export_shared_lib_headers: [
136 "libbinder",
137 ],
138
139 static_libs: [
140 "libui-types",
141 ],
142
143 aidl: {
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700144 export_aidl_headers: true,
chaviw3277faf2021-05-19 16:45:23 -0500145 },
146
147 include_dirs: [
148 "frameworks/native/include",
149 ],
Jerome Gaillardaecaf0a2021-07-08 15:34:16 +0100150
151 target: {
152 darwin: {
153 enabled: false,
154 },
155 },
chaviw3277faf2021-05-19 16:45:23 -0500156}
157
Carlos Martinez Romero682a45b2024-02-26 10:58:58 -0800158filegroup {
159 name: "libgui_extra_aidl_files",
160 srcs: [
Vinh Trancbbf3302023-05-25 09:19:56 -0400161 "android/gui/DisplayInfo.aidl",
162 "android/gui/FocusRequest.aidl",
163 "android/gui/InputApplicationInfo.aidl",
164 "android/gui/IWindowInfosListener.aidl",
Patrick Williamsacd22582023-07-12 13:47:28 -0500165 "android/gui/IWindowInfosPublisher.aidl",
Vinh Trancbbf3302023-05-25 09:19:56 -0400166 "android/gui/IWindowInfosReportedListener.aidl",
Patrick Williams090ad062023-08-08 12:30:10 -0500167 "android/gui/StalledTransactionInfo.aidl",
Vinh Trancbbf3302023-05-25 09:19:56 -0400168 "android/gui/WindowInfo.aidl",
169 "android/gui/WindowInfosUpdate.aidl",
170 ],
171}
172
Carlos Martinez Romero682a45b2024-02-26 10:58:58 -0800173filegroup {
174 name: "libgui_extra_unstructured_aidl_files",
175 srcs: [
176 "android/gui/DisplayInfo.aidl",
177 "android/gui/InputApplicationInfo.aidl",
178 "android/gui/WindowInfo.aidl",
179 "android/gui/WindowInfosUpdate.aidl",
180 ],
181}
182
183aidl_library {
184 name: "libgui_aidl_hdrs",
185 hdrs: [":libgui_extra_aidl_files"],
186}
187
188aidl_library {
189 name: "libgui_extra_unstructured_aidl_hdrs",
190 hdrs: [":libgui_extra_unstructured_aidl_files"],
191}
192
Vinh Trancbbf3302023-05-25 09:19:56 -0400193aidl_library {
Pablo Gamito6ee484d2020-07-30 14:26:28 +0000194 name: "libgui_aidl",
195 srcs: ["aidl/**/*.aidl"],
Vinh Trancbbf3302023-05-25 09:19:56 -0400196 strip_import_prefix: "aidl",
Carlos Martinez Romero682a45b2024-02-26 10:58:58 -0800197 deps: [
198 "libgui_aidl_hdrs",
199 "libgui_extra_unstructured_aidl_hdrs",
200 ],
Pablo Gamito6ee484d2020-07-30 14:26:28 +0000201}
202
Huihong Luo0a81aa32022-02-22 16:02:36 -0800203filegroup {
204 name: "libgui_frame_event_aidl",
205 srcs: ["aidl/android/gui/FrameEvent.aidl"],
206 path: "aidl/",
207}
208
Alec Mouricdedc5d2021-03-01 22:39:55 -0800209cc_library_static {
210 name: "libgui_aidl_static",
211 vendor_available: true,
Alec Mouricdedc5d2021-03-01 22:39:55 -0800212
213 shared_libs: [
214 "libbinder",
215 "libui",
216 ],
217
218 local_include_dirs: [
219 "include",
220 ],
221
Huihong Luo02186fb2022-02-23 14:21:54 -0800222 include_dirs: [
223 "frameworks/native/include",
224 ],
225
Alec Mouricdedc5d2021-03-01 22:39:55 -0800226 export_shared_lib_headers: [
227 "libbinder",
228 ],
229
chaviw3277faf2021-05-19 16:45:23 -0500230 static_libs: [
231 "libui-types",
Huihong Luo02186fb2022-02-23 14:21:54 -0800232 "libgui_window_info_static",
chaviw3277faf2021-05-19 16:45:23 -0500233 ],
234
Alec Mouricdedc5d2021-03-01 22:39:55 -0800235 aidl: {
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700236 export_aidl_headers: true,
Vinh Trancbbf3302023-05-25 09:19:56 -0400237 libs: ["libgui_aidl"],
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700238 },
Alec Mouricdedc5d2021-03-01 22:39:55 -0800239}
240
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700241filegroup {
242 name: "libgui-sources",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700243 srcs: [
Vinh Tran9ccb8dd2022-08-09 15:38:48 -0400244 ":framework_native_aidl_binder",
245 ":framework_native_aidl_gui",
Siarhei Vishniakoufc434ac2021-01-13 10:28:00 -1000246 ":inputconstants_aidl",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700247 ":libgui_bufferqueue_sources",
248
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700249 "BitTube.cpp",
Robert Carr78c25dd2019-08-15 14:10:33 -0700250 "BLASTBufferQueue.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700251 "BufferItemConsumer.cpp",
Rachel Lee273c18c2022-12-13 14:35:07 -0800252 "Choreographer.cpp",
Dominik Laskowski5a5e01e2022-07-08 07:52:44 -0700253 "CompositorTiming.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700254 "ConsumerBase.cpp",
255 "CpuConsumer.cpp",
Ady Abrahama3b08ef2019-07-15 18:43:10 -0700256 "DebugEGLImageTracker.cpp",
Alec Mouri77a53872019-10-28 16:44:36 -0700257 "DisplayEventDispatcher.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700258 "DisplayEventReceiver.cpp",
Alec Mouri0e7d8fd2023-05-03 23:58:43 +0000259 "FenceMonitor.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700260 "GLConsumer.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800261 "IConsumerListener.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800262 "IGraphicBufferConsumer.cpp",
263 "IGraphicBufferProducer.cpp",
264 "IProducerListener.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700265 "ISurfaceComposer.cpp",
Marissa Wall7a9b6ff2018-08-21 17:26:20 -0700266 "ITransactionCompletedListener.cpp",
Evan Rosky1f6d6d52018-12-06 10:47:26 -0800267 "LayerMetadata.cpp",
Chavi Weingartenc78f53c2023-04-14 18:50:53 +0000268 "LayerStatePermissions.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700269 "LayerState.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800270 "OccupancyTracker.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700271 "StreamSplitter.cpp",
chaviw0ef7caa2021-01-05 11:04:50 -0800272 "ScreenCaptureResults.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700273 "Surface.cpp",
274 "SurfaceControl.cpp",
275 "SurfaceComposerClient.cpp",
276 "SyncFeatures.cpp",
Rachel Lee18c34372022-01-20 13:57:18 -0800277 "VsyncEventData.cpp",
Mathias Agopian05debe12017-02-08 17:04:18 -0800278 "view/Surface.cpp",
chaviw60c9d3e2021-06-04 12:52:17 -0500279 "WindowInfosListenerReporter.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800280 "bufferqueue/1.0/B2HProducerListener.cpp",
281 "bufferqueue/1.0/H2BGraphicBufferProducer.cpp",
282 "bufferqueue/2.0/B2HProducerListener.cpp",
283 "bufferqueue/2.0/H2BGraphicBufferProducer.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700284 ],
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700285}
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700286
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700287cc_defaults {
288 name: "libgui-defaults",
289 defaults: ["libgui_bufferqueue-defaults"],
290 srcs: [":libgui-sources"],
291 static_libs: [
292 "libgui_aidl_static",
293 "libgui_window_info_static",
294 "libguiflags",
295 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700296 shared_libs: [
Chong Zhang62493092020-01-15 16:04:47 -0800297 "libbinder",
Liz Kammer7994df22023-05-04 12:25:58 +0000298 "libGLESv2",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700299 ],
Ady Abraham107788e2023-10-17 12:31:08 -0700300 export_static_lib_headers: [
301 "libguiflags",
302 ],
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700303}
304
305cc_library_shared {
306 name: "libgui",
307 vendor_available: true,
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700308 double_loadable: true,
309
310 defaults: [
311 "libgui-defaults",
312 ],
313
314 export_static_lib_headers: [
315 "libgui_aidl_static",
316 "libgui_window_info_static",
317 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700318
Chong Zhang62493092020-01-15 16:04:47 -0800319 export_shared_lib_headers: [
320 "libbinder",
321 ],
322
Alec Mouricdedc5d2021-03-01 22:39:55 -0800323 export_header_lib_headers: [
324 "libgui_aidl_headers",
Rachel Lee273c18c2022-12-13 14:35:07 -0800325 "jni_headers",
Alec Mouricdedc5d2021-03-01 22:39:55 -0800326 ],
327
Daichi Hironof474d3d2019-11-05 08:54:07 +0900328 aidl: {
329 export_aidl_headers: true,
Yi Kongccc1c7c2021-02-22 17:44:17 +0800330 },
331
Alec Mouricdedc5d2021-03-01 22:39:55 -0800332 header_libs: [
Rachel Lee273c18c2022-12-13 14:35:07 -0800333 "jni_headers",
Alec Mouricdedc5d2021-03-01 22:39:55 -0800334 "libdvr_headers",
335 "libgui_aidl_headers",
336 "libpdx_headers",
337 ],
338
Yi Kong7cd72c52021-12-23 15:51:29 +0800339 afdo: true,
Yi Kongb1f2d202021-02-23 17:52:42 +0800340
341 lto: {
342 thin: true,
343 },
Chavi Weingartene0237bb2023-02-06 21:48:32 +0000344
345 cflags: [
346 "-Wthread-safety",
347 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700348}
349
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700350// Used by media codec services exclusively as a static lib for
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700351// core bufferqueue support only.
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700352cc_library_static {
353 name: "libgui_bufferqueue_static",
354 vendor_available: true,
Jooyung Han54042e02020-05-13 16:04:07 +0900355 apex_available: [
356 "//apex_available:platform",
357 "com.android.media.swcodec",
358 ],
359 min_sdk_version: "29",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700360
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700361 cflags: [
Chong Zhang62493092020-01-15 16:04:47 -0800362 "-DNO_BINDER",
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700363 ],
364
365 defaults: ["libgui_bufferqueue-defaults"],
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700366
367 srcs: [
Huihong Luo02186fb2022-02-23 14:21:54 -0800368 ":libgui_frame_event_aidl",
Siarhei Vishniakoufc434ac2021-01-13 10:28:00 -1000369 ":inputconstants_aidl",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700370 ":libgui_bufferqueue_sources",
371 ],
Huihong Luo02186fb2022-02-23 14:21:54 -0800372
373 aidl: {
374 include_dirs: [
375 "frameworks/native/libs/gui",
376 ],
377 },
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700378}
379
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700380filegroup {
381 name: "libgui_bufferqueue_sources",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700382 srcs: [
Yin-Chia Yeh64ee5f52020-01-02 17:53:18 +0700383 "BatchBufferOps.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700384 "BufferItem.cpp",
385 "BufferQueue.cpp",
386 "BufferQueueConsumer.cpp",
387 "BufferQueueCore.cpp",
388 "BufferQueueProducer.cpp",
389 "BufferQueueThreadState.cpp",
390 "BufferSlot.cpp",
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700391 "FrameRateUtils.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700392 "FrameTimestamps.cpp",
393 "GLConsumerUtils.cpp",
394 "HdrMetadata.cpp",
Yin-Chia Yeh64ee5f52020-01-02 17:53:18 +0700395 "IGraphicBufferProducerFlattenables.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700396 "bufferqueue/1.0/Conversion.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700397 "bufferqueue/1.0/H2BProducerListener.cpp",
398 "bufferqueue/1.0/WProducerListener.cpp",
399 "bufferqueue/2.0/B2HGraphicBufferProducer.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700400 "bufferqueue/2.0/H2BProducerListener.cpp",
401 "bufferqueue/2.0/types.cpp",
402 ],
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700403}
404
405// Common build config shared by libgui and libgui_bufferqueue_static.
406cc_defaults {
407 name: "libgui_bufferqueue-defaults",
408
Sally Qi6920a2f2022-08-26 10:40:05 -0700409 defaults: ["android.hardware.graphics.common-ndk_shared"],
410
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700411 cflags: [
412 "-Wall",
413 "-Werror",
414 ],
415
416 cppflags: [
417 "-Wextra",
418 "-DDEBUG_ONLY_CODE=0",
419 ],
420
421 product_variables: {
422 eng: {
423 cppflags: [
424 "-UDEBUG_ONLY_CODE",
425 "-DDEBUG_ONLY_CODE=1",
426 ],
427 },
428 },
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700429
David Stevens7347f0b2020-01-15 20:19:22 +0900430 whole_static_libs: [
Trevor Radcliffeba8800d2022-07-08 17:58:06 +0000431 "libLibGuiProperties",
David Stevens7347f0b2020-01-15 20:19:22 +0900432 ],
433
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700434 shared_libs: [
435 "android.hardware.graphics.bufferqueue@1.0",
436 "android.hardware.graphics.bufferqueue@2.0",
437 "android.hardware.graphics.common@1.1",
438 "android.hardware.graphics.common@1.2",
439 "android.hidl.token@1.0-utils",
440 "libbase",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700441 "libcutils",
442 "libEGL",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700443 "libhidlbase",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700444 "liblog",
445 "libnativewindow",
446 "libsync",
447 "libui",
448 "libutils",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700449 ],
450
Steven Moreland2b3f3cd2020-01-31 14:56:45 -0800451 static_libs: [
452 "libbinderthreadstateutils",
453 ],
454
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700455 header_libs: [
456 "libgui_headers",
457 "libnativebase_headers",
458 ],
459
Ady Abraham62f216c2020-10-13 19:07:23 -0700460 include_dirs: [
461 "frameworks/native/include",
462 ],
463
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700464 export_shared_lib_headers: [
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700465 "libEGL",
466 "libnativewindow",
467 "libui",
468 "android.hardware.graphics.bufferqueue@1.0",
469 "android.hardware.graphics.bufferqueue@2.0",
470 "android.hardware.graphics.common@1.1",
471 "android.hardware.graphics.common@1.2",
472 "android.hidl.token@1.0-utils",
473 ],
474
475 export_header_lib_headers: [
476 "libgui_headers",
477 ],
478
479 export_include_dirs: [
480 "include",
481 ],
482}
483
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700484// GMocks for use by external code
485cc_library_static {
486 name: "libgui_mocks",
487 vendor_available: false,
488
489 defaults: ["libgui_bufferqueue-defaults"],
490 static_libs: [
491 "libgtest",
492 "libgmock",
Ady Abraham107788e2023-10-17 12:31:08 -0700493 "libguiflags",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700494 ],
495
496 srcs: [
Huihong Luo0a81aa32022-02-22 16:02:36 -0800497 ":libgui_frame_event_aidl",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700498 "mock/GraphicBufferConsumer.cpp",
499 "mock/GraphicBufferProducer.cpp",
500 ],
501}
502
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700503subdirs = ["tests"]