Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 1 | // 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 Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 14 | package { |
| 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"], |
| 21 | } |
| 22 | |
Jiyong Park | 172bd72 | 2017-06-21 12:14:18 +0900 | [diff] [blame] | 23 | cc_library_headers { |
| 24 | name: "libgui_headers", |
| 25 | vendor_available: true, |
| 26 | export_include_dirs: ["include"], |
Lajos Molnar | 7aa71e7 | 2019-04-01 15:34:32 -0700 | [diff] [blame] | 27 | |
| 28 | // we must build this module to get the required header as that is generated |
Marco Nelissen | cb04dee | 2019-10-28 12:55:47 -0700 | [diff] [blame] | 29 | export_shared_lib_headers: [ |
| 30 | "android.hidl.token@1.0-utils", |
| 31 | "android.hardware.graphics.bufferqueue@1.0", |
| 32 | "android.hardware.graphics.bufferqueue@2.0", |
| 33 | ], |
| 34 | shared_libs: [ |
| 35 | "android.hidl.token@1.0-utils", |
| 36 | "android.hardware.graphics.bufferqueue@1.0", |
| 37 | "android.hardware.graphics.bufferqueue@2.0", |
| 38 | ], |
Jooyung Han | 7bcb893 | 2020-04-16 18:48:32 +0900 | [diff] [blame] | 39 | min_sdk_version: "29", |
Ray Essick | eed53a0 | 2022-02-09 09:40:20 -0800 | [diff] [blame] | 40 | // TODO(b/218719284) can media use be constrained to libgui_bufferqueue_static? |
| 41 | apex_available: [ |
| 42 | "//apex_available:platform", |
| 43 | "com.android.media.swcodec", |
| 44 | "test_com.android.media.swcodec", |
| 45 | ], |
Jiyong Park | 172bd72 | 2017-06-21 12:14:18 +0900 | [diff] [blame] | 46 | } |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 47 | |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 48 | cc_library_headers { |
| 49 | name: "libgui_aidl_headers", |
| 50 | vendor_available: true, |
| 51 | static_libs: [ |
| 52 | "libgui_aidl_static", |
| 53 | ], |
| 54 | |
| 55 | export_static_lib_headers: [ |
| 56 | "libgui_aidl_static", |
| 57 | ], |
| 58 | } |
| 59 | |
chaviw | 3277faf | 2021-05-19 16:45:23 -0500 | [diff] [blame] | 60 | // AIDL files that should be exposed to java |
| 61 | filegroup { |
| 62 | name: "guiconstants_aidl", |
| 63 | srcs: [ |
Vishnu Nair | 9cf4a4d | 2021-09-17 12:16:08 -0700 | [diff] [blame] | 64 | "android/gui/DropInputMode.aidl", |
chaviw | 3277faf | 2021-05-19 16:45:23 -0500 | [diff] [blame] | 65 | "android/**/TouchOcclusionMode.aidl", |
| 66 | ], |
| 67 | } |
| 68 | |
Vinh Tran | 6bd7563 | 2023-04-14 18:55:25 -0400 | [diff] [blame] | 69 | filegroup { |
| 70 | name: "android_gui_aidl", |
| 71 | srcs: [ |
| 72 | "android/gui/DisplayInfo.aidl", |
| 73 | "android/gui/FocusRequest.aidl", |
| 74 | "android/gui/InputApplicationInfo.aidl", |
| 75 | "android/gui/IWindowInfosListener.aidl", |
| 76 | "android/gui/IWindowInfosReportedListener.aidl", |
| 77 | "android/gui/WindowInfo.aidl", |
| 78 | ], |
| 79 | } |
| 80 | |
chaviw | 3277faf | 2021-05-19 16:45:23 -0500 | [diff] [blame] | 81 | cc_library_static { |
| 82 | name: "libgui_window_info_static", |
| 83 | vendor_available: true, |
| 84 | host_supported: true, |
| 85 | srcs: [ |
| 86 | ":guiconstants_aidl", |
Prabir Pradhan | de78850 | 2021-12-22 00:26:07 -0800 | [diff] [blame] | 87 | ":inputconstants_aidl", |
Prabir Pradhan | 48f8cb9 | 2021-08-26 14:05:36 -0700 | [diff] [blame] | 88 | "android/gui/DisplayInfo.aidl", |
chaviw | 3277faf | 2021-05-19 16:45:23 -0500 | [diff] [blame] | 89 | "android/gui/FocusRequest.aidl", |
| 90 | "android/gui/InputApplicationInfo.aidl", |
chaviw | 60c9d3e | 2021-06-04 12:52:17 -0500 | [diff] [blame] | 91 | "android/gui/IWindowInfosListener.aidl", |
chaviw | bf023a6 | 2021-06-07 16:00:06 -0500 | [diff] [blame] | 92 | "android/gui/IWindowInfosReportedListener.aidl", |
chaviw | 3277faf | 2021-05-19 16:45:23 -0500 | [diff] [blame] | 93 | "android/gui/WindowInfo.aidl", |
Prabir Pradhan | 48f8cb9 | 2021-08-26 14:05:36 -0700 | [diff] [blame] | 94 | "DisplayInfo.cpp", |
chaviw | 3277faf | 2021-05-19 16:45:23 -0500 | [diff] [blame] | 95 | "WindowInfo.cpp", |
| 96 | ], |
| 97 | |
| 98 | shared_libs: [ |
| 99 | "libbinder", |
| 100 | ], |
| 101 | |
| 102 | local_include_dirs: [ |
| 103 | "include", |
| 104 | ], |
| 105 | |
| 106 | export_shared_lib_headers: [ |
| 107 | "libbinder", |
| 108 | ], |
| 109 | |
| 110 | static_libs: [ |
| 111 | "libui-types", |
| 112 | ], |
| 113 | |
| 114 | aidl: { |
Prabir Pradhan | 48f8cb9 | 2021-08-26 14:05:36 -0700 | [diff] [blame] | 115 | export_aidl_headers: true, |
chaviw | 3277faf | 2021-05-19 16:45:23 -0500 | [diff] [blame] | 116 | }, |
| 117 | |
| 118 | include_dirs: [ |
| 119 | "frameworks/native/include", |
| 120 | ], |
Jerome Gaillard | aecaf0a | 2021-07-08 15:34:16 +0100 | [diff] [blame] | 121 | |
| 122 | target: { |
| 123 | darwin: { |
| 124 | enabled: false, |
| 125 | }, |
| 126 | }, |
chaviw | 3277faf | 2021-05-19 16:45:23 -0500 | [diff] [blame] | 127 | } |
| 128 | |
Pablo Gamito | 6ee484d | 2020-07-30 14:26:28 +0000 | [diff] [blame] | 129 | filegroup { |
| 130 | name: "libgui_aidl", |
| 131 | srcs: ["aidl/**/*.aidl"], |
| 132 | path: "aidl/", |
Vinh Tran | 6bd7563 | 2023-04-14 18:55:25 -0400 | [diff] [blame] | 133 | aidl: { |
| 134 | deps: [":android_gui_aidl"], |
| 135 | }, |
Pablo Gamito | 6ee484d | 2020-07-30 14:26:28 +0000 | [diff] [blame] | 136 | } |
| 137 | |
Huihong Luo | 0a81aa3 | 2022-02-22 16:02:36 -0800 | [diff] [blame] | 138 | filegroup { |
| 139 | name: "libgui_frame_event_aidl", |
| 140 | srcs: ["aidl/android/gui/FrameEvent.aidl"], |
| 141 | path: "aidl/", |
| 142 | } |
| 143 | |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 144 | cc_library_static { |
| 145 | name: "libgui_aidl_static", |
| 146 | vendor_available: true, |
| 147 | srcs: [ |
| 148 | ":libgui_aidl", |
| 149 | ], |
| 150 | |
| 151 | shared_libs: [ |
| 152 | "libbinder", |
| 153 | "libui", |
| 154 | ], |
| 155 | |
| 156 | local_include_dirs: [ |
| 157 | "include", |
| 158 | ], |
| 159 | |
Huihong Luo | 02186fb | 2022-02-23 14:21:54 -0800 | [diff] [blame] | 160 | include_dirs: [ |
| 161 | "frameworks/native/include", |
| 162 | ], |
| 163 | |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 164 | export_shared_lib_headers: [ |
| 165 | "libbinder", |
| 166 | ], |
| 167 | |
chaviw | 3277faf | 2021-05-19 16:45:23 -0500 | [diff] [blame] | 168 | static_libs: [ |
| 169 | "libui-types", |
Huihong Luo | 02186fb | 2022-02-23 14:21:54 -0800 | [diff] [blame] | 170 | "libgui_window_info_static", |
chaviw | 3277faf | 2021-05-19 16:45:23 -0500 | [diff] [blame] | 171 | ], |
| 172 | |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 173 | aidl: { |
Prabir Pradhan | 48f8cb9 | 2021-08-26 14:05:36 -0700 | [diff] [blame] | 174 | export_aidl_headers: true, |
Huihong Luo | 02186fb | 2022-02-23 14:21:54 -0800 | [diff] [blame] | 175 | include_dirs: [ |
| 176 | "frameworks/native/libs/gui", |
| 177 | ], |
Prabir Pradhan | 48f8cb9 | 2021-08-26 14:05:36 -0700 | [diff] [blame] | 178 | }, |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 179 | } |
| 180 | |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 181 | cc_library_shared { |
| 182 | name: "libgui", |
Justin Yun | 0b9bc01 | 2021-01-05 17:39:05 +0900 | [diff] [blame] | 183 | vendor_available: true, |
Justin Yun | 71d6c885 | 2017-07-24 15:19:45 +0900 | [diff] [blame] | 184 | vndk: { |
| 185 | enabled: true, |
Justin Yun | 0b9bc01 | 2021-01-05 17:39:05 +0900 | [diff] [blame] | 186 | private: true, |
Justin Yun | 71d6c885 | 2017-07-24 15:19:45 +0900 | [diff] [blame] | 187 | }, |
Jiyong Park | a75d3d6 | 2018-04-09 12:16:30 +0900 | [diff] [blame] | 188 | double_loadable: true, |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 189 | |
Chong Zhang | dbfaf4d | 2019-05-03 10:33:18 -0700 | [diff] [blame] | 190 | defaults: ["libgui_bufferqueue-defaults"], |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 191 | |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 192 | static_libs: [ |
| 193 | "libgui_aidl_static", |
chaviw | 3277faf | 2021-05-19 16:45:23 -0500 | [diff] [blame] | 194 | "libgui_window_info_static", |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 195 | ], |
| 196 | export_static_lib_headers: [ |
| 197 | "libgui_aidl_static", |
chaviw | 3277faf | 2021-05-19 16:45:23 -0500 | [diff] [blame] | 198 | "libgui_window_info_static", |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 199 | ], |
| 200 | |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 201 | srcs: [ |
Vinh Tran | 9ccb8dd | 2022-08-09 15:38:48 -0400 | [diff] [blame] | 202 | ":framework_native_aidl_binder", |
| 203 | ":framework_native_aidl_gui", |
Siarhei Vishniakou | fc434ac | 2021-01-13 10:28:00 -1000 | [diff] [blame] | 204 | ":inputconstants_aidl", |
Lloyd Pique | 1ebe090 | 2019-10-04 14:47:13 -0700 | [diff] [blame] | 205 | ":libgui_bufferqueue_sources", |
| 206 | |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 207 | "BitTube.cpp", |
Robert Carr | 78c25dd | 2019-08-15 14:10:33 -0700 | [diff] [blame] | 208 | "BLASTBufferQueue.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 209 | "BufferItemConsumer.cpp", |
Rachel Lee | 273c18c | 2022-12-13 14:35:07 -0800 | [diff] [blame] | 210 | "Choreographer.cpp", |
Dominik Laskowski | 5a5e01e | 2022-07-08 07:52:44 -0700 | [diff] [blame] | 211 | "CompositorTiming.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 212 | "ConsumerBase.cpp", |
| 213 | "CpuConsumer.cpp", |
Ady Abraham | a3b08ef | 2019-07-15 18:43:10 -0700 | [diff] [blame] | 214 | "DebugEGLImageTracker.cpp", |
Alec Mouri | 77a5387 | 2019-10-28 16:44:36 -0700 | [diff] [blame] | 215 | "DisplayEventDispatcher.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 216 | "DisplayEventReceiver.cpp", |
| 217 | "GLConsumer.cpp", |
Chong Zhang | 6249309 | 2020-01-15 16:04:47 -0800 | [diff] [blame] | 218 | "IConsumerListener.cpp", |
Chong Zhang | 6249309 | 2020-01-15 16:04:47 -0800 | [diff] [blame] | 219 | "IGraphicBufferConsumer.cpp", |
| 220 | "IGraphicBufferProducer.cpp", |
| 221 | "IProducerListener.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 222 | "ISurfaceComposer.cpp", |
Marissa Wall | 7a9b6ff | 2018-08-21 17:26:20 -0700 | [diff] [blame] | 223 | "ITransactionCompletedListener.cpp", |
Kalle Raita | a099a24 | 2017-01-11 11:17:29 -0800 | [diff] [blame] | 224 | "LayerDebugInfo.cpp", |
Evan Rosky | 1f6d6d5 | 2018-12-06 10:47:26 -0800 | [diff] [blame] | 225 | "LayerMetadata.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 226 | "LayerState.cpp", |
Chong Zhang | 6249309 | 2020-01-15 16:04:47 -0800 | [diff] [blame] | 227 | "OccupancyTracker.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 228 | "StreamSplitter.cpp", |
chaviw | 0ef7caa | 2021-01-05 11:04:50 -0800 | [diff] [blame] | 229 | "ScreenCaptureResults.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 230 | "Surface.cpp", |
| 231 | "SurfaceControl.cpp", |
| 232 | "SurfaceComposerClient.cpp", |
| 233 | "SyncFeatures.cpp", |
Rachel Lee | 18c3437 | 2022-01-20 13:57:18 -0800 | [diff] [blame] | 234 | "VsyncEventData.cpp", |
Mathias Agopian | 05debe1 | 2017-02-08 17:04:18 -0800 | [diff] [blame] | 235 | "view/Surface.cpp", |
chaviw | 60c9d3e | 2021-06-04 12:52:17 -0500 | [diff] [blame] | 236 | "WindowInfosListenerReporter.cpp", |
Chong Zhang | 6249309 | 2020-01-15 16:04:47 -0800 | [diff] [blame] | 237 | "bufferqueue/1.0/B2HProducerListener.cpp", |
| 238 | "bufferqueue/1.0/H2BGraphicBufferProducer.cpp", |
| 239 | "bufferqueue/2.0/B2HProducerListener.cpp", |
| 240 | "bufferqueue/2.0/H2BGraphicBufferProducer.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 241 | ], |
| 242 | |
| 243 | shared_libs: [ |
Chong Zhang | 6249309 | 2020-01-15 16:04:47 -0800 | [diff] [blame] | 244 | "libbinder", |
Liz Kammer | 7994df2 | 2023-05-04 12:25:58 +0000 | [diff] [blame^] | 245 | "libGLESv2", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 246 | ], |
| 247 | |
Chong Zhang | 6249309 | 2020-01-15 16:04:47 -0800 | [diff] [blame] | 248 | export_shared_lib_headers: [ |
| 249 | "libbinder", |
| 250 | ], |
| 251 | |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 252 | export_header_lib_headers: [ |
| 253 | "libgui_aidl_headers", |
Rachel Lee | 273c18c | 2022-12-13 14:35:07 -0800 | [diff] [blame] | 254 | "jni_headers", |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 255 | ], |
| 256 | |
Daichi Hirono | f474d3d | 2019-11-05 08:54:07 +0900 | [diff] [blame] | 257 | aidl: { |
| 258 | export_aidl_headers: true, |
Yi Kong | ccc1c7c | 2021-02-22 17:44:17 +0800 | [diff] [blame] | 259 | }, |
| 260 | |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 261 | header_libs: [ |
Rachel Lee | 273c18c | 2022-12-13 14:35:07 -0800 | [diff] [blame] | 262 | "jni_headers", |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 263 | "libdvr_headers", |
| 264 | "libgui_aidl_headers", |
| 265 | "libpdx_headers", |
| 266 | ], |
| 267 | |
Yi Kong | 7cd72c5 | 2021-12-23 15:51:29 +0800 | [diff] [blame] | 268 | afdo: true, |
Yi Kong | b1f2d20 | 2021-02-23 17:52:42 +0800 | [diff] [blame] | 269 | |
| 270 | lto: { |
| 271 | thin: true, |
| 272 | }, |
Chavi Weingarten | e0237bb | 2023-02-06 21:48:32 +0000 | [diff] [blame] | 273 | |
| 274 | cflags: [ |
| 275 | "-Wthread-safety", |
| 276 | ], |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 277 | } |
| 278 | |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 279 | // Used by media codec services exclusively as a static lib for |
Chong Zhang | dbfaf4d | 2019-05-03 10:33:18 -0700 | [diff] [blame] | 280 | // core bufferqueue support only. |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 281 | cc_library_static { |
| 282 | name: "libgui_bufferqueue_static", |
| 283 | vendor_available: true, |
Jooyung Han | 54042e0 | 2020-05-13 16:04:07 +0900 | [diff] [blame] | 284 | apex_available: [ |
| 285 | "//apex_available:platform", |
| 286 | "com.android.media.swcodec", |
| 287 | ], |
| 288 | min_sdk_version: "29", |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 289 | |
Chong Zhang | dbfaf4d | 2019-05-03 10:33:18 -0700 | [diff] [blame] | 290 | cflags: [ |
Chong Zhang | 6249309 | 2020-01-15 16:04:47 -0800 | [diff] [blame] | 291 | "-DNO_BINDER", |
Chong Zhang | dbfaf4d | 2019-05-03 10:33:18 -0700 | [diff] [blame] | 292 | ], |
| 293 | |
| 294 | defaults: ["libgui_bufferqueue-defaults"], |
Lloyd Pique | 1ebe090 | 2019-10-04 14:47:13 -0700 | [diff] [blame] | 295 | |
| 296 | srcs: [ |
Huihong Luo | 02186fb | 2022-02-23 14:21:54 -0800 | [diff] [blame] | 297 | ":libgui_frame_event_aidl", |
Siarhei Vishniakou | fc434ac | 2021-01-13 10:28:00 -1000 | [diff] [blame] | 298 | ":inputconstants_aidl", |
Lloyd Pique | 1ebe090 | 2019-10-04 14:47:13 -0700 | [diff] [blame] | 299 | ":libgui_bufferqueue_sources", |
| 300 | ], |
Huihong Luo | 02186fb | 2022-02-23 14:21:54 -0800 | [diff] [blame] | 301 | |
| 302 | aidl: { |
| 303 | include_dirs: [ |
| 304 | "frameworks/native/libs/gui", |
| 305 | ], |
| 306 | }, |
Chong Zhang | dbfaf4d | 2019-05-03 10:33:18 -0700 | [diff] [blame] | 307 | } |
| 308 | |
Lloyd Pique | 1ebe090 | 2019-10-04 14:47:13 -0700 | [diff] [blame] | 309 | filegroup { |
| 310 | name: "libgui_bufferqueue_sources", |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 311 | srcs: [ |
Yin-Chia Yeh | 64ee5f5 | 2020-01-02 17:53:18 +0700 | [diff] [blame] | 312 | "BatchBufferOps.cpp", |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 313 | "BufferItem.cpp", |
| 314 | "BufferQueue.cpp", |
| 315 | "BufferQueueConsumer.cpp", |
| 316 | "BufferQueueCore.cpp", |
| 317 | "BufferQueueProducer.cpp", |
| 318 | "BufferQueueThreadState.cpp", |
| 319 | "BufferSlot.cpp", |
| 320 | "FrameTimestamps.cpp", |
| 321 | "GLConsumerUtils.cpp", |
| 322 | "HdrMetadata.cpp", |
Yin-Chia Yeh | 64ee5f5 | 2020-01-02 17:53:18 +0700 | [diff] [blame] | 323 | "IGraphicBufferProducerFlattenables.cpp", |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 324 | "bufferqueue/1.0/Conversion.cpp", |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 325 | "bufferqueue/1.0/H2BProducerListener.cpp", |
| 326 | "bufferqueue/1.0/WProducerListener.cpp", |
| 327 | "bufferqueue/2.0/B2HGraphicBufferProducer.cpp", |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 328 | "bufferqueue/2.0/H2BProducerListener.cpp", |
| 329 | "bufferqueue/2.0/types.cpp", |
| 330 | ], |
Lloyd Pique | 1ebe090 | 2019-10-04 14:47:13 -0700 | [diff] [blame] | 331 | } |
| 332 | |
| 333 | // Common build config shared by libgui and libgui_bufferqueue_static. |
| 334 | cc_defaults { |
| 335 | name: "libgui_bufferqueue-defaults", |
| 336 | |
Sally Qi | 6920a2f | 2022-08-26 10:40:05 -0700 | [diff] [blame] | 337 | defaults: ["android.hardware.graphics.common-ndk_shared"], |
| 338 | |
Lloyd Pique | 1ebe090 | 2019-10-04 14:47:13 -0700 | [diff] [blame] | 339 | cflags: [ |
| 340 | "-Wall", |
| 341 | "-Werror", |
| 342 | ], |
| 343 | |
| 344 | cppflags: [ |
| 345 | "-Wextra", |
| 346 | "-DDEBUG_ONLY_CODE=0", |
| 347 | ], |
| 348 | |
| 349 | product_variables: { |
| 350 | eng: { |
| 351 | cppflags: [ |
| 352 | "-UDEBUG_ONLY_CODE", |
| 353 | "-DDEBUG_ONLY_CODE=1", |
| 354 | ], |
| 355 | }, |
| 356 | }, |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 357 | |
David Stevens | 7347f0b | 2020-01-15 20:19:22 +0900 | [diff] [blame] | 358 | whole_static_libs: [ |
Trevor Radcliffe | ba8800d | 2022-07-08 17:58:06 +0000 | [diff] [blame] | 359 | "libLibGuiProperties", |
David Stevens | 7347f0b | 2020-01-15 20:19:22 +0900 | [diff] [blame] | 360 | ], |
| 361 | |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 362 | shared_libs: [ |
| 363 | "android.hardware.graphics.bufferqueue@1.0", |
| 364 | "android.hardware.graphics.bufferqueue@2.0", |
| 365 | "android.hardware.graphics.common@1.1", |
| 366 | "android.hardware.graphics.common@1.2", |
| 367 | "android.hidl.token@1.0-utils", |
| 368 | "libbase", |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 369 | "libcutils", |
| 370 | "libEGL", |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 371 | "libhidlbase", |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 372 | "liblog", |
| 373 | "libnativewindow", |
| 374 | "libsync", |
| 375 | "libui", |
| 376 | "libutils", |
| 377 | "libvndksupport", |
| 378 | ], |
| 379 | |
Steven Moreland | 2b3f3cd | 2020-01-31 14:56:45 -0800 | [diff] [blame] | 380 | static_libs: [ |
| 381 | "libbinderthreadstateutils", |
| 382 | ], |
| 383 | |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 384 | header_libs: [ |
| 385 | "libgui_headers", |
| 386 | "libnativebase_headers", |
| 387 | ], |
| 388 | |
Ady Abraham | 62f216c | 2020-10-13 19:07:23 -0700 | [diff] [blame] | 389 | include_dirs: [ |
| 390 | "frameworks/native/include", |
| 391 | ], |
| 392 | |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 393 | export_shared_lib_headers: [ |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 394 | "libEGL", |
| 395 | "libnativewindow", |
| 396 | "libui", |
| 397 | "android.hardware.graphics.bufferqueue@1.0", |
| 398 | "android.hardware.graphics.bufferqueue@2.0", |
| 399 | "android.hardware.graphics.common@1.1", |
| 400 | "android.hardware.graphics.common@1.2", |
| 401 | "android.hidl.token@1.0-utils", |
| 402 | ], |
| 403 | |
| 404 | export_header_lib_headers: [ |
| 405 | "libgui_headers", |
| 406 | ], |
| 407 | |
| 408 | export_include_dirs: [ |
| 409 | "include", |
| 410 | ], |
| 411 | } |
| 412 | |
Lloyd Pique | 1ebe090 | 2019-10-04 14:47:13 -0700 | [diff] [blame] | 413 | // GMocks for use by external code |
| 414 | cc_library_static { |
| 415 | name: "libgui_mocks", |
| 416 | vendor_available: false, |
| 417 | |
| 418 | defaults: ["libgui_bufferqueue-defaults"], |
| 419 | static_libs: [ |
| 420 | "libgtest", |
| 421 | "libgmock", |
| 422 | ], |
| 423 | |
| 424 | srcs: [ |
Huihong Luo | 0a81aa3 | 2022-02-22 16:02:36 -0800 | [diff] [blame] | 425 | ":libgui_frame_event_aidl", |
Lloyd Pique | 1ebe090 | 2019-10-04 14:47:13 -0700 | [diff] [blame] | 426 | "mock/GraphicBufferConsumer.cpp", |
| 427 | "mock/GraphicBufferProducer.cpp", |
| 428 | ], |
| 429 | } |
| 430 | |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 431 | subdirs = ["tests"] |