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", |
Jiyong Park | 172bd72 | 2017-06-21 12:14:18 +0900 | [diff] [blame] | 40 | } |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 41 | |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 42 | cc_library_headers { |
| 43 | name: "libgui_aidl_headers", |
| 44 | vendor_available: true, |
| 45 | static_libs: [ |
| 46 | "libgui_aidl_static", |
| 47 | ], |
| 48 | |
| 49 | export_static_lib_headers: [ |
| 50 | "libgui_aidl_static", |
| 51 | ], |
| 52 | } |
| 53 | |
chaviw | 3277faf | 2021-05-19 16:45:23 -0500 | [diff] [blame^] | 54 | // AIDL files that should be exposed to java |
| 55 | filegroup { |
| 56 | name: "guiconstants_aidl", |
| 57 | srcs: [ |
| 58 | "android/**/TouchOcclusionMode.aidl", |
| 59 | ], |
| 60 | } |
| 61 | |
| 62 | cc_library_static { |
| 63 | name: "libgui_window_info_static", |
| 64 | vendor_available: true, |
| 65 | host_supported: true, |
| 66 | srcs: [ |
| 67 | ":guiconstants_aidl", |
| 68 | "android/gui/FocusRequest.aidl", |
| 69 | "android/gui/InputApplicationInfo.aidl", |
| 70 | "android/gui/WindowInfo.aidl", |
| 71 | "WindowInfo.cpp", |
| 72 | ], |
| 73 | |
| 74 | shared_libs: [ |
| 75 | "libbinder", |
| 76 | ], |
| 77 | |
| 78 | local_include_dirs: [ |
| 79 | "include", |
| 80 | ], |
| 81 | |
| 82 | export_shared_lib_headers: [ |
| 83 | "libbinder", |
| 84 | ], |
| 85 | |
| 86 | static_libs: [ |
| 87 | "libui-types", |
| 88 | ], |
| 89 | |
| 90 | aidl: { |
| 91 | export_aidl_headers: true |
| 92 | }, |
| 93 | |
| 94 | include_dirs: [ |
| 95 | "frameworks/native/include", |
| 96 | ], |
| 97 | } |
| 98 | |
Pablo Gamito | 6ee484d | 2020-07-30 14:26:28 +0000 | [diff] [blame] | 99 | filegroup { |
| 100 | name: "libgui_aidl", |
| 101 | srcs: ["aidl/**/*.aidl"], |
| 102 | path: "aidl/", |
| 103 | } |
| 104 | |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 105 | cc_library_static { |
| 106 | name: "libgui_aidl_static", |
| 107 | vendor_available: true, |
| 108 | srcs: [ |
| 109 | ":libgui_aidl", |
| 110 | ], |
| 111 | |
| 112 | shared_libs: [ |
| 113 | "libbinder", |
| 114 | "libui", |
| 115 | ], |
| 116 | |
| 117 | local_include_dirs: [ |
| 118 | "include", |
| 119 | ], |
| 120 | |
| 121 | export_shared_lib_headers: [ |
| 122 | "libbinder", |
| 123 | ], |
| 124 | |
chaviw | 3277faf | 2021-05-19 16:45:23 -0500 | [diff] [blame^] | 125 | static_libs: [ |
| 126 | "libui-types", |
| 127 | ], |
| 128 | |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 129 | aidl: { |
| 130 | export_aidl_headers: true |
| 131 | } |
| 132 | } |
| 133 | |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 134 | cc_library_shared { |
| 135 | name: "libgui", |
Justin Yun | 0b9bc01 | 2021-01-05 17:39:05 +0900 | [diff] [blame] | 136 | vendor_available: true, |
Justin Yun | 71d6c885 | 2017-07-24 15:19:45 +0900 | [diff] [blame] | 137 | vndk: { |
| 138 | enabled: true, |
Justin Yun | 0b9bc01 | 2021-01-05 17:39:05 +0900 | [diff] [blame] | 139 | private: true, |
Justin Yun | 71d6c885 | 2017-07-24 15:19:45 +0900 | [diff] [blame] | 140 | }, |
Jiyong Park | a75d3d6 | 2018-04-09 12:16:30 +0900 | [diff] [blame] | 141 | double_loadable: true, |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 142 | |
Chong Zhang | dbfaf4d | 2019-05-03 10:33:18 -0700 | [diff] [blame] | 143 | defaults: ["libgui_bufferqueue-defaults"], |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 144 | |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 145 | static_libs: [ |
| 146 | "libgui_aidl_static", |
chaviw | 3277faf | 2021-05-19 16:45:23 -0500 | [diff] [blame^] | 147 | "libgui_window_info_static", |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 148 | ], |
| 149 | export_static_lib_headers: [ |
| 150 | "libgui_aidl_static", |
chaviw | 3277faf | 2021-05-19 16:45:23 -0500 | [diff] [blame^] | 151 | "libgui_window_info_static", |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 152 | ], |
| 153 | |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 154 | srcs: [ |
Daichi Hirono | f474d3d | 2019-11-05 08:54:07 +0900 | [diff] [blame] | 155 | ":framework_native_aidl", |
Siarhei Vishniakou | fc434ac | 2021-01-13 10:28:00 -1000 | [diff] [blame] | 156 | ":inputconstants_aidl", |
Lloyd Pique | 1ebe090 | 2019-10-04 14:47:13 -0700 | [diff] [blame] | 157 | ":libgui_bufferqueue_sources", |
| 158 | |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 159 | "BitTube.cpp", |
Robert Carr | 78c25dd | 2019-08-15 14:10:33 -0700 | [diff] [blame] | 160 | "BLASTBufferQueue.cpp", |
Jiwen 'Steve' Cai | a2a27b2 | 2018-02-07 17:29:56 -0800 | [diff] [blame] | 161 | "BufferHubConsumer.cpp", |
Jiwen 'Steve' Cai | 0f95084 | 2018-01-16 17:05:54 -0800 | [diff] [blame] | 162 | "BufferHubProducer.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 163 | "BufferItemConsumer.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 164 | "ConsumerBase.cpp", |
| 165 | "CpuConsumer.cpp", |
Ady Abraham | a3b08ef | 2019-07-15 18:43:10 -0700 | [diff] [blame] | 166 | "DebugEGLImageTracker.cpp", |
Alec Mouri | 77a5387 | 2019-10-28 16:44:36 -0700 | [diff] [blame] | 167 | "DisplayEventDispatcher.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 168 | "DisplayEventReceiver.cpp", |
Siarhei Vishniakou | fc434ac | 2021-01-13 10:28:00 -1000 | [diff] [blame] | 169 | "FrameTimelineInfo.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 170 | "GLConsumer.cpp", |
Chong Zhang | 6249309 | 2020-01-15 16:04:47 -0800 | [diff] [blame] | 171 | "IConsumerListener.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 172 | "IDisplayEventConnection.cpp", |
Chong Zhang | 6249309 | 2020-01-15 16:04:47 -0800 | [diff] [blame] | 173 | "IGraphicBufferConsumer.cpp", |
| 174 | "IGraphicBufferProducer.cpp", |
| 175 | "IProducerListener.cpp", |
Dan Stoza | 84ab937 | 2018-12-17 15:27:57 -0800 | [diff] [blame] | 176 | "IRegionSamplingListener.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 177 | "ISurfaceComposer.cpp", |
| 178 | "ISurfaceComposerClient.cpp", |
Marissa Wall | 7a9b6ff | 2018-08-21 17:26:20 -0700 | [diff] [blame] | 179 | "ITransactionCompletedListener.cpp", |
Kalle Raita | a099a24 | 2017-01-11 11:17:29 -0800 | [diff] [blame] | 180 | "LayerDebugInfo.cpp", |
Evan Rosky | 1f6d6d5 | 2018-12-06 10:47:26 -0800 | [diff] [blame] | 181 | "LayerMetadata.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 182 | "LayerState.cpp", |
Chong Zhang | 6249309 | 2020-01-15 16:04:47 -0800 | [diff] [blame] | 183 | "OccupancyTracker.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 184 | "StreamSplitter.cpp", |
chaviw | 0ef7caa | 2021-01-05 11:04:50 -0800 | [diff] [blame] | 185 | "ScreenCaptureResults.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 186 | "Surface.cpp", |
| 187 | "SurfaceControl.cpp", |
| 188 | "SurfaceComposerClient.cpp", |
| 189 | "SyncFeatures.cpp", |
Pablo Gamito | 6ee484d | 2020-07-30 14:26:28 +0000 | [diff] [blame] | 190 | "TransactionTracing.cpp", |
Mathias Agopian | 05debe1 | 2017-02-08 17:04:18 -0800 | [diff] [blame] | 191 | "view/Surface.cpp", |
Chong Zhang | 6249309 | 2020-01-15 16:04:47 -0800 | [diff] [blame] | 192 | "bufferqueue/1.0/B2HProducerListener.cpp", |
| 193 | "bufferqueue/1.0/H2BGraphicBufferProducer.cpp", |
| 194 | "bufferqueue/2.0/B2HProducerListener.cpp", |
| 195 | "bufferqueue/2.0/H2BGraphicBufferProducer.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 196 | ], |
| 197 | |
| 198 | shared_libs: [ |
Fan Xu | 021776e | 2018-12-05 13:34:48 -0800 | [diff] [blame] | 199 | "android.frameworks.bufferhub@1.0", |
Chong Zhang | 6249309 | 2020-01-15 16:04:47 -0800 | [diff] [blame] | 200 | "libbinder", |
Jiwen 'Steve' Cai | 57ae3ee | 2018-05-03 17:51:52 -0700 | [diff] [blame] | 201 | "libbufferhub", |
Lloyd Pique | 3b74578 | 2018-08-31 17:34:40 -0700 | [diff] [blame] | 202 | "libbufferhubqueue", // TODO(b/70046255): Remove this once BufferHub is integrated into libgui. |
Pawin Vongmasa | e672cd0 | 2019-02-14 16:01:29 -0800 | [diff] [blame] | 203 | "libpdx_default_transport", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 204 | ], |
| 205 | |
Chong Zhang | 6249309 | 2020-01-15 16:04:47 -0800 | [diff] [blame] | 206 | export_shared_lib_headers: [ |
| 207 | "libbinder", |
| 208 | ], |
| 209 | |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 210 | export_header_lib_headers: [ |
| 211 | "libgui_aidl_headers", |
| 212 | ], |
| 213 | |
Jiyong Park | a75d3d6 | 2018-04-09 12:16:30 +0900 | [diff] [blame] | 214 | // bufferhub is not used when building libgui for vendors |
| 215 | target: { |
| 216 | vendor: { |
Jayant Chowdhary | ad9fe27 | 2019-03-07 22:36:06 -0800 | [diff] [blame] | 217 | cflags: [ |
| 218 | "-DNO_BUFFERHUB", |
Jayant Chowdhary | ad9fe27 | 2019-03-07 22:36:06 -0800 | [diff] [blame] | 219 | ], |
Jiyong Park | a75d3d6 | 2018-04-09 12:16:30 +0900 | [diff] [blame] | 220 | exclude_srcs: [ |
| 221 | "BufferHubConsumer.cpp", |
| 222 | "BufferHubProducer.cpp", |
| 223 | ], |
| 224 | exclude_shared_libs: [ |
Fan Xu | 021776e | 2018-12-05 13:34:48 -0800 | [diff] [blame] | 225 | "android.frameworks.bufferhub@1.0", |
Jiwen 'Steve' Cai | 57ae3ee | 2018-05-03 17:51:52 -0700 | [diff] [blame] | 226 | "libbufferhub", |
Jiyong Park | a75d3d6 | 2018-04-09 12:16:30 +0900 | [diff] [blame] | 227 | "libbufferhubqueue", |
Pawin Vongmasa | e672cd0 | 2019-02-14 16:01:29 -0800 | [diff] [blame] | 228 | "libpdx_default_transport", |
Jiyong Park | a75d3d6 | 2018-04-09 12:16:30 +0900 | [diff] [blame] | 229 | ], |
| 230 | }, |
| 231 | }, |
| 232 | |
Daichi Hirono | f474d3d | 2019-11-05 08:54:07 +0900 | [diff] [blame] | 233 | aidl: { |
| 234 | export_aidl_headers: true, |
Yi Kong | ccc1c7c | 2021-02-22 17:44:17 +0800 | [diff] [blame] | 235 | }, |
| 236 | |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 237 | header_libs: [ |
| 238 | "libdvr_headers", |
| 239 | "libgui_aidl_headers", |
| 240 | "libpdx_headers", |
| 241 | ], |
| 242 | |
Yi Kong | ccc1c7c | 2021-02-22 17:44:17 +0800 | [diff] [blame] | 243 | pgo: { |
| 244 | sampling: true, |
| 245 | profile_file: "libgui/libgui.profdata", |
| 246 | }, |
Yi Kong | b1f2d20 | 2021-02-23 17:52:42 +0800 | [diff] [blame] | 247 | |
| 248 | lto: { |
| 249 | thin: true, |
| 250 | }, |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 251 | } |
| 252 | |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 253 | // Used by media codec services exclusively as a static lib for |
Chong Zhang | dbfaf4d | 2019-05-03 10:33:18 -0700 | [diff] [blame] | 254 | // core bufferqueue support only. |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 255 | cc_library_static { |
| 256 | name: "libgui_bufferqueue_static", |
| 257 | vendor_available: true, |
Jooyung Han | 54042e0 | 2020-05-13 16:04:07 +0900 | [diff] [blame] | 258 | apex_available: [ |
| 259 | "//apex_available:platform", |
| 260 | "com.android.media.swcodec", |
| 261 | ], |
| 262 | min_sdk_version: "29", |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 263 | |
Chong Zhang | dbfaf4d | 2019-05-03 10:33:18 -0700 | [diff] [blame] | 264 | cflags: [ |
| 265 | "-DNO_BUFFERHUB", |
Chong Zhang | 6249309 | 2020-01-15 16:04:47 -0800 | [diff] [blame] | 266 | "-DNO_BINDER", |
Chong Zhang | dbfaf4d | 2019-05-03 10:33:18 -0700 | [diff] [blame] | 267 | ], |
| 268 | |
| 269 | defaults: ["libgui_bufferqueue-defaults"], |
Lloyd Pique | 1ebe090 | 2019-10-04 14:47:13 -0700 | [diff] [blame] | 270 | |
| 271 | srcs: [ |
Siarhei Vishniakou | fc434ac | 2021-01-13 10:28:00 -1000 | [diff] [blame] | 272 | ":inputconstants_aidl", |
Lloyd Pique | 1ebe090 | 2019-10-04 14:47:13 -0700 | [diff] [blame] | 273 | ":libgui_bufferqueue_sources", |
Alec Mouri | cdedc5d | 2021-03-01 22:39:55 -0800 | [diff] [blame] | 274 | ":libgui_aidl", |
Lloyd Pique | 1ebe090 | 2019-10-04 14:47:13 -0700 | [diff] [blame] | 275 | ], |
Chong Zhang | dbfaf4d | 2019-05-03 10:33:18 -0700 | [diff] [blame] | 276 | } |
| 277 | |
Lloyd Pique | 1ebe090 | 2019-10-04 14:47:13 -0700 | [diff] [blame] | 278 | filegroup { |
| 279 | name: "libgui_bufferqueue_sources", |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 280 | srcs: [ |
Yin-Chia Yeh | 64ee5f5 | 2020-01-02 17:53:18 +0700 | [diff] [blame] | 281 | "BatchBufferOps.cpp", |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 282 | "BufferItem.cpp", |
| 283 | "BufferQueue.cpp", |
| 284 | "BufferQueueConsumer.cpp", |
| 285 | "BufferQueueCore.cpp", |
| 286 | "BufferQueueProducer.cpp", |
| 287 | "BufferQueueThreadState.cpp", |
| 288 | "BufferSlot.cpp", |
| 289 | "FrameTimestamps.cpp", |
| 290 | "GLConsumerUtils.cpp", |
| 291 | "HdrMetadata.cpp", |
Yin-Chia Yeh | 64ee5f5 | 2020-01-02 17:53:18 +0700 | [diff] [blame] | 292 | "IGraphicBufferProducerFlattenables.cpp", |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 293 | "bufferqueue/1.0/Conversion.cpp", |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 294 | "bufferqueue/1.0/H2BProducerListener.cpp", |
| 295 | "bufferqueue/1.0/WProducerListener.cpp", |
| 296 | "bufferqueue/2.0/B2HGraphicBufferProducer.cpp", |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 297 | "bufferqueue/2.0/H2BProducerListener.cpp", |
| 298 | "bufferqueue/2.0/types.cpp", |
| 299 | ], |
Lloyd Pique | 1ebe090 | 2019-10-04 14:47:13 -0700 | [diff] [blame] | 300 | } |
| 301 | |
| 302 | // Common build config shared by libgui and libgui_bufferqueue_static. |
| 303 | cc_defaults { |
| 304 | name: "libgui_bufferqueue-defaults", |
| 305 | |
| 306 | clang: true, |
| 307 | cflags: [ |
| 308 | "-Wall", |
| 309 | "-Werror", |
| 310 | ], |
| 311 | |
| 312 | cppflags: [ |
| 313 | "-Wextra", |
| 314 | "-DDEBUG_ONLY_CODE=0", |
| 315 | ], |
| 316 | |
| 317 | product_variables: { |
| 318 | eng: { |
| 319 | cppflags: [ |
| 320 | "-UDEBUG_ONLY_CODE", |
| 321 | "-DDEBUG_ONLY_CODE=1", |
| 322 | ], |
| 323 | }, |
| 324 | }, |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 325 | |
David Stevens | 7347f0b | 2020-01-15 20:19:22 +0900 | [diff] [blame] | 326 | whole_static_libs: [ |
| 327 | "LibGuiProperties", |
| 328 | ], |
| 329 | |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 330 | shared_libs: [ |
| 331 | "android.hardware.graphics.bufferqueue@1.0", |
| 332 | "android.hardware.graphics.bufferqueue@2.0", |
| 333 | "android.hardware.graphics.common@1.1", |
| 334 | "android.hardware.graphics.common@1.2", |
| 335 | "android.hidl.token@1.0-utils", |
| 336 | "libbase", |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 337 | "libcutils", |
| 338 | "libEGL", |
| 339 | "libGLESv2", |
| 340 | "libhidlbase", |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 341 | "liblog", |
| 342 | "libnativewindow", |
| 343 | "libsync", |
| 344 | "libui", |
| 345 | "libutils", |
| 346 | "libvndksupport", |
| 347 | ], |
| 348 | |
Steven Moreland | 2b3f3cd | 2020-01-31 14:56:45 -0800 | [diff] [blame] | 349 | static_libs: [ |
| 350 | "libbinderthreadstateutils", |
| 351 | ], |
| 352 | |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 353 | header_libs: [ |
| 354 | "libgui_headers", |
| 355 | "libnativebase_headers", |
| 356 | ], |
| 357 | |
Ady Abraham | 62f216c | 2020-10-13 19:07:23 -0700 | [diff] [blame] | 358 | include_dirs: [ |
| 359 | "frameworks/native/include", |
| 360 | ], |
| 361 | |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 362 | export_shared_lib_headers: [ |
Chong Zhang | 60fa4fd | 2019-04-19 10:00:27 -0700 | [diff] [blame] | 363 | "libEGL", |
| 364 | "libnativewindow", |
| 365 | "libui", |
| 366 | "android.hardware.graphics.bufferqueue@1.0", |
| 367 | "android.hardware.graphics.bufferqueue@2.0", |
| 368 | "android.hardware.graphics.common@1.1", |
| 369 | "android.hardware.graphics.common@1.2", |
| 370 | "android.hidl.token@1.0-utils", |
| 371 | ], |
| 372 | |
| 373 | export_header_lib_headers: [ |
| 374 | "libgui_headers", |
| 375 | ], |
| 376 | |
| 377 | export_include_dirs: [ |
| 378 | "include", |
| 379 | ], |
| 380 | } |
| 381 | |
Lloyd Pique | 1ebe090 | 2019-10-04 14:47:13 -0700 | [diff] [blame] | 382 | // GMocks for use by external code |
| 383 | cc_library_static { |
| 384 | name: "libgui_mocks", |
| 385 | vendor_available: false, |
| 386 | |
| 387 | defaults: ["libgui_bufferqueue-defaults"], |
| 388 | static_libs: [ |
| 389 | "libgtest", |
| 390 | "libgmock", |
| 391 | ], |
| 392 | |
| 393 | srcs: [ |
| 394 | "mock/GraphicBufferConsumer.cpp", |
| 395 | "mock/GraphicBufferProducer.cpp", |
| 396 | ], |
| 397 | } |
| 398 | |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 399 | subdirs = ["tests"] |