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