blob: bda2756b01ef585762a6fe58c14898b74793df25 [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",
YCairn Overturf65fb1c62025-02-24 22:57:09 +000096 "android/gui/BorderSettings.aidl",
chaviw3277faf2021-05-19 16:45:23 -050097 ],
98}
99
Vinh Tran6bd75632023-04-14 18:55:25 -0400100filegroup {
101 name: "android_gui_aidl",
102 srcs: [
103 "android/gui/DisplayInfo.aidl",
104 "android/gui/FocusRequest.aidl",
105 "android/gui/InputApplicationInfo.aidl",
106 "android/gui/IWindowInfosListener.aidl",
Patrick Williamsacd22582023-07-12 13:47:28 -0500107 "android/gui/IWindowInfosPublisher.aidl",
Vinh Tran6bd75632023-04-14 18:55:25 -0400108 "android/gui/IWindowInfosReportedListener.aidl",
109 "android/gui/WindowInfo.aidl",
Patrick Williamsd828f302023-04-28 17:52:08 -0500110 "android/gui/WindowInfosUpdate.aidl",
Vinh Tran6bd75632023-04-14 18:55:25 -0400111 ],
112}
113
chaviw3277faf2021-05-19 16:45:23 -0500114cc_library_static {
115 name: "libgui_window_info_static",
116 vendor_available: true,
117 host_supported: true,
118 srcs: [
119 ":guiconstants_aidl",
Prabir Pradhande788502021-12-22 00:26:07 -0800120 ":inputconstants_aidl",
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700121 "android/gui/DisplayInfo.aidl",
chaviw3277faf2021-05-19 16:45:23 -0500122 "android/gui/FocusRequest.aidl",
123 "android/gui/InputApplicationInfo.aidl",
chaviw60c9d3e2021-06-04 12:52:17 -0500124 "android/gui/IWindowInfosListener.aidl",
Patrick Williamsacd22582023-07-12 13:47:28 -0500125 "android/gui/IWindowInfosPublisher.aidl",
chaviwbf023a62021-06-07 16:00:06 -0500126 "android/gui/IWindowInfosReportedListener.aidl",
Patrick Williamsd828f302023-04-28 17:52:08 -0500127 "android/gui/WindowInfosUpdate.aidl",
chaviw3277faf2021-05-19 16:45:23 -0500128 "android/gui/WindowInfo.aidl",
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700129 "DisplayInfo.cpp",
chaviw3277faf2021-05-19 16:45:23 -0500130 "WindowInfo.cpp",
Patrick Williamsd828f302023-04-28 17:52:08 -0500131 "WindowInfosUpdate.cpp",
chaviw3277faf2021-05-19 16:45:23 -0500132 ],
133
134 shared_libs: [
135 "libbinder",
136 ],
137
138 local_include_dirs: [
139 "include",
140 ],
141
142 export_shared_lib_headers: [
143 "libbinder",
144 ],
145
146 static_libs: [
147 "libui-types",
148 ],
149
150 aidl: {
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700151 export_aidl_headers: true,
chaviw3277faf2021-05-19 16:45:23 -0500152 },
153
154 include_dirs: [
155 "frameworks/native/include",
156 ],
Jerome Gaillardaecaf0a2021-07-08 15:34:16 +0100157
158 target: {
159 darwin: {
160 enabled: false,
161 },
162 },
chaviw3277faf2021-05-19 16:45:23 -0500163}
164
Carlos Martinez Romero682a45b2024-02-26 10:58:58 -0800165filegroup {
166 name: "libgui_extra_aidl_files",
167 srcs: [
Vinh Trancbbf3302023-05-25 09:19:56 -0400168 "android/gui/DisplayInfo.aidl",
169 "android/gui/FocusRequest.aidl",
170 "android/gui/InputApplicationInfo.aidl",
171 "android/gui/IWindowInfosListener.aidl",
Patrick Williamsacd22582023-07-12 13:47:28 -0500172 "android/gui/IWindowInfosPublisher.aidl",
Vinh Trancbbf3302023-05-25 09:19:56 -0400173 "android/gui/IWindowInfosReportedListener.aidl",
Patrick Williams090ad062023-08-08 12:30:10 -0500174 "android/gui/StalledTransactionInfo.aidl",
Vinh Trancbbf3302023-05-25 09:19:56 -0400175 "android/gui/WindowInfo.aidl",
176 "android/gui/WindowInfosUpdate.aidl",
177 ],
178}
179
Carlos Martinez Romero682a45b2024-02-26 10:58:58 -0800180filegroup {
181 name: "libgui_extra_unstructured_aidl_files",
182 srcs: [
183 "android/gui/DisplayInfo.aidl",
184 "android/gui/InputApplicationInfo.aidl",
185 "android/gui/WindowInfo.aidl",
186 "android/gui/WindowInfosUpdate.aidl",
187 ],
188}
189
190aidl_library {
191 name: "libgui_aidl_hdrs",
192 hdrs: [":libgui_extra_aidl_files"],
193}
194
195aidl_library {
196 name: "libgui_extra_unstructured_aidl_hdrs",
197 hdrs: [":libgui_extra_unstructured_aidl_files"],
198}
199
Vinh Trancbbf3302023-05-25 09:19:56 -0400200aidl_library {
Pablo Gamito6ee484d2020-07-30 14:26:28 +0000201 name: "libgui_aidl",
202 srcs: ["aidl/**/*.aidl"],
Vinh Trancbbf3302023-05-25 09:19:56 -0400203 strip_import_prefix: "aidl",
Carlos Martinez Romero682a45b2024-02-26 10:58:58 -0800204 deps: [
205 "libgui_aidl_hdrs",
206 "libgui_extra_unstructured_aidl_hdrs",
207 ],
Pablo Gamito6ee484d2020-07-30 14:26:28 +0000208}
209
Huihong Luo0a81aa32022-02-22 16:02:36 -0800210filegroup {
211 name: "libgui_frame_event_aidl",
212 srcs: ["aidl/android/gui/FrameEvent.aidl"],
213 path: "aidl/",
214}
215
Alec Mouricdedc5d2021-03-01 22:39:55 -0800216cc_library_static {
217 name: "libgui_aidl_static",
218 vendor_available: true,
Alec Mouricdedc5d2021-03-01 22:39:55 -0800219
220 shared_libs: [
221 "libbinder",
222 "libui",
223 ],
224
225 local_include_dirs: [
226 "include",
227 ],
228
Huihong Luo02186fb2022-02-23 14:21:54 -0800229 include_dirs: [
230 "frameworks/native/include",
231 ],
232
Alec Mouricdedc5d2021-03-01 22:39:55 -0800233 export_shared_lib_headers: [
234 "libbinder",
235 ],
236
chaviw3277faf2021-05-19 16:45:23 -0500237 static_libs: [
238 "libui-types",
Huihong Luo02186fb2022-02-23 14:21:54 -0800239 "libgui_window_info_static",
chaviw3277faf2021-05-19 16:45:23 -0500240 ],
241
Alec Mouricdedc5d2021-03-01 22:39:55 -0800242 aidl: {
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700243 export_aidl_headers: true,
Vinh Trancbbf3302023-05-25 09:19:56 -0400244 libs: ["libgui_aidl"],
Prabir Pradhan48f8cb92021-08-26 14:05:36 -0700245 },
Alec Mouricdedc5d2021-03-01 22:39:55 -0800246}
247
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700248filegroup {
249 name: "libgui-sources",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700250 srcs: [
Vinh Tran9ccb8dd2022-08-09 15:38:48 -0400251 ":framework_native_aidl_binder",
252 ":framework_native_aidl_gui",
Siarhei Vishniakoufc434ac2021-01-13 10:28:00 -1000253 ":inputconstants_aidl",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700254 ":libgui_bufferqueue_sources",
255
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700256 "BitTube.cpp",
Robert Carr78c25dd2019-08-15 14:10:33 -0700257 "BLASTBufferQueue.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700258 "BufferItemConsumer.cpp",
Patrick Williamsf693bcf2024-08-02 09:55:23 -0500259 "BufferReleaseChannel.cpp",
Rachel Lee273c18c2022-12-13 14:35:07 -0800260 "Choreographer.cpp",
Dominik Laskowski5a5e01e2022-07-08 07:52:44 -0700261 "CompositorTiming.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700262 "ConsumerBase.cpp",
263 "CpuConsumer.cpp",
Ady Abrahama3b08ef2019-07-15 18:43:10 -0700264 "DebugEGLImageTracker.cpp",
Alec Mouri77a53872019-10-28 16:44:36 -0700265 "DisplayEventDispatcher.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700266 "DisplayEventReceiver.cpp",
Alec Mouri0e7d8fd2023-05-03 23:58:43 +0000267 "FenceMonitor.cpp",
Carlos Martinez Romero0cc2e2c2024-10-14 10:16:56 -0700268 "Flags.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700269 "GLConsumer.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800270 "IGraphicBufferProducer.cpp",
271 "IProducerListener.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700272 "ISurfaceComposer.cpp",
Marissa Wall7a9b6ff2018-08-21 17:26:20 -0700273 "ITransactionCompletedListener.cpp",
Evan Rosky1f6d6d52018-12-06 10:47:26 -0800274 "LayerMetadata.cpp",
Chavi Weingartenc78f53c2023-04-14 18:50:53 +0000275 "LayerStatePermissions.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700276 "LayerState.cpp",
Sally Qief006582024-10-11 13:23:09 -0700277 "DisplayLuts.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800278 "OccupancyTracker.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700279 "StreamSplitter.cpp",
chaviw0ef7caa2021-01-05 11:04:50 -0800280 "ScreenCaptureResults.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700281 "Surface.cpp",
282 "SurfaceControl.cpp",
283 "SurfaceComposerClient.cpp",
284 "SyncFeatures.cpp",
Anton Ivanov15bfd3d2025-03-03 17:54:37 -0800285 "TransactionState.cpp",
Rachel Lee18c34372022-01-20 13:57:18 -0800286 "VsyncEventData.cpp",
Mathias Agopian05debe12017-02-08 17:04:18 -0800287 "view/Surface.cpp",
chaviw60c9d3e2021-06-04 12:52:17 -0500288 "WindowInfosListenerReporter.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800289 "bufferqueue/1.0/B2HProducerListener.cpp",
290 "bufferqueue/1.0/H2BGraphicBufferProducer.cpp",
291 "bufferqueue/2.0/B2HProducerListener.cpp",
292 "bufferqueue/2.0/H2BGraphicBufferProducer.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700293 ],
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700294}
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700295
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700296cc_defaults {
297 name: "libgui-defaults",
298 defaults: ["libgui_bufferqueue-defaults"],
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700299 static_libs: [
300 "libgui_aidl_static",
301 "libgui_window_info_static",
302 "libguiflags",
303 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700304 shared_libs: [
Chong Zhang62493092020-01-15 16:04:47 -0800305 "libbinder",
Liz Kammer7994df22023-05-04 12:25:58 +0000306 "libGLESv2",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700307 ],
Ady Abraham107788e2023-10-17 12:31:08 -0700308 export_static_lib_headers: [
309 "libguiflags",
310 ],
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700311}
312
Vinay Vermae4993c22018-06-12 18:04:44 +0530313cc_defaults {
314 name: "libgui_defaults",
315
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700316 double_loadable: true,
317
318 defaults: [
319 "libgui-defaults",
320 ],
321
Anton Ivanov6bcd4112025-03-12 10:42:34 -0700322 srcs: [
323 ":libgui-sources",
324 ],
325
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700326 export_static_lib_headers: [
327 "libgui_aidl_static",
328 "libgui_window_info_static",
329 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700330
Chong Zhang62493092020-01-15 16:04:47 -0800331 export_shared_lib_headers: [
332 "libbinder",
333 ],
334
Alec Mouricdedc5d2021-03-01 22:39:55 -0800335 export_header_lib_headers: [
336 "libgui_aidl_headers",
Rachel Lee273c18c2022-12-13 14:35:07 -0800337 "jni_headers",
Alec Mouricdedc5d2021-03-01 22:39:55 -0800338 ],
339
Daichi Hironof474d3d2019-11-05 08:54:07 +0900340 aidl: {
341 export_aidl_headers: true,
Yi Kongccc1c7c2021-02-22 17:44:17 +0800342 },
343
Alec Mouricdedc5d2021-03-01 22:39:55 -0800344 header_libs: [
Rachel Lee273c18c2022-12-13 14:35:07 -0800345 "jni_headers",
Alec Mouricdedc5d2021-03-01 22:39:55 -0800346 "libgui_aidl_headers",
Alec Mouricdedc5d2021-03-01 22:39:55 -0800347 ],
348
Brian Lindahle2ca80b2024-11-01 18:43:11 -0600349 static_libs: [
350 "libsurfaceflingerflags",
351 ],
352
Yi Kong7cd72c52021-12-23 15:51:29 +0800353 afdo: true,
Yi Kongb1f2d202021-02-23 17:52:42 +0800354
355 lto: {
356 thin: true,
357 },
Chavi Weingartene0237bb2023-02-06 21:48:32 +0000358
359 cflags: [
360 "-Wthread-safety",
361 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700362}
363
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700364// Used by media codec services exclusively as a static lib for
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700365// core bufferqueue support only.
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700366cc_library_static {
367 name: "libgui_bufferqueue_static",
368 vendor_available: true,
Jooyung Han54042e02020-05-13 16:04:07 +0900369 apex_available: [
370 "//apex_available:platform",
371 "com.android.media.swcodec",
372 ],
373 min_sdk_version: "29",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700374
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700375 cflags: [
Chong Zhang62493092020-01-15 16:04:47 -0800376 "-DNO_BINDER",
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700377 ],
378
379 defaults: ["libgui_bufferqueue-defaults"],
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700380
381 srcs: [
Huihong Luo02186fb2022-02-23 14:21:54 -0800382 ":libgui_frame_event_aidl",
Siarhei Vishniakoufc434ac2021-01-13 10:28:00 -1000383 ":inputconstants_aidl",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700384 ":libgui_bufferqueue_sources",
385 ],
Huihong Luo02186fb2022-02-23 14:21:54 -0800386
387 aidl: {
388 include_dirs: [
389 "frameworks/native/libs/gui",
390 ],
391 },
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700392}
393
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700394filegroup {
395 name: "libgui_bufferqueue_sources",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700396 srcs: [
Yin-Chia Yeh64ee5f52020-01-02 17:53:18 +0700397 "BatchBufferOps.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700398 "BufferItem.cpp",
399 "BufferQueue.cpp",
400 "BufferQueueConsumer.cpp",
401 "BufferQueueCore.cpp",
402 "BufferQueueProducer.cpp",
403 "BufferQueueThreadState.cpp",
404 "BufferSlot.cpp",
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700405 "FrameRateUtils.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700406 "FrameTimestamps.cpp",
407 "GLConsumerUtils.cpp",
408 "HdrMetadata.cpp",
Yin-Chia Yeh64ee5f52020-01-02 17:53:18 +0700409 "IGraphicBufferProducerFlattenables.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700410 "bufferqueue/1.0/Conversion.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700411 "bufferqueue/1.0/H2BProducerListener.cpp",
412 "bufferqueue/1.0/WProducerListener.cpp",
413 "bufferqueue/2.0/B2HGraphicBufferProducer.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700414 "bufferqueue/2.0/H2BProducerListener.cpp",
415 "bufferqueue/2.0/types.cpp",
416 ],
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700417}
418
419// Common build config shared by libgui and libgui_bufferqueue_static.
420cc_defaults {
421 name: "libgui_bufferqueue-defaults",
422
Sally Qi6920a2f2022-08-26 10:40:05 -0700423 defaults: ["android.hardware.graphics.common-ndk_shared"],
424
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700425 cflags: [
426 "-Wall",
427 "-Werror",
428 ],
429
430 cppflags: [
431 "-Wextra",
432 "-DDEBUG_ONLY_CODE=0",
433 ],
434
435 product_variables: {
436 eng: {
437 cppflags: [
438 "-UDEBUG_ONLY_CODE",
439 "-DDEBUG_ONLY_CODE=1",
440 ],
441 },
442 },
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700443
David Stevens7347f0b2020-01-15 20:19:22 +0900444 whole_static_libs: [
Trevor Radcliffeba8800d2022-07-08 17:58:06 +0000445 "libLibGuiProperties",
David Stevens7347f0b2020-01-15 20:19:22 +0900446 ],
447
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700448 shared_libs: [
449 "android.hardware.graphics.bufferqueue@1.0",
450 "android.hardware.graphics.bufferqueue@2.0",
451 "android.hardware.graphics.common@1.1",
452 "android.hardware.graphics.common@1.2",
453 "android.hidl.token@1.0-utils",
454 "libbase",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700455 "libcutils",
456 "libEGL",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700457 "libhidlbase",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700458 "liblog",
459 "libnativewindow",
460 "libsync",
461 "libui",
462 "libutils",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700463 ],
464
Steven Moreland2b3f3cd2020-01-31 14:56:45 -0800465 static_libs: [
466 "libbinderthreadstateutils",
467 ],
468
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700469 header_libs: [
470 "libgui_headers",
471 "libnativebase_headers",
472 ],
473
Ady Abraham62f216c2020-10-13 19:07:23 -0700474 include_dirs: [
475 "frameworks/native/include",
476 ],
477
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700478 export_shared_lib_headers: [
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700479 "libEGL",
480 "libnativewindow",
481 "libui",
482 "android.hardware.graphics.bufferqueue@1.0",
483 "android.hardware.graphics.bufferqueue@2.0",
484 "android.hardware.graphics.common@1.1",
485 "android.hardware.graphics.common@1.2",
486 "android.hidl.token@1.0-utils",
487 ],
488
489 export_header_lib_headers: [
490 "libgui_headers",
491 ],
492
493 export_include_dirs: [
494 "include",
495 ],
496}
497
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700498// GMocks for use by external code
499cc_library_static {
500 name: "libgui_mocks",
501 vendor_available: false,
502
503 defaults: ["libgui_bufferqueue-defaults"],
504 static_libs: [
505 "libgtest",
506 "libgmock",
Ady Abraham107788e2023-10-17 12:31:08 -0700507 "libguiflags",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700508 ],
509
510 srcs: [
Huihong Luo0a81aa32022-02-22 16:02:36 -0800511 ":libgui_frame_event_aidl",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700512 "mock/GraphicBufferConsumer.cpp",
513 "mock/GraphicBufferProducer.cpp",
514 ],
515}
516
Vinay Vermae4993c22018-06-12 18:04:44 +0530517cc_library_shared {
518 name: "libgui",
519 vendor_available: true,
520 defaults: ["libgui_defaults"]
521}
522
523cc_library_shared {
524 name: "libgui_vendor",
525 vendor: true,
526 defaults: ["libgui_defaults"]
527}
528
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700529subdirs = ["tests"]