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