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