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