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