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