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