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