blob: 158c54886d6d208a2cebb2e0bcbc1770391a9b5a [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
Ady Abraham1d0cae92024-06-14 13:41:12 -070044cc_aconfig_library {
45 name: "libguiflags_no_apex",
46 aconfig_declarations: "libgui_flags",
47}
48
Jiyong Park172bd722017-06-21 12:14:18 +090049cc_library_headers {
50 name: "libgui_headers",
51 vendor_available: true,
52 export_include_dirs: ["include"],
Lajos Molnar7aa71e72019-04-01 15:34:32 -070053
54 // we must build this module to get the required header as that is generated
Marco Nelissencb04dee2019-10-28 12:55:47 -070055 export_shared_lib_headers: [
56 "android.hidl.token@1.0-utils",
57 "android.hardware.graphics.bufferqueue@1.0",
58 "android.hardware.graphics.bufferqueue@2.0",
59 ],
60 shared_libs: [
61 "android.hidl.token@1.0-utils",
62 "android.hardware.graphics.bufferqueue@1.0",
63 "android.hardware.graphics.bufferqueue@2.0",
64 ],
Ady Abraham107788e2023-10-17 12:31:08 -070065 static_libs: ["libguiflags"],
66 export_static_lib_headers: ["libguiflags"],
Jooyung Han7bcb8932020-04-16 18:48:32 +090067 min_sdk_version: "29",
Ray Essickeed53a02022-02-09 09:40:20 -080068 // TODO(b/218719284) can media use be constrained to libgui_bufferqueue_static?
69 apex_available: [
70 "//apex_available:platform",
71 "com.android.media.swcodec",
72 "test_com.android.media.swcodec",
73 ],
Jiyong Park172bd722017-06-21 12:14:18 +090074}
Dan Willemsen3106c1c2016-10-03 23:56:51 -070075
Alec Mouricdedc5d2021-03-01 22:39:55 -080076cc_library_headers {
77 name: "libgui_aidl_headers",
78 vendor_available: true,
79 static_libs: [
80 "libgui_aidl_static",
81 ],
82
83 export_static_lib_headers: [
84 "libgui_aidl_static",
85 ],
86}
87
chaviw3277faf2021-05-19 16:45:23 -050088// AIDL files that should be exposed to java
89filegroup {
90 name: "guiconstants_aidl",
91 srcs: [
Vishnu Nair9cf4a4d2021-09-17 12:16:08 -070092 "android/gui/DropInputMode.aidl",
Patrick Williams090ad062023-08-08 12:30:10 -050093 "android/gui/StalledTransactionInfo.aidl",
chaviw3277faf2021-05-19 16:45:23 -050094 "android/**/TouchOcclusionMode.aidl",
Vishnu Nair9e0017e2024-05-22 19:02:44 +000095 "android/gui/TrustedOverlay.aidl",
chaviw3277faf2021-05-19 16:45:23 -050096 ],
97}
98
Vinh Tran6bd75632023-04-14 18:55:25 -040099filegroup {
100 name: "android_gui_aidl",
101 srcs: [
102 "android/gui/DisplayInfo.aidl",
103 "android/gui/FocusRequest.aidl",
104 "android/gui/InputApplicationInfo.aidl",
105 "android/gui/IWindowInfosListener.aidl",
Patrick Williamsacd22582023-07-12 13:47:28 -0500106 "android/gui/IWindowInfosPublisher.aidl",
Vinh Tran6bd75632023-04-14 18:55:25 -0400107 "android/gui/IWindowInfosReportedListener.aidl",
108 "android/gui/WindowInfo.aidl",
Patrick Williamsd828f302023-04-28 17:52:08 -0500109 "android/gui/WindowInfosUpdate.aidl",
Vinh Tran6bd75632023-04-14 18:55:25 -0400110 ],
111}
112
chaviw3277faf2021-05-19 16:45:23 -0500113cc_library_static {
114 name: "libgui_window_info_static",
115 vendor_available: true,
116 host_supported: true,
117 srcs: [
118 ":guiconstants_aidl",
Prabir Pradhande788502021-12-22 00:26:07 -0800119 ":inputconstants_aidl",
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700120 "android/gui/DisplayInfo.aidl",
chaviw3277faf2021-05-19 16:45:23 -0500121 "android/gui/FocusRequest.aidl",
122 "android/gui/InputApplicationInfo.aidl",
chaviw60c9d3e2021-06-04 12:52:17 -0500123 "android/gui/IWindowInfosListener.aidl",
Patrick Williamsacd22582023-07-12 13:47:28 -0500124 "android/gui/IWindowInfosPublisher.aidl",
chaviwbf023a62021-06-07 16:00:06 -0500125 "android/gui/IWindowInfosReportedListener.aidl",
Patrick Williamsd828f302023-04-28 17:52:08 -0500126 "android/gui/WindowInfosUpdate.aidl",
chaviw3277faf2021-05-19 16:45:23 -0500127 "android/gui/WindowInfo.aidl",
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700128 "DisplayInfo.cpp",
chaviw3277faf2021-05-19 16:45:23 -0500129 "WindowInfo.cpp",
Patrick Williamsd828f302023-04-28 17:52:08 -0500130 "WindowInfosUpdate.cpp",
chaviw3277faf2021-05-19 16:45:23 -0500131 ],
132
133 shared_libs: [
134 "libbinder",
135 ],
136
137 local_include_dirs: [
138 "include",
139 ],
140
141 export_shared_lib_headers: [
142 "libbinder",
143 ],
144
145 static_libs: [
146 "libui-types",
147 ],
148
149 aidl: {
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700150 export_aidl_headers: true,
chaviw3277faf2021-05-19 16:45:23 -0500151 },
152
153 include_dirs: [
154 "frameworks/native/include",
155 ],
Jerome Gaillardaecaf0a2021-07-08 15:34:16 +0100156
157 target: {
158 darwin: {
159 enabled: false,
160 },
161 },
chaviw3277faf2021-05-19 16:45:23 -0500162}
163
Carlos Martinez Romero682a45b2024-02-26 10:58:58 -0800164filegroup {
165 name: "libgui_extra_aidl_files",
166 srcs: [
Vinh Trancbbf3302023-05-25 09:19:56 -0400167 "android/gui/DisplayInfo.aidl",
168 "android/gui/FocusRequest.aidl",
169 "android/gui/InputApplicationInfo.aidl",
170 "android/gui/IWindowInfosListener.aidl",
Patrick Williamsacd22582023-07-12 13:47:28 -0500171 "android/gui/IWindowInfosPublisher.aidl",
Vinh Trancbbf3302023-05-25 09:19:56 -0400172 "android/gui/IWindowInfosReportedListener.aidl",
Patrick Williams090ad062023-08-08 12:30:10 -0500173 "android/gui/StalledTransactionInfo.aidl",
Vinh Trancbbf3302023-05-25 09:19:56 -0400174 "android/gui/WindowInfo.aidl",
175 "android/gui/WindowInfosUpdate.aidl",
176 ],
177}
178
Carlos Martinez Romero682a45b2024-02-26 10:58:58 -0800179filegroup {
180 name: "libgui_extra_unstructured_aidl_files",
181 srcs: [
182 "android/gui/DisplayInfo.aidl",
183 "android/gui/InputApplicationInfo.aidl",
184 "android/gui/WindowInfo.aidl",
185 "android/gui/WindowInfosUpdate.aidl",
186 ],
187}
188
189aidl_library {
190 name: "libgui_aidl_hdrs",
191 hdrs: [":libgui_extra_aidl_files"],
192}
193
194aidl_library {
195 name: "libgui_extra_unstructured_aidl_hdrs",
196 hdrs: [":libgui_extra_unstructured_aidl_files"],
197}
198
Vinh Trancbbf3302023-05-25 09:19:56 -0400199aidl_library {
Pablo Gamito6ee484d2020-07-30 14:26:28 +0000200 name: "libgui_aidl",
201 srcs: ["aidl/**/*.aidl"],
Vinh Trancbbf3302023-05-25 09:19:56 -0400202 strip_import_prefix: "aidl",
Carlos Martinez Romero682a45b2024-02-26 10:58:58 -0800203 deps: [
204 "libgui_aidl_hdrs",
205 "libgui_extra_unstructured_aidl_hdrs",
206 ],
Pablo Gamito6ee484d2020-07-30 14:26:28 +0000207}
208
Huihong Luo0a81aa32022-02-22 16:02:36 -0800209filegroup {
210 name: "libgui_frame_event_aidl",
211 srcs: ["aidl/android/gui/FrameEvent.aidl"],
212 path: "aidl/",
213}
214
Alec Mouricdedc5d2021-03-01 22:39:55 -0800215cc_library_static {
216 name: "libgui_aidl_static",
217 vendor_available: true,
Alec Mouricdedc5d2021-03-01 22:39:55 -0800218
219 shared_libs: [
220 "libbinder",
221 "libui",
222 ],
223
224 local_include_dirs: [
225 "include",
226 ],
227
Huihong Luo02186fb2022-02-23 14:21:54 -0800228 include_dirs: [
229 "frameworks/native/include",
230 ],
231
Alec Mouricdedc5d2021-03-01 22:39:55 -0800232 export_shared_lib_headers: [
233 "libbinder",
234 ],
235
chaviw3277faf2021-05-19 16:45:23 -0500236 static_libs: [
237 "libui-types",
Huihong Luo02186fb2022-02-23 14:21:54 -0800238 "libgui_window_info_static",
chaviw3277faf2021-05-19 16:45:23 -0500239 ],
240
Alec Mouricdedc5d2021-03-01 22:39:55 -0800241 aidl: {
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700242 export_aidl_headers: true,
Vinh Trancbbf3302023-05-25 09:19:56 -0400243 libs: ["libgui_aidl"],
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700244 },
Alec Mouricdedc5d2021-03-01 22:39:55 -0800245}
246
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700247filegroup {
248 name: "libgui-sources",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700249 srcs: [
Vinh Tran9ccb8dd2022-08-09 15:38:48 -0400250 ":framework_native_aidl_binder",
251 ":framework_native_aidl_gui",
Siarhei Vishniakoufc434ac2021-01-13 10:28:00 -1000252 ":inputconstants_aidl",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700253 ":libgui_bufferqueue_sources",
254
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700255 "BitTube.cpp",
Robert Carr78c25dd2019-08-15 14:10:33 -0700256 "BLASTBufferQueue.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700257 "BufferItemConsumer.cpp",
Patrick Williamsf693bcf2024-08-02 09:55:23 -0500258 "BufferReleaseChannel.cpp",
Rachel Lee273c18c2022-12-13 14:35:07 -0800259 "Choreographer.cpp",
Dominik Laskowski5a5e01e2022-07-08 07:52:44 -0700260 "CompositorTiming.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700261 "ConsumerBase.cpp",
262 "CpuConsumer.cpp",
Ady Abrahama3b08ef2019-07-15 18:43:10 -0700263 "DebugEGLImageTracker.cpp",
Alec Mouri77a53872019-10-28 16:44:36 -0700264 "DisplayEventDispatcher.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700265 "DisplayEventReceiver.cpp",
Alec Mouri0e7d8fd2023-05-03 23:58:43 +0000266 "FenceMonitor.cpp",
Carlos Martinez Romero0cc2e2c2024-10-14 10:16:56 -0700267 "Flags.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700268 "GLConsumer.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800269 "IGraphicBufferProducer.cpp",
270 "IProducerListener.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700271 "ISurfaceComposer.cpp",
Marissa Wall7a9b6ff2018-08-21 17:26:20 -0700272 "ITransactionCompletedListener.cpp",
Evan Rosky1f6d6d52018-12-06 10:47:26 -0800273 "LayerMetadata.cpp",
Chavi Weingartenc78f53c2023-04-14 18:50:53 +0000274 "LayerStatePermissions.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700275 "LayerState.cpp",
Sally Qief006582024-10-11 13:23:09 -0700276 "DisplayLuts.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800277 "OccupancyTracker.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700278 "StreamSplitter.cpp",
chaviw0ef7caa2021-01-05 11:04:50 -0800279 "ScreenCaptureResults.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700280 "Surface.cpp",
281 "SurfaceControl.cpp",
282 "SurfaceComposerClient.cpp",
283 "SyncFeatures.cpp",
Anton Ivanov15bfd3d2025-03-03 17:54:37 -0800284 "TransactionState.cpp",
Rachel Lee18c34372022-01-20 13:57:18 -0800285 "VsyncEventData.cpp",
Mathias Agopian05debe12017-02-08 17:04:18 -0800286 "view/Surface.cpp",
chaviw60c9d3e2021-06-04 12:52:17 -0500287 "WindowInfosListenerReporter.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800288 "bufferqueue/1.0/B2HProducerListener.cpp",
289 "bufferqueue/1.0/H2BGraphicBufferProducer.cpp",
290 "bufferqueue/2.0/B2HProducerListener.cpp",
291 "bufferqueue/2.0/H2BGraphicBufferProducer.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700292 ],
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700293}
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700294
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700295cc_defaults {
296 name: "libgui-defaults",
297 defaults: ["libgui_bufferqueue-defaults"],
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700298 static_libs: [
299 "libgui_aidl_static",
300 "libgui_window_info_static",
301 "libguiflags",
302 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700303 shared_libs: [
Chong Zhang62493092020-01-15 16:04:47 -0800304 "libbinder",
Liz Kammer7994df22023-05-04 12:25:58 +0000305 "libGLESv2",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700306 ],
Ady Abraham107788e2023-10-17 12:31:08 -0700307 export_static_lib_headers: [
308 "libguiflags",
309 ],
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700310}
311
312cc_library_shared {
313 name: "libgui",
314 vendor_available: true,
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700315 double_loadable: true,
316
317 defaults: [
318 "libgui-defaults",
319 ],
320
Anton Ivanov6bcd4112025-03-12 10:42:34 -0700321 srcs: [
322 ":libgui-sources",
323 ],
324
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700325 export_static_lib_headers: [
326 "libgui_aidl_static",
327 "libgui_window_info_static",
328 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700329
Chong Zhang62493092020-01-15 16:04:47 -0800330 export_shared_lib_headers: [
331 "libbinder",
332 ],
333
Alec Mouricdedc5d2021-03-01 22:39:55 -0800334 export_header_lib_headers: [
335 "libgui_aidl_headers",
Rachel Lee273c18c2022-12-13 14:35:07 -0800336 "jni_headers",
Alec Mouricdedc5d2021-03-01 22:39:55 -0800337 ],
338
Daichi Hironof474d3d2019-11-05 08:54:07 +0900339 aidl: {
340 export_aidl_headers: true,
Yi Kongccc1c7c2021-02-22 17:44:17 +0800341 },
342
Alec Mouricdedc5d2021-03-01 22:39:55 -0800343 header_libs: [
Rachel Lee273c18c2022-12-13 14:35:07 -0800344 "jni_headers",
Alec Mouricdedc5d2021-03-01 22:39:55 -0800345 "libgui_aidl_headers",
Alec Mouricdedc5d2021-03-01 22:39:55 -0800346 ],
347
Brian Lindahle2ca80b2024-11-01 18:43:11 -0600348 static_libs: [
349 "libsurfaceflingerflags",
350 ],
351
Yi Kong7cd72c52021-12-23 15:51:29 +0800352 afdo: true,
Yi Kongb1f2d202021-02-23 17:52:42 +0800353
354 lto: {
355 thin: true,
356 },
Chavi Weingartene0237bb2023-02-06 21:48:32 +0000357
358 cflags: [
359 "-Wthread-safety",
360 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700361}
362
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700363// Used by media codec services exclusively as a static lib for
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700364// core bufferqueue support only.
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700365cc_library_static {
366 name: "libgui_bufferqueue_static",
367 vendor_available: true,
Jooyung Han54042e02020-05-13 16:04:07 +0900368 apex_available: [
369 "//apex_available:platform",
370 "com.android.media.swcodec",
371 ],
372 min_sdk_version: "29",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700373
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700374 cflags: [
Chong Zhang62493092020-01-15 16:04:47 -0800375 "-DNO_BINDER",
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700376 ],
377
378 defaults: ["libgui_bufferqueue-defaults"],
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700379
380 srcs: [
Huihong Luo02186fb2022-02-23 14:21:54 -0800381 ":libgui_frame_event_aidl",
Siarhei Vishniakoufc434ac2021-01-13 10:28:00 -1000382 ":inputconstants_aidl",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700383 ":libgui_bufferqueue_sources",
384 ],
Huihong Luo02186fb2022-02-23 14:21:54 -0800385
386 aidl: {
387 include_dirs: [
388 "frameworks/native/libs/gui",
389 ],
390 },
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700391}
392
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700393filegroup {
394 name: "libgui_bufferqueue_sources",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700395 srcs: [
Yin-Chia Yeh64ee5f52020-01-02 17:53:18 +0700396 "BatchBufferOps.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700397 "BufferItem.cpp",
398 "BufferQueue.cpp",
399 "BufferQueueConsumer.cpp",
400 "BufferQueueCore.cpp",
401 "BufferQueueProducer.cpp",
402 "BufferQueueThreadState.cpp",
403 "BufferSlot.cpp",
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700404 "FrameRateUtils.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700405 "FrameTimestamps.cpp",
406 "GLConsumerUtils.cpp",
407 "HdrMetadata.cpp",
Yin-Chia Yeh64ee5f52020-01-02 17:53:18 +0700408 "IGraphicBufferProducerFlattenables.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700409 "bufferqueue/1.0/Conversion.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700410 "bufferqueue/1.0/H2BProducerListener.cpp",
411 "bufferqueue/1.0/WProducerListener.cpp",
412 "bufferqueue/2.0/B2HGraphicBufferProducer.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700413 "bufferqueue/2.0/H2BProducerListener.cpp",
414 "bufferqueue/2.0/types.cpp",
415 ],
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700416}
417
418// Common build config shared by libgui and libgui_bufferqueue_static.
419cc_defaults {
420 name: "libgui_bufferqueue-defaults",
421
Sally Qi6920a2f2022-08-26 10:40:05 -0700422 defaults: ["android.hardware.graphics.common-ndk_shared"],
423
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700424 cflags: [
425 "-Wall",
426 "-Werror",
427 ],
428
429 cppflags: [
430 "-Wextra",
431 "-DDEBUG_ONLY_CODE=0",
432 ],
433
434 product_variables: {
435 eng: {
436 cppflags: [
437 "-UDEBUG_ONLY_CODE",
438 "-DDEBUG_ONLY_CODE=1",
439 ],
440 },
441 },
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700442
David Stevens7347f0b2020-01-15 20:19:22 +0900443 whole_static_libs: [
Trevor Radcliffeba8800d2022-07-08 17:58:06 +0000444 "libLibGuiProperties",
David Stevens7347f0b2020-01-15 20:19:22 +0900445 ],
446
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700447 shared_libs: [
448 "android.hardware.graphics.bufferqueue@1.0",
449 "android.hardware.graphics.bufferqueue@2.0",
450 "android.hardware.graphics.common@1.1",
451 "android.hardware.graphics.common@1.2",
452 "android.hidl.token@1.0-utils",
453 "libbase",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700454 "libcutils",
455 "libEGL",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700456 "libhidlbase",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700457 "liblog",
458 "libnativewindow",
459 "libsync",
460 "libui",
461 "libutils",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700462 ],
463
Steven Moreland2b3f3cd2020-01-31 14:56:45 -0800464 static_libs: [
465 "libbinderthreadstateutils",
466 ],
467
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700468 header_libs: [
469 "libgui_headers",
470 "libnativebase_headers",
471 ],
472
Ady Abraham62f216c2020-10-13 19:07:23 -0700473 include_dirs: [
474 "frameworks/native/include",
475 ],
476
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700477 export_shared_lib_headers: [
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700478 "libEGL",
479 "libnativewindow",
480 "libui",
481 "android.hardware.graphics.bufferqueue@1.0",
482 "android.hardware.graphics.bufferqueue@2.0",
483 "android.hardware.graphics.common@1.1",
484 "android.hardware.graphics.common@1.2",
485 "android.hidl.token@1.0-utils",
486 ],
487
488 export_header_lib_headers: [
489 "libgui_headers",
490 ],
491
492 export_include_dirs: [
493 "include",
494 ],
495}
496
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700497// GMocks for use by external code
498cc_library_static {
499 name: "libgui_mocks",
500 vendor_available: false,
501
502 defaults: ["libgui_bufferqueue-defaults"],
503 static_libs: [
504 "libgtest",
505 "libgmock",
Ady Abraham107788e2023-10-17 12:31:08 -0700506 "libguiflags",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700507 ],
508
509 srcs: [
Huihong Luo0a81aa32022-02-22 16:02:36 -0800510 ":libgui_frame_event_aidl",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700511 "mock/GraphicBufferConsumer.cpp",
512 "mock/GraphicBufferProducer.cpp",
513 ],
514}
515
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700516subdirs = ["tests"]