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