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