Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 1 | cc_defaults { |
| 2 | name: "hwui_defaults", |
| 3 | defaults: [ |
| 4 | "hwui_static_deps", |
Pirama Arumuga Nainar | 0dfd4be | 2017-11-16 22:40:00 -0800 | [diff] [blame] | 5 | "skia_deps", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 6 | //"hwui_bugreport_font_cache_usage", |
| 7 | //"hwui_compile_for_perf", |
Pirama Arumuga Nainar | 0dfd4be | 2017-11-16 22:40:00 -0800 | [diff] [blame] | 8 | "hwui_pgo", |
Pirama Arumuga Nainar | b7913e1 | 2018-03-09 00:03:57 +0000 | [diff] [blame] | 9 | "hwui_lto", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 10 | ], |
| 11 | |
John Reck | 283bb46 | 2018-12-13 16:40:14 -0800 | [diff] [blame] | 12 | cpp_std: "experimental", |
| 13 | |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 14 | cflags: [ |
| 15 | "-DEGL_EGLEXT_PROTOTYPES", |
| 16 | "-DGL_GLEXT_PROTOTYPES", |
| 17 | "-DATRACE_TAG=ATRACE_TAG_VIEW", |
| 18 | "-DLOG_TAG=\"OpenGLRenderer\"", |
| 19 | "-Wall", |
| 20 | "-Wno-unused-parameter", |
| 21 | "-Wunreachable-code", |
| 22 | "-Werror", |
| 23 | "-fvisibility=hidden", |
| 24 | |
| 25 | // GCC false-positives on this warning, and since we -Werror that's |
| 26 | // a problem |
| 27 | "-Wno-free-nonheap-object", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 28 | ], |
| 29 | |
| 30 | include_dirs: [ |
| 31 | "external/skia/include/private", |
| 32 | "external/skia/src/core", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 33 | ], |
| 34 | |
| 35 | product_variables: { |
John Reck | 2729418 | 2018-07-11 11:21:09 -0700 | [diff] [blame] | 36 | eng: { |
| 37 | lto: { |
| 38 | never: true, |
| 39 | }, |
| 40 | }, |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 41 | }, |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 42 | |
| 43 | target: { |
| 44 | android: { |
| 45 | include_dirs: [ |
| 46 | "external/skia/src/effects", |
| 47 | "external/skia/src/image", |
| 48 | "external/skia/src/utils", |
| 49 | "external/skia/src/gpu", |
| 50 | "external/skia/src/shaders", |
| 51 | ], |
| 52 | }, |
| 53 | host: { |
| 54 | include_dirs: [ |
| 55 | "external/vulkan-headers/include", |
Fedor Kudasov | 86bd214 | 2019-06-18 15:51:57 +0100 | [diff] [blame] | 56 | "frameworks/native/libs/math/include", |
| 57 | "frameworks/native/libs/ui/include", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 58 | ], |
| 59 | cflags: [ |
| 60 | "-Wno-unused-variable", |
| 61 | ], |
| 62 | } |
| 63 | } |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 64 | } |
| 65 | |
| 66 | cc_defaults { |
| 67 | name: "hwui_static_deps", |
| 68 | shared_libs: [ |
Jerome Gaillard | a02a12d | 2019-05-28 18:07:56 +0100 | [diff] [blame] | 69 | "libbase", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 70 | "libharfbuzz_ng", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 71 | "libminikin", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 72 | ], |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 73 | |
| 74 | target: { |
| 75 | android: { |
| 76 | shared_libs: [ |
| 77 | "liblog", |
| 78 | "libcutils", |
| 79 | "libstatslog", |
| 80 | "libutils", |
| 81 | "libEGL", |
| 82 | "libGLESv1_CM", |
| 83 | "libGLESv2", |
| 84 | "libGLESv3", |
| 85 | "libvulkan", |
| 86 | "libui", |
Alec Mouri | 22d753f | 2019-09-05 17:11:45 -0700 | [diff] [blame] | 87 | "libnativedisplay", |
Derek Sollenberger | e78f7c9 | 2019-07-31 15:18:47 -0400 | [diff] [blame] | 88 | "libnativewindow", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 89 | "libprotobuf-cpp-lite", |
| 90 | "libft2", |
| 91 | "libandroidfw", |
| 92 | "libcrypto", |
| 93 | "libsync", |
Stan Iliev | c904381 | 2020-02-03 16:57:09 -0500 | [diff] [blame] | 94 | "libstatspull", |
| 95 | "libstatssocket", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 96 | ], |
| 97 | static_libs: [ |
| 98 | "libEGL_blobCache", |
Stan Iliev | c904381 | 2020-02-03 16:57:09 -0500 | [diff] [blame] | 99 | "libprotoutil", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 100 | ], |
| 101 | }, |
| 102 | host: { |
| 103 | static_libs: [ |
| 104 | "libandroidfw", |
| 105 | "libutils", |
| 106 | ], |
| 107 | } |
| 108 | } |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 109 | } |
| 110 | |
| 111 | cc_defaults { |
| 112 | name: "hwui_bugreport_font_cache_usage", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 113 | cflags: ["-DBUGREPORT_FONT_CACHE_USAGE"], |
| 114 | } |
| 115 | |
| 116 | cc_defaults { |
| 117 | name: "hwui_compile_for_perf", |
| 118 | // TODO: Non-arm? |
| 119 | cflags: [ |
| 120 | "-fno-omit-frame-pointer", |
| 121 | "-marm", |
| 122 | "-mapcs", |
| 123 | ], |
| 124 | } |
| 125 | |
Pirama Arumuga Nainar | 0dfd4be | 2017-11-16 22:40:00 -0800 | [diff] [blame] | 126 | // Build libhwui with PGO by default. |
| 127 | // Location of PGO profile data is defined in build/soong/cc/pgo.go |
| 128 | // and is separate from hwui. |
| 129 | // To turn it off, set ANDROID_PGO_NO_PROFILE_USE environment variable |
| 130 | // or set enable_profile_use property to false. |
| 131 | cc_defaults { |
| 132 | name: "hwui_pgo", |
| 133 | |
| 134 | pgo: { |
| 135 | instrumentation: true, |
| 136 | profile_file: "hwui/hwui.profdata", |
| 137 | benchmarks: ["hwui"], |
Zhizhou Yang | 58e1b78 | 2017-12-06 16:59:06 -0800 | [diff] [blame] | 138 | enable_profile_use: true, |
Pirama Arumuga Nainar | 0dfd4be | 2017-11-16 22:40:00 -0800 | [diff] [blame] | 139 | }, |
| 140 | } |
| 141 | |
Zhizhou Yang | f30f112 | 2018-02-26 17:59:38 -0800 | [diff] [blame] | 142 | // Build hwui library with ThinLTO by default. |
| 143 | cc_defaults { |
| 144 | name: "hwui_lto", |
| 145 | target: { |
| 146 | android: { |
| 147 | lto: { |
| 148 | thin: true, |
| 149 | }, |
| 150 | }, |
| 151 | }, |
| 152 | } |
| 153 | |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 154 | // ------------------------ |
| 155 | // library |
| 156 | // ------------------------ |
| 157 | |
| 158 | cc_defaults { |
| 159 | name: "libhwui_defaults", |
| 160 | defaults: ["hwui_defaults"], |
Derek Sollenberger | d938e5a | 2017-07-24 09:42:07 -0400 | [diff] [blame] | 161 | |
| 162 | whole_static_libs: ["libskia"], |
| 163 | |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 164 | srcs: [ |
Fedor Kudasov | 86bd214 | 2019-06-18 15:51:57 +0100 | [diff] [blame] | 165 | "pipeline/skia/SkiaDisplayList.cpp", |
| 166 | "pipeline/skia/SkiaRecordingCanvas.cpp", |
| 167 | "pipeline/skia/RenderNodeDrawable.cpp", |
| 168 | "pipeline/skia/ReorderBarrierDrawables.cpp", |
Fedor Kudasov | 666f8a5 | 2019-07-03 15:21:14 +0100 | [diff] [blame] | 169 | "renderthread/Frame.cpp", |
| 170 | "renderthread/RenderTask.cpp", |
| 171 | "renderthread/TimeLord.cpp", |
Derek Sollenberger | 2d14213 | 2018-01-22 10:25:26 -0500 | [diff] [blame] | 172 | "hwui/AnimatedImageDrawable.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 173 | "hwui/Bitmap.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 174 | "hwui/Canvas.cpp", |
Leon Scroggins III | 753a56f | 2019-12-11 11:02:15 -0500 | [diff] [blame] | 175 | "hwui/ImageDecoder.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 176 | "hwui/MinikinSkia.cpp", |
| 177 | "hwui/MinikinUtils.cpp", |
| 178 | "hwui/PaintImpl.cpp", |
| 179 | "hwui/Typeface.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 180 | "utils/Blur.cpp", |
Fedor Kudasov | 86bd214 | 2019-06-18 15:51:57 +0100 | [diff] [blame] | 181 | "utils/Color.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 182 | "utils/LinearAllocator.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 183 | "utils/VectorDrawableUtils.cpp", |
Fedor Kudasov | 86bd214 | 2019-06-18 15:51:57 +0100 | [diff] [blame] | 184 | "AnimationContext.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 185 | "Animator.cpp", |
Fedor Kudasov | 86bd214 | 2019-06-18 15:51:57 +0100 | [diff] [blame] | 186 | "AnimatorManager.cpp", |
| 187 | "CanvasTransform.cpp", |
| 188 | "DamageAccumulator.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 189 | "Interpolator.cpp", |
Fedor Kudasov | 86bd214 | 2019-06-18 15:51:57 +0100 | [diff] [blame] | 190 | "LightingInfo.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 191 | "Matrix.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 192 | "PathParser.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 193 | "Properties.cpp", |
| 194 | "PropertyValuesAnimatorSet.cpp", |
| 195 | "PropertyValuesHolder.cpp", |
Fedor Kudasov | 86bd214 | 2019-06-18 15:51:57 +0100 | [diff] [blame] | 196 | "RecordingCanvas.cpp", |
| 197 | "RenderNode.cpp", |
| 198 | "RenderProperties.cpp", |
Fedor Kudasov | 09cfce0 | 2019-07-04 09:41:13 +0100 | [diff] [blame] | 199 | "RootRenderNode.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 200 | "SkiaCanvas.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 201 | "VectorDrawable.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 202 | ], |
| 203 | |
Kweku Adams | 228b6d2 | 2018-04-12 13:09:04 -0700 | [diff] [blame] | 204 | proto: { |
| 205 | export_proto_headers: true, |
| 206 | }, |
| 207 | |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 208 | export_include_dirs: ["."], |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 209 | |
| 210 | target: { |
| 211 | android: { |
| 212 | |
| 213 | srcs: [ |
Jerome Gaillard | f9a4dc4 | 2020-01-29 15:23:26 +0000 | [diff] [blame] | 214 | "hwui/AnimatedImageThread.cpp", |
Stan Iliev | e0fae23 | 2020-01-07 17:21:49 -0500 | [diff] [blame] | 215 | "pipeline/skia/ATraceMemoryDump.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 216 | "pipeline/skia/GLFunctorDrawable.cpp", |
| 217 | "pipeline/skia/LayerDrawable.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 218 | "pipeline/skia/ShaderCache.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 219 | "pipeline/skia/SkiaMemoryTracer.cpp", |
| 220 | "pipeline/skia/SkiaOpenGLPipeline.cpp", |
| 221 | "pipeline/skia/SkiaPipeline.cpp", |
| 222 | "pipeline/skia/SkiaProfileRenderer.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 223 | "pipeline/skia/SkiaVulkanPipeline.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 224 | "pipeline/skia/VkFunctorDrawable.cpp", |
| 225 | "pipeline/skia/VkInteropFunctorDrawable.cpp", |
| 226 | "renderstate/RenderState.cpp", |
| 227 | "renderthread/CacheManager.cpp", |
| 228 | "renderthread/CanvasContext.cpp", |
| 229 | "renderthread/DrawFrameTask.cpp", |
| 230 | "renderthread/EglManager.cpp", |
| 231 | "renderthread/ReliableSurface.cpp", |
| 232 | "renderthread/VulkanManager.cpp", |
| 233 | "renderthread/VulkanSurface.cpp", |
| 234 | "renderthread/RenderProxy.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 235 | "renderthread/RenderThread.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 236 | "service/GraphicsStatsService.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 237 | "thread/CommonPool.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 238 | "utils/GLUtils.cpp", |
| 239 | "utils/StringUtils.cpp", |
Stan Iliev | aaa9e83 | 2019-09-17 14:07:23 -0400 | [diff] [blame] | 240 | "AutoBackendTextureRelease.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 241 | "DeferredLayerUpdater.cpp", |
| 242 | "DeviceInfo.cpp", |
| 243 | "FrameInfo.cpp", |
| 244 | "FrameInfoVisualizer.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 245 | "HardwareBitmapUploader.cpp", |
| 246 | "HWUIProperties.sysprop", |
| 247 | "JankTracker.cpp", |
| 248 | "Layer.cpp", |
| 249 | "LayerUpdateQueue.cpp", |
| 250 | "ProfileData.cpp", |
| 251 | "ProfileDataContainer.cpp", |
| 252 | "Readback.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 253 | "TreeInfo.cpp", |
| 254 | "WebViewFunctorManager.cpp", |
| 255 | "protos/graphicsstats.proto", |
| 256 | ], |
| 257 | |
| 258 | // Allow implicit fallthroughs in HardwareBitmapUploader.cpp until they are fixed. |
| 259 | cflags: ["-Wno-implicit-fallthrough"], |
| 260 | }, |
| 261 | host: { |
Fedor Kudasov | 86bd214 | 2019-06-18 15:51:57 +0100 | [diff] [blame] | 262 | srcs: [ |
| 263 | "utils/HostColorSpace.cpp", |
| 264 | ], |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 265 | export_static_lib_headers: [ |
| 266 | "libarect", |
| 267 | ], |
| 268 | } |
| 269 | } |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 270 | } |
| 271 | |
| 272 | cc_library { |
| 273 | name: "libhwui", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 274 | host_supported: true, |
Chris Craik | d17b63c | 2017-06-01 10:45:36 -0700 | [diff] [blame] | 275 | defaults: [ |
| 276 | "libhwui_defaults", |
Zhizhou Yang | 17371ec | 2017-10-13 11:42:13 -0700 | [diff] [blame] | 277 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 278 | } |
| 279 | |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 280 | cc_library_static { |
John Reck | 23462d8 | 2019-05-29 16:55:06 -0700 | [diff] [blame] | 281 | name: "libhwui_static", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 282 | defaults: [ |
| 283 | "libhwui_defaults", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 284 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 285 | } |
| 286 | |
| 287 | cc_defaults { |
| 288 | name: "hwui_test_defaults", |
| 289 | defaults: ["hwui_defaults"], |
| 290 | test_suites: ["device-tests"], |
Alec Mouri | 680414e | 2020-01-28 09:22:33 -0800 | [diff] [blame^] | 291 | target: { |
| 292 | android: { |
| 293 | shared_libs: [ |
| 294 | "libgui", |
| 295 | ], |
| 296 | } |
| 297 | }, |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 298 | srcs: [ |
| 299 | "tests/common/scenes/*.cpp", |
| 300 | "tests/common/LeakChecker.cpp", |
| 301 | "tests/common/TestListViewSceneBase.cpp", |
| 302 | "tests/common/TestContext.cpp", |
| 303 | "tests/common/TestScene.cpp", |
| 304 | "tests/common/TestUtils.cpp", |
| 305 | ], |
| 306 | } |
| 307 | |
| 308 | // ------------------------ |
| 309 | // unit tests |
| 310 | // ------------------------ |
| 311 | |
| 312 | cc_test { |
| 313 | name: "hwui_unit_tests", |
| 314 | defaults: ["hwui_test_defaults"], |
| 315 | |
| 316 | static_libs: [ |
| 317 | "libgmock", |
John Reck | 23462d8 | 2019-05-29 16:55:06 -0700 | [diff] [blame] | 318 | "libhwui_static", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 319 | ], |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 320 | shared_libs: [ |
| 321 | "libmemunreachable", |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 322 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 323 | |
| 324 | srcs: [ |
| 325 | "tests/unit/main.cpp", |
Derek Sollenberger | f9e45d1 | 2017-06-01 13:07:39 -0400 | [diff] [blame] | 326 | "tests/unit/CacheManagerTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 327 | "tests/unit/CanvasContextTests.cpp", |
John Reck | 322b8ab | 2019-03-14 13:15:28 -0700 | [diff] [blame] | 328 | "tests/unit/CommonPoolTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 329 | "tests/unit/DamageAccumulatorTests.cpp", |
| 330 | "tests/unit/DeferredLayerUpdaterTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 331 | "tests/unit/FatVectorTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 332 | "tests/unit/GraphicsStatsServiceTests.cpp", |
| 333 | "tests/unit/LayerUpdateQueueTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 334 | "tests/unit/LinearAllocatorTests.cpp", |
| 335 | "tests/unit/MatrixTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 336 | "tests/unit/PathInterpolatorTests.cpp", |
| 337 | "tests/unit/RenderNodeDrawableTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 338 | "tests/unit/RenderNodeTests.cpp", |
| 339 | "tests/unit/RenderPropertiesTests.cpp", |
John Reck | 700079e | 2019-02-19 10:38:50 -0800 | [diff] [blame] | 340 | "tests/unit/RenderThreadTests.cpp", |
Stan Iliev | d495f43 | 2017-10-09 15:49:32 -0400 | [diff] [blame] | 341 | "tests/unit/ShaderCacheTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 342 | "tests/unit/SkiaBehaviorTests.cpp", |
| 343 | "tests/unit/SkiaDisplayListTests.cpp", |
| 344 | "tests/unit/SkiaPipelineTests.cpp", |
| 345 | "tests/unit/SkiaRenderPropertiesTests.cpp", |
| 346 | "tests/unit/SkiaCanvasTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 347 | "tests/unit/StringUtilsTests.cpp", |
| 348 | "tests/unit/TestUtilsTests.cpp", |
John Reck | f8441e6 | 2017-10-23 13:10:41 -0700 | [diff] [blame] | 349 | "tests/unit/ThreadBaseTests.cpp", |
| 350 | "tests/unit/TypefaceTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 351 | "tests/unit/VectorDrawableTests.cpp", |
John Reck | 283bb46 | 2018-12-13 16:40:14 -0800 | [diff] [blame] | 352 | "tests/unit/WebViewFunctorManagerTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 353 | ], |
| 354 | } |
| 355 | |
| 356 | // ------------------------ |
| 357 | // Macro-bench app |
| 358 | // ------------------------ |
| 359 | |
| 360 | cc_benchmark { |
| 361 | name: "hwuimacro", |
| 362 | defaults: ["hwui_test_defaults"], |
| 363 | |
John Reck | 23462d8 | 2019-05-29 16:55:06 -0700 | [diff] [blame] | 364 | static_libs: ["libhwui"], |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 365 | shared_libs: [ |
| 366 | "libmemunreachable", |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 367 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 368 | |
| 369 | srcs: [ |
| 370 | "tests/macrobench/TestSceneRunner.cpp", |
| 371 | "tests/macrobench/main.cpp", |
| 372 | ], |
| 373 | } |
| 374 | |
| 375 | // ------------------------ |
| 376 | // Micro-bench app |
| 377 | // --------------------- |
| 378 | |
| 379 | cc_benchmark { |
| 380 | name: "hwuimicro", |
| 381 | defaults: ["hwui_test_defaults"], |
| 382 | |
John Reck | 23462d8 | 2019-05-29 16:55:06 -0700 | [diff] [blame] | 383 | static_libs: ["libhwui_static"], |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 384 | shared_libs: [ |
| 385 | "libmemunreachable", |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 386 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 387 | |
| 388 | srcs: [ |
| 389 | "tests/microbench/main.cpp", |
| 390 | "tests/microbench/DisplayListCanvasBench.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 391 | "tests/microbench/LinearAllocatorBench.cpp", |
| 392 | "tests/microbench/PathParserBench.cpp", |
| 393 | "tests/microbench/RenderNodeBench.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 394 | ], |
| 395 | } |
Pirama Arumuga Nainar | bc1e177 | 2017-11-17 11:32:16 -0800 | [diff] [blame] | 396 | |
| 397 | // ---------------------------------------- |
| 398 | // Phony target to build benchmarks for PGO |
| 399 | // ---------------------------------------- |
| 400 | |
| 401 | phony { |
| 402 | name: "pgo-targets-hwui", |
| 403 | required: [ |
| 404 | "hwuimicro", |
| 405 | "hwuimacro", |
| 406 | ] |
| 407 | } |