blob: 2547297ff8dc0d937641059fca74c624b184bb82 [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",
Vishnu Nair9e0017e2024-05-22 19:02:44 +000090 "android/gui/TrustedOverlay.aidl",
chaviw3277faf2021-05-19 16:45:23 -050091 ],
92}
93
Vinh Tran6bd75632023-04-14 18:55:25 -040094filegroup {
95 name: "android_gui_aidl",
96 srcs: [
97 "android/gui/DisplayInfo.aidl",
98 "android/gui/FocusRequest.aidl",
99 "android/gui/InputApplicationInfo.aidl",
100 "android/gui/IWindowInfosListener.aidl",
Patrick Williamsacd22582023-07-12 13:47:28 -0500101 "android/gui/IWindowInfosPublisher.aidl",
Vinh Tran6bd75632023-04-14 18:55:25 -0400102 "android/gui/IWindowInfosReportedListener.aidl",
103 "android/gui/WindowInfo.aidl",
Patrick Williamsd828f302023-04-28 17:52:08 -0500104 "android/gui/WindowInfosUpdate.aidl",
Vinh Tran6bd75632023-04-14 18:55:25 -0400105 ],
106}
107
chaviw3277faf2021-05-19 16:45:23 -0500108cc_library_static {
109 name: "libgui_window_info_static",
110 vendor_available: true,
111 host_supported: true,
112 srcs: [
113 ":guiconstants_aidl",
Prabir Pradhande788502021-12-22 00:26:07 -0800114 ":inputconstants_aidl",
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700115 "android/gui/DisplayInfo.aidl",
chaviw3277faf2021-05-19 16:45:23 -0500116 "android/gui/FocusRequest.aidl",
117 "android/gui/InputApplicationInfo.aidl",
chaviw60c9d3e2021-06-04 12:52:17 -0500118 "android/gui/IWindowInfosListener.aidl",
Patrick Williamsacd22582023-07-12 13:47:28 -0500119 "android/gui/IWindowInfosPublisher.aidl",
chaviwbf023a62021-06-07 16:00:06 -0500120 "android/gui/IWindowInfosReportedListener.aidl",
Patrick Williamsd828f302023-04-28 17:52:08 -0500121 "android/gui/WindowInfosUpdate.aidl",
chaviw3277faf2021-05-19 16:45:23 -0500122 "android/gui/WindowInfo.aidl",
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700123 "DisplayInfo.cpp",
chaviw3277faf2021-05-19 16:45:23 -0500124 "WindowInfo.cpp",
Patrick Williamsd828f302023-04-28 17:52:08 -0500125 "WindowInfosUpdate.cpp",
chaviw3277faf2021-05-19 16:45:23 -0500126 ],
127
128 shared_libs: [
129 "libbinder",
130 ],
131
132 local_include_dirs: [
133 "include",
134 ],
135
136 export_shared_lib_headers: [
137 "libbinder",
138 ],
139
140 static_libs: [
141 "libui-types",
142 ],
143
144 aidl: {
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700145 export_aidl_headers: true,
chaviw3277faf2021-05-19 16:45:23 -0500146 },
147
148 include_dirs: [
149 "frameworks/native/include",
150 ],
Jerome Gaillardaecaf0a2021-07-08 15:34:16 +0100151
152 target: {
153 darwin: {
154 enabled: false,
155 },
156 },
chaviw3277faf2021-05-19 16:45:23 -0500157}
158
Carlos Martinez Romero682a45b2024-02-26 10:58:58 -0800159filegroup {
160 name: "libgui_extra_aidl_files",
161 srcs: [
Vinh Trancbbf3302023-05-25 09:19:56 -0400162 "android/gui/DisplayInfo.aidl",
163 "android/gui/FocusRequest.aidl",
164 "android/gui/InputApplicationInfo.aidl",
165 "android/gui/IWindowInfosListener.aidl",
Patrick Williamsacd22582023-07-12 13:47:28 -0500166 "android/gui/IWindowInfosPublisher.aidl",
Vinh Trancbbf3302023-05-25 09:19:56 -0400167 "android/gui/IWindowInfosReportedListener.aidl",
Patrick Williams090ad062023-08-08 12:30:10 -0500168 "android/gui/StalledTransactionInfo.aidl",
Vinh Trancbbf3302023-05-25 09:19:56 -0400169 "android/gui/WindowInfo.aidl",
170 "android/gui/WindowInfosUpdate.aidl",
171 ],
172}
173
Carlos Martinez Romero682a45b2024-02-26 10:58:58 -0800174filegroup {
175 name: "libgui_extra_unstructured_aidl_files",
176 srcs: [
177 "android/gui/DisplayInfo.aidl",
178 "android/gui/InputApplicationInfo.aidl",
179 "android/gui/WindowInfo.aidl",
180 "android/gui/WindowInfosUpdate.aidl",
181 ],
182}
183
184aidl_library {
185 name: "libgui_aidl_hdrs",
186 hdrs: [":libgui_extra_aidl_files"],
187}
188
189aidl_library {
190 name: "libgui_extra_unstructured_aidl_hdrs",
191 hdrs: [":libgui_extra_unstructured_aidl_files"],
192}
193
Vinh Trancbbf3302023-05-25 09:19:56 -0400194aidl_library {
Pablo Gamito6ee484d2020-07-30 14:26:28 +0000195 name: "libgui_aidl",
196 srcs: ["aidl/**/*.aidl"],
Vinh Trancbbf3302023-05-25 09:19:56 -0400197 strip_import_prefix: "aidl",
Carlos Martinez Romero682a45b2024-02-26 10:58:58 -0800198 deps: [
199 "libgui_aidl_hdrs",
200 "libgui_extra_unstructured_aidl_hdrs",
201 ],
Pablo Gamito6ee484d2020-07-30 14:26:28 +0000202}
203
Huihong Luo0a81aa32022-02-22 16:02:36 -0800204filegroup {
205 name: "libgui_frame_event_aidl",
206 srcs: ["aidl/android/gui/FrameEvent.aidl"],
207 path: "aidl/",
208}
209
Alec Mouricdedc5d2021-03-01 22:39:55 -0800210cc_library_static {
211 name: "libgui_aidl_static",
212 vendor_available: true,
Alec Mouricdedc5d2021-03-01 22:39:55 -0800213
214 shared_libs: [
215 "libbinder",
216 "libui",
217 ],
218
219 local_include_dirs: [
220 "include",
221 ],
222
Huihong Luo02186fb2022-02-23 14:21:54 -0800223 include_dirs: [
224 "frameworks/native/include",
225 ],
226
Alec Mouricdedc5d2021-03-01 22:39:55 -0800227 export_shared_lib_headers: [
228 "libbinder",
229 ],
230
chaviw3277faf2021-05-19 16:45:23 -0500231 static_libs: [
232 "libui-types",
Huihong Luo02186fb2022-02-23 14:21:54 -0800233 "libgui_window_info_static",
chaviw3277faf2021-05-19 16:45:23 -0500234 ],
235
Alec Mouricdedc5d2021-03-01 22:39:55 -0800236 aidl: {
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700237 export_aidl_headers: true,
Vinh Trancbbf3302023-05-25 09:19:56 -0400238 libs: ["libgui_aidl"],
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700239 },
Alec Mouricdedc5d2021-03-01 22:39:55 -0800240}
241
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700242filegroup {
243 name: "libgui-sources",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700244 srcs: [
Vinh Tran9ccb8dd2022-08-09 15:38:48 -0400245 ":framework_native_aidl_binder",
246 ":framework_native_aidl_gui",
Siarhei Vishniakoufc434ac2021-01-13 10:28:00 -1000247 ":inputconstants_aidl",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700248 ":libgui_bufferqueue_sources",
249
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700250 "BitTube.cpp",
Robert Carr78c25dd2019-08-15 14:10:33 -0700251 "BLASTBufferQueue.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700252 "BufferItemConsumer.cpp",
Rachel Lee273c18c2022-12-13 14:35:07 -0800253 "Choreographer.cpp",
Dominik Laskowski5a5e01e2022-07-08 07:52:44 -0700254 "CompositorTiming.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700255 "ConsumerBase.cpp",
256 "CpuConsumer.cpp",
Ady Abrahama3b08ef2019-07-15 18:43:10 -0700257 "DebugEGLImageTracker.cpp",
Alec Mouri77a53872019-10-28 16:44:36 -0700258 "DisplayEventDispatcher.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700259 "DisplayEventReceiver.cpp",
Alec Mouri0e7d8fd2023-05-03 23:58:43 +0000260 "FenceMonitor.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700261 "GLConsumer.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800262 "IConsumerListener.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800263 "IGraphicBufferConsumer.cpp",
264 "IGraphicBufferProducer.cpp",
265 "IProducerListener.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700266 "ISurfaceComposer.cpp",
Marissa Wall7a9b6ff2018-08-21 17:26:20 -0700267 "ITransactionCompletedListener.cpp",
Evan Rosky1f6d6d52018-12-06 10:47:26 -0800268 "LayerMetadata.cpp",
Chavi Weingartenc78f53c2023-04-14 18:50:53 +0000269 "LayerStatePermissions.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700270 "LayerState.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800271 "OccupancyTracker.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700272 "StreamSplitter.cpp",
chaviw0ef7caa2021-01-05 11:04:50 -0800273 "ScreenCaptureResults.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700274 "Surface.cpp",
275 "SurfaceControl.cpp",
276 "SurfaceComposerClient.cpp",
277 "SyncFeatures.cpp",
Rachel Lee18c34372022-01-20 13:57:18 -0800278 "VsyncEventData.cpp",
Mathias Agopian05debe12017-02-08 17:04:18 -0800279 "view/Surface.cpp",
chaviw60c9d3e2021-06-04 12:52:17 -0500280 "WindowInfosListenerReporter.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800281 "bufferqueue/1.0/B2HProducerListener.cpp",
282 "bufferqueue/1.0/H2BGraphicBufferProducer.cpp",
283 "bufferqueue/2.0/B2HProducerListener.cpp",
284 "bufferqueue/2.0/H2BGraphicBufferProducer.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700285 ],
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700286}
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700287
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700288cc_defaults {
289 name: "libgui-defaults",
290 defaults: ["libgui_bufferqueue-defaults"],
291 srcs: [":libgui-sources"],
292 static_libs: [
293 "libgui_aidl_static",
294 "libgui_window_info_static",
295 "libguiflags",
296 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700297 shared_libs: [
Chong Zhang62493092020-01-15 16:04:47 -0800298 "libbinder",
Liz Kammer7994df22023-05-04 12:25:58 +0000299 "libGLESv2",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700300 ],
Ady Abraham107788e2023-10-17 12:31:08 -0700301 export_static_lib_headers: [
302 "libguiflags",
303 ],
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700304}
305
306cc_library_shared {
307 name: "libgui",
308 vendor_available: true,
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700309 double_loadable: true,
310
311 defaults: [
312 "libgui-defaults",
313 ],
314
315 export_static_lib_headers: [
316 "libgui_aidl_static",
317 "libgui_window_info_static",
318 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700319
Chong Zhang62493092020-01-15 16:04:47 -0800320 export_shared_lib_headers: [
321 "libbinder",
322 ],
323
Alec Mouricdedc5d2021-03-01 22:39:55 -0800324 export_header_lib_headers: [
325 "libgui_aidl_headers",
Rachel Lee273c18c2022-12-13 14:35:07 -0800326 "jni_headers",
Alec Mouricdedc5d2021-03-01 22:39:55 -0800327 ],
328
Daichi Hironof474d3d2019-11-05 08:54:07 +0900329 aidl: {
330 export_aidl_headers: true,
Yi Kongccc1c7c2021-02-22 17:44:17 +0800331 },
332
Alec Mouricdedc5d2021-03-01 22:39:55 -0800333 header_libs: [
Rachel Lee273c18c2022-12-13 14:35:07 -0800334 "jni_headers",
Alec Mouricdedc5d2021-03-01 22:39:55 -0800335 "libdvr_headers",
336 "libgui_aidl_headers",
337 "libpdx_headers",
338 ],
339
Yi Kong7cd72c52021-12-23 15:51:29 +0800340 afdo: true,
Yi Kongb1f2d202021-02-23 17:52:42 +0800341
342 lto: {
343 thin: true,
344 },
Chavi Weingartene0237bb2023-02-06 21:48:32 +0000345
346 cflags: [
347 "-Wthread-safety",
348 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700349}
350
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700351// Used by media codec services exclusively as a static lib for
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700352// core bufferqueue support only.
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700353cc_library_static {
354 name: "libgui_bufferqueue_static",
355 vendor_available: true,
Jooyung Han54042e02020-05-13 16:04:07 +0900356 apex_available: [
357 "//apex_available:platform",
358 "com.android.media.swcodec",
359 ],
360 min_sdk_version: "29",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700361
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700362 cflags: [
Chong Zhang62493092020-01-15 16:04:47 -0800363 "-DNO_BINDER",
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700364 ],
365
366 defaults: ["libgui_bufferqueue-defaults"],
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700367
368 srcs: [
Huihong Luo02186fb2022-02-23 14:21:54 -0800369 ":libgui_frame_event_aidl",
Siarhei Vishniakoufc434ac2021-01-13 10:28:00 -1000370 ":inputconstants_aidl",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700371 ":libgui_bufferqueue_sources",
372 ],
Huihong Luo02186fb2022-02-23 14:21:54 -0800373
374 aidl: {
375 include_dirs: [
376 "frameworks/native/libs/gui",
377 ],
378 },
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700379}
380
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700381filegroup {
382 name: "libgui_bufferqueue_sources",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700383 srcs: [
Yin-Chia Yeh64ee5f52020-01-02 17:53:18 +0700384 "BatchBufferOps.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700385 "BufferItem.cpp",
386 "BufferQueue.cpp",
387 "BufferQueueConsumer.cpp",
388 "BufferQueueCore.cpp",
389 "BufferQueueProducer.cpp",
390 "BufferQueueThreadState.cpp",
391 "BufferSlot.cpp",
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700392 "FrameRateUtils.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700393 "FrameTimestamps.cpp",
394 "GLConsumerUtils.cpp",
395 "HdrMetadata.cpp",
Yin-Chia Yeh64ee5f52020-01-02 17:53:18 +0700396 "IGraphicBufferProducerFlattenables.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700397 "bufferqueue/1.0/Conversion.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700398 "bufferqueue/1.0/H2BProducerListener.cpp",
399 "bufferqueue/1.0/WProducerListener.cpp",
400 "bufferqueue/2.0/B2HGraphicBufferProducer.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700401 "bufferqueue/2.0/H2BProducerListener.cpp",
402 "bufferqueue/2.0/types.cpp",
403 ],
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700404}
405
406// Common build config shared by libgui and libgui_bufferqueue_static.
407cc_defaults {
408 name: "libgui_bufferqueue-defaults",
409
Sally Qi6920a2f2022-08-26 10:40:05 -0700410 defaults: ["android.hardware.graphics.common-ndk_shared"],
411
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700412 cflags: [
413 "-Wall",
414 "-Werror",
415 ],
416
417 cppflags: [
418 "-Wextra",
419 "-DDEBUG_ONLY_CODE=0",
420 ],
421
422 product_variables: {
423 eng: {
424 cppflags: [
425 "-UDEBUG_ONLY_CODE",
426 "-DDEBUG_ONLY_CODE=1",
427 ],
428 },
429 },
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700430
David Stevens7347f0b2020-01-15 20:19:22 +0900431 whole_static_libs: [
Trevor Radcliffeba8800d2022-07-08 17:58:06 +0000432 "libLibGuiProperties",
David Stevens7347f0b2020-01-15 20:19:22 +0900433 ],
434
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700435 shared_libs: [
436 "android.hardware.graphics.bufferqueue@1.0",
437 "android.hardware.graphics.bufferqueue@2.0",
438 "android.hardware.graphics.common@1.1",
439 "android.hardware.graphics.common@1.2",
440 "android.hidl.token@1.0-utils",
441 "libbase",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700442 "libcutils",
443 "libEGL",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700444 "libhidlbase",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700445 "liblog",
446 "libnativewindow",
447 "libsync",
448 "libui",
449 "libutils",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700450 ],
451
Steven Moreland2b3f3cd2020-01-31 14:56:45 -0800452 static_libs: [
453 "libbinderthreadstateutils",
454 ],
455
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700456 header_libs: [
457 "libgui_headers",
458 "libnativebase_headers",
459 ],
460
Ady Abraham62f216c2020-10-13 19:07:23 -0700461 include_dirs: [
462 "frameworks/native/include",
463 ],
464
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700465 export_shared_lib_headers: [
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700466 "libEGL",
467 "libnativewindow",
468 "libui",
469 "android.hardware.graphics.bufferqueue@1.0",
470 "android.hardware.graphics.bufferqueue@2.0",
471 "android.hardware.graphics.common@1.1",
472 "android.hardware.graphics.common@1.2",
473 "android.hidl.token@1.0-utils",
474 ],
475
476 export_header_lib_headers: [
477 "libgui_headers",
478 ],
479
480 export_include_dirs: [
481 "include",
482 ],
483}
484
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700485// GMocks for use by external code
486cc_library_static {
487 name: "libgui_mocks",
488 vendor_available: false,
489
490 defaults: ["libgui_bufferqueue-defaults"],
491 static_libs: [
492 "libgtest",
493 "libgmock",
Ady Abraham107788e2023-10-17 12:31:08 -0700494 "libguiflags",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700495 ],
496
497 srcs: [
Huihong Luo0a81aa32022-02-22 16:02:36 -0800498 ":libgui_frame_event_aidl",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700499 "mock/GraphicBufferConsumer.cpp",
500 "mock/GraphicBufferProducer.cpp",
501 ],
502}
503
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700504subdirs = ["tests"]