blob: 1fd79b7713cd463c57d437f3f7a104d49ad36d87 [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",
Rachel Lee273c18c2022-12-13 14:35:07 -0800258 "Choreographer.cpp",
Dominik Laskowski5a5e01e2022-07-08 07:52:44 -0700259 "CompositorTiming.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700260 "ConsumerBase.cpp",
261 "CpuConsumer.cpp",
Ady Abrahama3b08ef2019-07-15 18:43:10 -0700262 "DebugEGLImageTracker.cpp",
Alec Mouri77a53872019-10-28 16:44:36 -0700263 "DisplayEventDispatcher.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700264 "DisplayEventReceiver.cpp",
Alec Mouri0e7d8fd2023-05-03 23:58:43 +0000265 "FenceMonitor.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700266 "GLConsumer.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800267 "IConsumerListener.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800268 "IGraphicBufferConsumer.cpp",
269 "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",
Chong Zhang62493092020-01-15 16:04:47 -0800276 "OccupancyTracker.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700277 "StreamSplitter.cpp",
chaviw0ef7caa2021-01-05 11:04:50 -0800278 "ScreenCaptureResults.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700279 "Surface.cpp",
280 "SurfaceControl.cpp",
281 "SurfaceComposerClient.cpp",
282 "SyncFeatures.cpp",
Rachel Lee18c34372022-01-20 13:57:18 -0800283 "VsyncEventData.cpp",
Mathias Agopian05debe12017-02-08 17:04:18 -0800284 "view/Surface.cpp",
chaviw60c9d3e2021-06-04 12:52:17 -0500285 "WindowInfosListenerReporter.cpp",
Chong Zhang62493092020-01-15 16:04:47 -0800286 "bufferqueue/1.0/B2HProducerListener.cpp",
287 "bufferqueue/1.0/H2BGraphicBufferProducer.cpp",
288 "bufferqueue/2.0/B2HProducerListener.cpp",
289 "bufferqueue/2.0/H2BGraphicBufferProducer.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700290 ],
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700291}
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700292
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700293cc_defaults {
294 name: "libgui-defaults",
295 defaults: ["libgui_bufferqueue-defaults"],
296 srcs: [":libgui-sources"],
297 static_libs: [
298 "libgui_aidl_static",
299 "libgui_window_info_static",
300 "libguiflags",
301 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700302 shared_libs: [
Chong Zhang62493092020-01-15 16:04:47 -0800303 "libbinder",
Liz Kammer7994df22023-05-04 12:25:58 +0000304 "libGLESv2",
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700305 ],
Ady Abraham107788e2023-10-17 12:31:08 -0700306 export_static_lib_headers: [
307 "libguiflags",
308 ],
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700309}
310
Vinay Vermae4993c22018-06-12 18:04:44 +0530311cc_defaults {
312 name: "libgui_defaults",
313
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700314 double_loadable: true,
315
316 defaults: [
317 "libgui-defaults",
318 ],
319
320 export_static_lib_headers: [
321 "libgui_aidl_static",
322 "libgui_window_info_static",
323 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700324
Chong Zhang62493092020-01-15 16:04:47 -0800325 export_shared_lib_headers: [
326 "libbinder",
327 ],
328
Alec Mouricdedc5d2021-03-01 22:39:55 -0800329 export_header_lib_headers: [
330 "libgui_aidl_headers",
Rachel Lee273c18c2022-12-13 14:35:07 -0800331 "jni_headers",
Alec Mouricdedc5d2021-03-01 22:39:55 -0800332 ],
333
Daichi Hironof474d3d2019-11-05 08:54:07 +0900334 aidl: {
335 export_aidl_headers: true,
Yi Kongccc1c7c2021-02-22 17:44:17 +0800336 },
337
Alec Mouricdedc5d2021-03-01 22:39:55 -0800338 header_libs: [
Rachel Lee273c18c2022-12-13 14:35:07 -0800339 "jni_headers",
Alec Mouricdedc5d2021-03-01 22:39:55 -0800340 "libdvr_headers",
341 "libgui_aidl_headers",
342 "libpdx_headers",
343 ],
344
Yi Kong7cd72c52021-12-23 15:51:29 +0800345 afdo: true,
Yi Kongb1f2d202021-02-23 17:52:42 +0800346
347 lto: {
348 thin: true,
349 },
Chavi Weingartene0237bb2023-02-06 21:48:32 +0000350
351 cflags: [
352 "-Wthread-safety",
353 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700354}
355
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700356// Used by media codec services exclusively as a static lib for
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700357// core bufferqueue support only.
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700358cc_library_static {
359 name: "libgui_bufferqueue_static",
360 vendor_available: true,
Jooyung Han54042e02020-05-13 16:04:07 +0900361 apex_available: [
362 "//apex_available:platform",
363 "com.android.media.swcodec",
364 ],
365 min_sdk_version: "29",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700366
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700367 cflags: [
Chong Zhang62493092020-01-15 16:04:47 -0800368 "-DNO_BINDER",
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700369 ],
370
371 defaults: ["libgui_bufferqueue-defaults"],
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700372
373 srcs: [
Huihong Luo02186fb2022-02-23 14:21:54 -0800374 ":libgui_frame_event_aidl",
Siarhei Vishniakoufc434ac2021-01-13 10:28:00 -1000375 ":inputconstants_aidl",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700376 ":libgui_bufferqueue_sources",
377 ],
Huihong Luo02186fb2022-02-23 14:21:54 -0800378
379 aidl: {
380 include_dirs: [
381 "frameworks/native/libs/gui",
382 ],
383 },
Chong Zhangdbfaf4d2019-05-03 10:33:18 -0700384}
385
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700386filegroup {
387 name: "libgui_bufferqueue_sources",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700388 srcs: [
Yin-Chia Yeh64ee5f52020-01-02 17:53:18 +0700389 "BatchBufferOps.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700390 "BufferItem.cpp",
391 "BufferQueue.cpp",
392 "BufferQueueConsumer.cpp",
393 "BufferQueueCore.cpp",
394 "BufferQueueProducer.cpp",
395 "BufferQueueThreadState.cpp",
396 "BufferSlot.cpp",
Ady Abraham6cdd3fd2023-09-07 18:45:58 -0700397 "FrameRateUtils.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700398 "FrameTimestamps.cpp",
399 "GLConsumerUtils.cpp",
400 "HdrMetadata.cpp",
Yin-Chia Yeh64ee5f52020-01-02 17:53:18 +0700401 "IGraphicBufferProducerFlattenables.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700402 "bufferqueue/1.0/Conversion.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700403 "bufferqueue/1.0/H2BProducerListener.cpp",
404 "bufferqueue/1.0/WProducerListener.cpp",
405 "bufferqueue/2.0/B2HGraphicBufferProducer.cpp",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700406 "bufferqueue/2.0/H2BProducerListener.cpp",
407 "bufferqueue/2.0/types.cpp",
408 ],
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700409}
410
411// Common build config shared by libgui and libgui_bufferqueue_static.
412cc_defaults {
413 name: "libgui_bufferqueue-defaults",
414
Sally Qi6920a2f2022-08-26 10:40:05 -0700415 defaults: ["android.hardware.graphics.common-ndk_shared"],
416
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700417 cflags: [
418 "-Wall",
419 "-Werror",
420 ],
421
422 cppflags: [
423 "-Wextra",
424 "-DDEBUG_ONLY_CODE=0",
425 ],
426
427 product_variables: {
428 eng: {
429 cppflags: [
430 "-UDEBUG_ONLY_CODE",
431 "-DDEBUG_ONLY_CODE=1",
432 ],
433 },
434 },
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700435
David Stevens7347f0b2020-01-15 20:19:22 +0900436 whole_static_libs: [
Trevor Radcliffeba8800d2022-07-08 17:58:06 +0000437 "libLibGuiProperties",
David Stevens7347f0b2020-01-15 20:19:22 +0900438 ],
439
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700440 shared_libs: [
441 "android.hardware.graphics.bufferqueue@1.0",
442 "android.hardware.graphics.bufferqueue@2.0",
443 "android.hardware.graphics.common@1.1",
444 "android.hardware.graphics.common@1.2",
445 "android.hidl.token@1.0-utils",
446 "libbase",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700447 "libcutils",
448 "libEGL",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700449 "libhidlbase",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700450 "liblog",
451 "libnativewindow",
452 "libsync",
453 "libui",
454 "libutils",
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700455 ],
456
Steven Moreland2b3f3cd2020-01-31 14:56:45 -0800457 static_libs: [
458 "libbinderthreadstateutils",
459 ],
460
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700461 header_libs: [
462 "libgui_headers",
463 "libnativebase_headers",
464 ],
465
Ady Abraham62f216c2020-10-13 19:07:23 -0700466 include_dirs: [
467 "frameworks/native/include",
468 ],
469
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700470 export_shared_lib_headers: [
Chong Zhang60fa4fd2019-04-19 10:00:27 -0700471 "libEGL",
472 "libnativewindow",
473 "libui",
474 "android.hardware.graphics.bufferqueue@1.0",
475 "android.hardware.graphics.bufferqueue@2.0",
476 "android.hardware.graphics.common@1.1",
477 "android.hardware.graphics.common@1.2",
478 "android.hidl.token@1.0-utils",
479 ],
480
481 export_header_lib_headers: [
482 "libgui_headers",
483 ],
484
485 export_include_dirs: [
486 "include",
487 ],
488}
489
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700490// GMocks for use by external code
491cc_library_static {
492 name: "libgui_mocks",
493 vendor_available: false,
494
495 defaults: ["libgui_bufferqueue-defaults"],
496 static_libs: [
497 "libgtest",
498 "libgmock",
Ady Abraham107788e2023-10-17 12:31:08 -0700499 "libguiflags",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700500 ],
501
502 srcs: [
Huihong Luo0a81aa32022-02-22 16:02:36 -0800503 ":libgui_frame_event_aidl",
Lloyd Pique1ebe0902019-10-04 14:47:13 -0700504 "mock/GraphicBufferConsumer.cpp",
505 "mock/GraphicBufferProducer.cpp",
506 ],
507}
508
Vinay Vermae4993c22018-06-12 18:04:44 +0530509cc_library_shared {
510 name: "libgui",
511 vendor_available: true,
512 defaults: ["libgui_defaults"]
513}
514
515cc_library_shared {
516 name: "libgui_vendor",
517 vendor: true,
518 defaults: ["libgui_defaults"]
519}
520
Dan Willemsen3106c1c2016-10-03 23:56:51 -0700521subdirs = ["tests"]