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 | f8441e6 | 2017-10-23 13:10:41 -0700 | [diff] [blame] | 12 | cpp_std: "c++17", |
| 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", |
| 31 | |
| 32 | // TODO: Linear blending should be enabled by default, but we are |
| 33 | // TODO: making it an opt-in while it's a work in progress |
| 34 | //"-DANDROID_ENABLE_LINEAR_BLENDING", |
| 35 | ], |
| 36 | |
| 37 | include_dirs: [ |
| 38 | "external/skia/include/private", |
| 39 | "external/skia/src/core", |
| 40 | "external/skia/src/effects", |
| 41 | "external/skia/src/image", |
| 42 | "external/skia/src/utils", |
Stan Iliev | 3310fb1 | 2017-03-23 16:56:51 -0400 | [diff] [blame] | 43 | "external/skia/src/gpu", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 44 | ], |
| 45 | |
| 46 | product_variables: { |
| 47 | device_uses_hwc2: { |
| 48 | cflags: ["-DUSE_HWC2"], |
| 49 | }, |
| 50 | }, |
| 51 | } |
| 52 | |
| 53 | cc_defaults { |
| 54 | name: "hwui_static_deps", |
| 55 | shared_libs: [ |
| 56 | "liblog", |
| 57 | "libcutils", |
| 58 | "libutils", |
| 59 | "libEGL", |
| 60 | "libGLESv2", |
| 61 | "libvulkan", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 62 | "libui", |
| 63 | "libgui", |
John Reck | 915883b | 2017-05-03 10:27:20 -0700 | [diff] [blame] | 64 | "libprotobuf-cpp-lite", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 65 | "libharfbuzz_ng", |
| 66 | "libft2", |
| 67 | "libminikin", |
| 68 | "libandroidfw", |
| 69 | "libRScpp", |
| 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", |
| 167 | "pipeline/skia/SkiaOpenGLReadback.cpp", |
| 168 | "pipeline/skia/SkiaPipeline.cpp", |
| 169 | "pipeline/skia/SkiaProfileRenderer.cpp", |
| 170 | "pipeline/skia/SkiaRecordingCanvas.cpp", |
| 171 | "pipeline/skia/SkiaVulkanPipeline.cpp", |
Stan Iliev | 3310fb1 | 2017-03-23 16:56:51 -0400 | [diff] [blame] | 172 | "pipeline/skia/VectorDrawableAtlas.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 173 | "renderstate/OffscreenBufferPool.cpp", |
| 174 | "renderstate/PixelBufferState.cpp", |
| 175 | "renderstate/RenderState.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 176 | "renderstate/TextureState.cpp", |
Derek Sollenberger | f9e45d1 | 2017-06-01 13:07:39 -0400 | [diff] [blame] | 177 | "renderthread/CacheManager.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 178 | "renderthread/CanvasContext.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 179 | "renderthread/DrawFrameTask.cpp", |
| 180 | "renderthread/EglManager.cpp", |
| 181 | "renderthread/VulkanManager.cpp", |
| 182 | "renderthread/RenderProxy.cpp", |
| 183 | "renderthread/RenderTask.cpp", |
| 184 | "renderthread/RenderThread.cpp", |
| 185 | "renderthread/TimeLord.cpp", |
| 186 | "renderthread/Frame.cpp", |
| 187 | "service/GraphicsStatsService.cpp", |
| 188 | "thread/TaskManager.cpp", |
| 189 | "utils/Blur.cpp", |
| 190 | "utils/Color.cpp", |
| 191 | "utils/GLUtils.cpp", |
| 192 | "utils/LinearAllocator.cpp", |
| 193 | "utils/StringUtils.cpp", |
| 194 | "utils/TestWindowContext.cpp", |
| 195 | "utils/VectorDrawableUtils.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 196 | "AnimationContext.cpp", |
| 197 | "Animator.cpp", |
| 198 | "AnimatorManager.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 199 | "Caches.cpp", |
| 200 | "CanvasState.cpp", |
| 201 | "ClipArea.cpp", |
| 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 | "GlLayer.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 208 | "GpuMemoryTracker.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 209 | "Interpolator.cpp", |
| 210 | "JankTracker.cpp", |
| 211 | "Layer.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 212 | "LayerUpdateQueue.cpp", |
| 213 | "Matrix.cpp", |
John Reck | 44627c2 | 2018-04-12 13:55:38 -0700 | [diff] [blame] | 214 | "EglReadback.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 215 | "PathParser.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 216 | "PixelBuffer.cpp", |
John Reck | 7075c79 | 2017-07-05 14:03:43 -0700 | [diff] [blame] | 217 | "ProfileData.cpp", |
John Reck | 34781b2 | 2017-07-05 16:39:36 -0700 | [diff] [blame] | 218 | "ProfileDataContainer.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 219 | "Properties.cpp", |
| 220 | "PropertyValuesAnimatorSet.cpp", |
| 221 | "PropertyValuesHolder.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 222 | "RenderNode.cpp", |
| 223 | "RenderProperties.cpp", |
| 224 | "ResourceCache.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 225 | "SkiaCanvas.cpp", |
| 226 | "SkiaCanvasProxy.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 227 | "Snapshot.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 228 | "Texture.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 229 | "VectorDrawable.cpp", |
| 230 | "VkLayer.cpp", |
Kweku Adams | 228b6d2 | 2018-04-12 13:09:04 -0700 | [diff] [blame] | 231 | "protos/graphicsstats.proto", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 232 | ], |
| 233 | |
Kweku Adams | 228b6d2 | 2018-04-12 13:09:04 -0700 | [diff] [blame] | 234 | proto: { |
| 235 | export_proto_headers: true, |
| 236 | }, |
| 237 | |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 238 | export_include_dirs: ["."], |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 239 | export_shared_lib_headers: ["libRScpp"], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 240 | } |
| 241 | |
| 242 | cc_library { |
| 243 | name: "libhwui", |
Chris Craik | d17b63c | 2017-06-01 10:45:36 -0700 | [diff] [blame] | 244 | defaults: [ |
| 245 | "libhwui_defaults", |
| 246 | |
| 247 | // Enables fine-grained GLES error checking |
| 248 | // If enabled, every GLES call is wrapped & error checked |
| 249 | // Has moderate overhead |
| 250 | "hwui_enable_opengl_validation", |
Zhizhou Yang | 17371ec | 2017-10-13 11:42:13 -0700 | [diff] [blame] | 251 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 252 | } |
| 253 | |
| 254 | // ------------------------ |
| 255 | // static library null gpu |
| 256 | // ------------------------ |
| 257 | |
| 258 | cc_library_static { |
| 259 | name: "libhwui_static_debug", |
| 260 | defaults: [ |
| 261 | "libhwui_defaults", |
| 262 | "hwui_debug", |
| 263 | ], |
| 264 | cflags: ["-DHWUI_NULL_GPU"], |
| 265 | srcs: [ |
| 266 | "debug/nullegl.cpp", |
| 267 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 268 | } |
| 269 | |
| 270 | cc_defaults { |
| 271 | name: "hwui_test_defaults", |
| 272 | defaults: ["hwui_defaults"], |
| 273 | test_suites: ["device-tests"], |
| 274 | srcs: [ |
| 275 | "tests/common/scenes/*.cpp", |
| 276 | "tests/common/LeakChecker.cpp", |
| 277 | "tests/common/TestListViewSceneBase.cpp", |
| 278 | "tests/common/TestContext.cpp", |
| 279 | "tests/common/TestScene.cpp", |
| 280 | "tests/common/TestUtils.cpp", |
| 281 | ], |
| 282 | } |
| 283 | |
| 284 | // ------------------------ |
| 285 | // unit tests |
| 286 | // ------------------------ |
| 287 | |
| 288 | cc_test { |
| 289 | name: "hwui_unit_tests", |
| 290 | defaults: ["hwui_test_defaults"], |
| 291 | |
| 292 | static_libs: [ |
| 293 | "libgmock", |
| 294 | "libhwui_static_debug", |
| 295 | ], |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 296 | shared_libs: [ |
| 297 | "libmemunreachable", |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 298 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 299 | cflags: [ |
| 300 | "-include debug/wrap_gles.h", |
| 301 | "-DHWUI_NULL_GPU", |
| 302 | ], |
| 303 | |
| 304 | srcs: [ |
| 305 | "tests/unit/main.cpp", |
Derek Sollenberger | f9e45d1 | 2017-06-01 13:07:39 -0400 | [diff] [blame] | 306 | "tests/unit/CacheManagerTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 307 | "tests/unit/CanvasContextTests.cpp", |
| 308 | "tests/unit/CanvasStateTests.cpp", |
| 309 | "tests/unit/ClipAreaTests.cpp", |
| 310 | "tests/unit/DamageAccumulatorTests.cpp", |
| 311 | "tests/unit/DeferredLayerUpdaterTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 312 | "tests/unit/FatVectorTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 313 | "tests/unit/GpuMemoryTrackerTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 314 | "tests/unit/GraphicsStatsServiceTests.cpp", |
| 315 | "tests/unit/LayerUpdateQueueTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 316 | "tests/unit/LinearAllocatorTests.cpp", |
| 317 | "tests/unit/MatrixTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 318 | "tests/unit/PathInterpolatorTests.cpp", |
| 319 | "tests/unit/RenderNodeDrawableTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 320 | "tests/unit/RenderNodeTests.cpp", |
| 321 | "tests/unit/RenderPropertiesTests.cpp", |
Stan Iliev | d495f43 | 2017-10-09 15:49:32 -0400 | [diff] [blame] | 322 | "tests/unit/ShaderCacheTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 323 | "tests/unit/SkiaBehaviorTests.cpp", |
| 324 | "tests/unit/SkiaDisplayListTests.cpp", |
| 325 | "tests/unit/SkiaPipelineTests.cpp", |
| 326 | "tests/unit/SkiaRenderPropertiesTests.cpp", |
| 327 | "tests/unit/SkiaCanvasTests.cpp", |
| 328 | "tests/unit/SnapshotTests.cpp", |
| 329 | "tests/unit/StringUtilsTests.cpp", |
| 330 | "tests/unit/TestUtilsTests.cpp", |
John Reck | f8441e6 | 2017-10-23 13:10:41 -0700 | [diff] [blame] | 331 | "tests/unit/ThreadBaseTests.cpp", |
| 332 | "tests/unit/TypefaceTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 333 | "tests/unit/VectorDrawableTests.cpp", |
Stan Iliev | 3310fb1 | 2017-03-23 16:56:51 -0400 | [diff] [blame] | 334 | "tests/unit/VectorDrawableAtlasTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 335 | ], |
| 336 | } |
| 337 | |
| 338 | // ------------------------ |
| 339 | // Macro-bench app |
| 340 | // ------------------------ |
| 341 | |
| 342 | cc_benchmark { |
| 343 | name: "hwuimacro", |
| 344 | defaults: ["hwui_test_defaults"], |
| 345 | |
| 346 | // set to libhwui_static_debug to skip actual GL commands |
| 347 | whole_static_libs: ["libhwui"], |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 348 | shared_libs: [ |
| 349 | "libmemunreachable", |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 350 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 351 | |
| 352 | srcs: [ |
| 353 | "tests/macrobench/TestSceneRunner.cpp", |
| 354 | "tests/macrobench/main.cpp", |
| 355 | ], |
| 356 | } |
| 357 | |
| 358 | // ------------------------ |
| 359 | // Micro-bench app |
| 360 | // --------------------- |
| 361 | |
| 362 | cc_benchmark { |
| 363 | name: "hwuimicro", |
| 364 | defaults: ["hwui_test_defaults"], |
| 365 | |
| 366 | cflags: [ |
| 367 | "-include debug/wrap_gles.h", |
| 368 | "-DHWUI_NULL_GPU", |
| 369 | ], |
| 370 | |
| 371 | whole_static_libs: ["libhwui_static_debug"], |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 372 | shared_libs: [ |
| 373 | "libmemunreachable", |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 374 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 375 | |
| 376 | srcs: [ |
| 377 | "tests/microbench/main.cpp", |
| 378 | "tests/microbench/DisplayListCanvasBench.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 379 | "tests/microbench/LinearAllocatorBench.cpp", |
| 380 | "tests/microbench/PathParserBench.cpp", |
| 381 | "tests/microbench/RenderNodeBench.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 382 | "tests/microbench/TaskManagerBench.cpp", |
| 383 | ], |
| 384 | } |
Pirama Arumuga Nainar | bc1e177 | 2017-11-17 11:32:16 -0800 | [diff] [blame] | 385 | |
| 386 | // ---------------------------------------- |
| 387 | // Phony target to build benchmarks for PGO |
| 388 | // ---------------------------------------- |
| 389 | |
| 390 | phony { |
| 391 | name: "pgo-targets-hwui", |
| 392 | required: [ |
| 393 | "hwuimicro", |
| 394 | "hwuimacro", |
| 395 | ] |
| 396 | } |