blob: 1e33abbdea15c15805871834956c000f88e5ddac [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",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700267 "GLConsumer.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800268 "IConsumerListener.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800269 "IGraphicBufferConsumer.cpp",
270 "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",
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"],
298 srcs: [":libgui-sources"],
299 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
313cc_library_shared {
314 name: "libgui",
315 vendor_available: true,
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700316 double_loadable: true,
317
318 defaults: [
319 "libgui-defaults",
320 ],
321
322 export_static_lib_headers: [
323 "libgui_aidl_static",
324 "libgui_window_info_static",
325 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700326
Chong Zhang62493092020-01-15 16:04:47 -0800327 export_shared_lib_headers: [
328 "libbinder",
329 ],
330
Alec Mouricdedc5d2021-03-01 22:39:55 -0800331 export_header_lib_headers: [
332 "libgui_aidl_headers",
Rachel Lee273c18c2022-12-13 14:35:07 -0800333 "jni_headers",
Alec Mouricdedc5d2021-03-01 22:39:55 -0800334 ],
335
Daichi Hironof474d3d2019-11-05 08:54:07 +0900336 aidl: {
337 export_aidl_headers: true,
Yi Kongccc1c7c2021-02-22 17:44:17 +0800338 },
339
Alec Mouricdedc5d2021-03-01 22:39:55 -0800340 header_libs: [
Rachel Lee273c18c2022-12-13 14:35:07 -0800341 "jni_headers",
Alec Mouricdedc5d2021-03-01 22:39:55 -0800342 "libgui_aidl_headers",
Alec Mouricdedc5d2021-03-01 22:39:55 -0800343 ],
344
Brian Lindahle2ca80b2024-11-01 18:43:11 -0600345 static_libs: [
346 "libsurfaceflingerflags",
347 ],
348
Yi Kong7cd72c52021-12-23 15:51:29 +0800349 afdo: true,
Yi Kongb1f2d202021-02-23 17:52:42 +0800350
351 lto: {
352 thin: true,
353 },
Chavi Weingartene0237bb2023-02-06 21:48:32 +0000354
355 cflags: [
356 "-Wthread-safety",
357 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700358}
359
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700360// Used by media codec services exclusively as a static lib for
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700361// core bufferqueue support only.
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700362cc_library_static {
363 name: "libgui_bufferqueue_static",
364 vendor_available: true,
Jooyung Han54042e02020-05-13 16:04:07 +0900365 apex_available: [
366 "//apex_available:platform",
367 "com.android.media.swcodec",
368 ],
369 min_sdk_version: "29",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700370
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700371 cflags: [
Chong Zhang62493092020-01-15 16:04:47 -0800372 "-DNO_BINDER",
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700373 ],
374
375 defaults: ["libgui_bufferqueue-defaults"],
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700376
377 srcs: [
Huihong Luo02186fb2022-02-23 14:21:54 -0800378 ":libgui_frame_event_aidl",
Siarhei Vishniakoufc434ac2021-01-13 10:28:00 -1000379 ":inputconstants_aidl",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700380 ":libgui_bufferqueue_sources",
381 ],
Huihong Luo02186fb2022-02-23 14:21:54 -0800382
383 aidl: {
384 include_dirs: [
385 "frameworks/native/libs/gui",
386 ],
387 },
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700388}
389
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700390filegroup {
391 name: "libgui_bufferqueue_sources",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700392 srcs: [
Yin-Chia Yeh64ee5f52020-01-02 17:53:18 +0700393 "BatchBufferOps.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700394 "BufferItem.cpp",
395 "BufferQueue.cpp",
396 "BufferQueueConsumer.cpp",
397 "BufferQueueCore.cpp",
398 "BufferQueueProducer.cpp",
399 "BufferQueueThreadState.cpp",
400 "BufferSlot.cpp",
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700401 "FrameRateUtils.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700402 "FrameTimestamps.cpp",
403 "GLConsumerUtils.cpp",
404 "HdrMetadata.cpp",
Yin-Chia Yeh64ee5f52020-01-02 17:53:18 +0700405 "IGraphicBufferProducerFlattenables.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700406 "bufferqueue/1.0/Conversion.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700407 "bufferqueue/1.0/H2BProducerListener.cpp",
408 "bufferqueue/1.0/WProducerListener.cpp",
409 "bufferqueue/2.0/B2HGraphicBufferProducer.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700410 "bufferqueue/2.0/H2BProducerListener.cpp",
411 "bufferqueue/2.0/types.cpp",
412 ],
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700413}
414
415// Common build config shared by libgui and libgui_bufferqueue_static.
416cc_defaults {
417 name: "libgui_bufferqueue-defaults",
418
Sally Qi6920a2f2022-08-26 10:40:05 -0700419 defaults: ["android.hardware.graphics.common-ndk_shared"],
420
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700421 cflags: [
422 "-Wall",
423 "-Werror",
424 ],
425
426 cppflags: [
427 "-Wextra",
428 "-DDEBUG_ONLY_CODE=0",
429 ],
430
431 product_variables: {
432 eng: {
433 cppflags: [
434 "-UDEBUG_ONLY_CODE",
435 "-DDEBUG_ONLY_CODE=1",
436 ],
437 },
438 },
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700439
David Stevens7347f0b2020-01-15 20:19:22 +0900440 whole_static_libs: [
Trevor Radcliffeba8800d2022-07-08 17:58:06 +0000441 "libLibGuiProperties",
David Stevens7347f0b2020-01-15 20:19:22 +0900442 ],
443
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700444 shared_libs: [
445 "android.hardware.graphics.bufferqueue@1.0",
446 "android.hardware.graphics.bufferqueue@2.0",
447 "android.hardware.graphics.common@1.1",
448 "android.hardware.graphics.common@1.2",
449 "android.hidl.token@1.0-utils",
450 "libbase",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700451 "libcutils",
452 "libEGL",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700453 "libhidlbase",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700454 "liblog",
455 "libnativewindow",
456 "libsync",
457 "libui",
458 "libutils",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700459 ],
460
Steven Moreland2b3f3cd2020-01-31 14:56:45 -0800461 static_libs: [
462 "libbinderthreadstateutils",
463 ],
464
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700465 header_libs: [
466 "libgui_headers",
467 "libnativebase_headers",
468 ],
469
Ady Abraham62f216c2020-10-13 19:07:23 -0700470 include_dirs: [
471 "frameworks/native/include",
472 ],
473
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700474 export_shared_lib_headers: [
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700475 "libEGL",
476 "libnativewindow",
477 "libui",
478 "android.hardware.graphics.bufferqueue@1.0",
479 "android.hardware.graphics.bufferqueue@2.0",
480 "android.hardware.graphics.common@1.1",
481 "android.hardware.graphics.common@1.2",
482 "android.hidl.token@1.0-utils",
483 ],
484
485 export_header_lib_headers: [
486 "libgui_headers",
487 ],
488
489 export_include_dirs: [
490 "include",
491 ],
492}
493
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700494// GMocks for use by external code
495cc_library_static {
496 name: "libgui_mocks",
497 vendor_available: false,
498
499 defaults: ["libgui_bufferqueue-defaults"],
500 static_libs: [
501 "libgtest",
502 "libgmock",
Ady Abraham107788e2023-10-17 12:31:08 -0700503 "libguiflags",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700504 ],
505
506 srcs: [
Huihong Luo0a81aa32022-02-22 16:02:36 -0800507 ":libgui_frame_event_aidl",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700508 "mock/GraphicBufferConsumer.cpp",
509 "mock/GraphicBufferProducer.cpp",
510 ],
511}
512
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700513subdirs = ["tests"]