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 | |
| 12 | cflags: [ |
| 13 | "-DEGL_EGLEXT_PROTOTYPES", |
| 14 | "-DGL_GLEXT_PROTOTYPES", |
| 15 | "-DATRACE_TAG=ATRACE_TAG_VIEW", |
| 16 | "-DLOG_TAG=\"OpenGLRenderer\"", |
| 17 | "-Wall", |
| 18 | "-Wno-unused-parameter", |
| 19 | "-Wunreachable-code", |
| 20 | "-Werror", |
| 21 | "-fvisibility=hidden", |
| 22 | |
| 23 | // GCC false-positives on this warning, and since we -Werror that's |
| 24 | // a problem |
| 25 | "-Wno-free-nonheap-object", |
| 26 | |
| 27 | // clang's warning is broken, see: https://llvm.org/bugs/show_bug.cgi?id=21629 |
| 28 | "-Wno-missing-braces", |
| 29 | |
| 30 | // TODO: Linear blending should be enabled by default, but we are |
| 31 | // TODO: making it an opt-in while it's a work in progress |
| 32 | //"-DANDROID_ENABLE_LINEAR_BLENDING", |
| 33 | ], |
| 34 | |
| 35 | include_dirs: [ |
| 36 | "external/skia/include/private", |
| 37 | "external/skia/src/core", |
| 38 | "external/skia/src/effects", |
| 39 | "external/skia/src/image", |
| 40 | "external/skia/src/utils", |
Stan Iliev | 3310fb1 | 2017-03-23 16:56:51 -0400 | [diff] [blame] | 41 | "external/skia/src/gpu", |
Derek Sollenberger | 02456f0 | 2018-05-30 18:08:57 -0400 | [diff] [blame] | 42 | "external/skia/src/shaders", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 43 | ], |
| 44 | |
| 45 | product_variables: { |
John Reck | 2729418 | 2018-07-11 11:21:09 -0700 | [diff] [blame] | 46 | eng: { |
| 47 | lto: { |
| 48 | never: true, |
| 49 | }, |
| 50 | }, |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 51 | }, |
| 52 | } |
| 53 | |
| 54 | cc_defaults { |
| 55 | name: "hwui_static_deps", |
| 56 | shared_libs: [ |
| 57 | "liblog", |
| 58 | "libcutils", |
Yangster-mac | ba5bf0d | 2018-10-09 20:48:23 -0700 | [diff] [blame] | 59 | "libstatslog", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 60 | "libutils", |
| 61 | "libEGL", |
| 62 | "libGLESv2", |
| 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", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 72 | ], |
| 73 | static_libs: [ |
Stan Iliev | d495f43 | 2017-10-09 15:49:32 -0400 | [diff] [blame] | 74 | "libEGL_blobCache", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 75 | ], |
| 76 | } |
| 77 | |
| 78 | cc_defaults { |
| 79 | name: "hwui_bugreport_font_cache_usage", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 80 | cflags: ["-DBUGREPORT_FONT_CACHE_USAGE"], |
| 81 | } |
| 82 | |
| 83 | cc_defaults { |
| 84 | name: "hwui_compile_for_perf", |
| 85 | // TODO: Non-arm? |
| 86 | cflags: [ |
| 87 | "-fno-omit-frame-pointer", |
| 88 | "-marm", |
| 89 | "-mapcs", |
| 90 | ], |
| 91 | } |
| 92 | |
| 93 | cc_defaults { |
| 94 | name: "hwui_debug", |
| 95 | cflags: ["-include debug/wrap_gles.h"], |
| 96 | srcs: [ |
| 97 | "debug/wrap_gles.cpp", |
| 98 | "debug/DefaultGlesDriver.cpp", |
| 99 | "debug/GlesErrorCheckWrapper.cpp", |
| 100 | "debug/GlesDriver.cpp", |
| 101 | "debug/FatalBaseDriver.cpp", |
| 102 | "debug/NullGlesDriver.cpp", |
| 103 | ], |
| 104 | include_dirs: ["frameworks/native/opengl/libs/GLES2"], |
| 105 | } |
| 106 | |
| 107 | cc_defaults { |
| 108 | name: "hwui_enable_opengl_validation", |
| 109 | defaults: ["hwui_debug"], |
| 110 | cflags: ["-DDEBUG_OPENGL=3"], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 111 | include_dirs: ["frameworks/native/opengl/libs/GLES2"], |
| 112 | } |
| 113 | |
Pirama Arumuga Nainar | 0dfd4be | 2017-11-16 22:40:00 -0800 | [diff] [blame] | 114 | // Build libhwui with PGO by default. |
| 115 | // Location of PGO profile data is defined in build/soong/cc/pgo.go |
| 116 | // and is separate from hwui. |
| 117 | // To turn it off, set ANDROID_PGO_NO_PROFILE_USE environment variable |
| 118 | // or set enable_profile_use property to false. |
| 119 | cc_defaults { |
| 120 | name: "hwui_pgo", |
| 121 | |
| 122 | pgo: { |
| 123 | instrumentation: true, |
| 124 | profile_file: "hwui/hwui.profdata", |
| 125 | benchmarks: ["hwui"], |
Zhizhou Yang | 58e1b78 | 2017-12-06 16:59:06 -0800 | [diff] [blame] | 126 | enable_profile_use: true, |
Pirama Arumuga Nainar | 0dfd4be | 2017-11-16 22:40:00 -0800 | [diff] [blame] | 127 | }, |
| 128 | } |
| 129 | |
Zhizhou Yang | f30f112 | 2018-02-26 17:59:38 -0800 | [diff] [blame] | 130 | // Build hwui library with ThinLTO by default. |
| 131 | cc_defaults { |
| 132 | name: "hwui_lto", |
| 133 | target: { |
| 134 | android: { |
| 135 | lto: { |
| 136 | thin: true, |
| 137 | }, |
| 138 | }, |
| 139 | }, |
| 140 | } |
| 141 | |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 142 | // ------------------------ |
| 143 | // library |
| 144 | // ------------------------ |
| 145 | |
| 146 | cc_defaults { |
| 147 | name: "libhwui_defaults", |
| 148 | defaults: ["hwui_defaults"], |
Derek Sollenberger | d938e5a | 2017-07-24 09:42:07 -0400 | [diff] [blame] | 149 | |
| 150 | whole_static_libs: ["libskia"], |
| 151 | |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 152 | srcs: [ |
Derek Sollenberger | 2d14213 | 2018-01-22 10:25:26 -0500 | [diff] [blame] | 153 | "hwui/AnimatedImageDrawable.cpp", |
Leon Scroggins III | 5b7f426 | 2018-01-26 11:03:54 -0500 | [diff] [blame] | 154 | "hwui/AnimatedImageThread.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 155 | "hwui/Bitmap.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 156 | "hwui/Canvas.cpp", |
| 157 | "hwui/MinikinSkia.cpp", |
| 158 | "hwui/MinikinUtils.cpp", |
| 159 | "hwui/PaintImpl.cpp", |
| 160 | "hwui/Typeface.cpp", |
| 161 | "pipeline/skia/GLFunctorDrawable.cpp", |
| 162 | "pipeline/skia/LayerDrawable.cpp", |
| 163 | "pipeline/skia/RenderNodeDrawable.cpp", |
| 164 | "pipeline/skia/ReorderBarrierDrawables.cpp", |
Stan Iliev | d495f43 | 2017-10-09 15:49:32 -0400 | [diff] [blame] | 165 | "pipeline/skia/ShaderCache.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 166 | "pipeline/skia/SkiaDisplayList.cpp", |
Derek Sollenberger | 0057db2 | 2018-03-29 14:18:44 -0400 | [diff] [blame] | 167 | "pipeline/skia/SkiaMemoryTracer.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 168 | "pipeline/skia/SkiaOpenGLPipeline.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 169 | "pipeline/skia/SkiaPipeline.cpp", |
| 170 | "pipeline/skia/SkiaProfileRenderer.cpp", |
| 171 | "pipeline/skia/SkiaRecordingCanvas.cpp", |
| 172 | "pipeline/skia/SkiaVulkanPipeline.cpp", |
Stan Iliev | 3310fb1 | 2017-03-23 16:56:51 -0400 | [diff] [blame] | 173 | "pipeline/skia/VectorDrawableAtlas.cpp", |
Chris Blume | 5f1ac2b | 2018-11-05 16:10:39 -0800 | [diff] [blame] | 174 | "pipeline/skia/VkInteropFunctorDrawable.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 175 | "renderstate/RenderState.cpp", |
Derek Sollenberger | f9e45d1 | 2017-06-01 13:07:39 -0400 | [diff] [blame] | 176 | "renderthread/CacheManager.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 177 | "renderthread/CanvasContext.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 178 | "renderthread/DrawFrameTask.cpp", |
| 179 | "renderthread/EglManager.cpp", |
John Reck | 848f651 | 2018-12-03 13:26:43 -0800 | [diff] [blame^] | 180 | "renderthread/ReliableSurface.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 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", |
Stan Iliev | 564ca3e | 2018-09-04 22:00:00 +0000 | [diff] [blame] | 188 | "surfacetexture/EGLConsumer.cpp", |
| 189 | "surfacetexture/ImageConsumer.cpp", |
| 190 | "surfacetexture/SurfaceTexture.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 191 | "thread/TaskManager.cpp", |
| 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", |
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", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 214 | "PathParser.cpp", |
John Reck | 7075c79 | 2017-07-05 14:03:43 -0700 | [diff] [blame] | 215 | "ProfileData.cpp", |
John Reck | 34781b2 | 2017-07-05 16:39:36 -0700 | [diff] [blame] | 216 | "ProfileDataContainer.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 217 | "Properties.cpp", |
| 218 | "PropertyValuesAnimatorSet.cpp", |
| 219 | "PropertyValuesHolder.cpp", |
Stan Iliev | 1a025a7 | 2018-09-05 16:35:11 -0400 | [diff] [blame] | 220 | "Readback.cpp", |
John Reck | 8f45d4a | 2018-08-15 10:17:12 -0700 | [diff] [blame] | 221 | "RecordingCanvas.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 222 | "RenderNode.cpp", |
| 223 | "RenderProperties.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 224 | "SkiaCanvas.cpp", |
John Reck | bb3a358 | 2018-09-26 11:21:08 -0700 | [diff] [blame] | 225 | "TreeInfo.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 226 | "VectorDrawable.cpp", |
Kweku Adams | 228b6d2 | 2018-04-12 13:09:04 -0700 | [diff] [blame] | 227 | "protos/graphicsstats.proto", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 228 | ], |
| 229 | |
Chih-Hung Hsieh | e1afb6c | 2018-10-22 12:25:50 -0700 | [diff] [blame] | 230 | // Allow implicit fallthroughs in HardwareBitmapUploader.cpp until they are fixed. |
| 231 | cflags: ["-Wno-implicit-fallthrough"], |
| 232 | |
Kweku Adams | 228b6d2 | 2018-04-12 13:09:04 -0700 | [diff] [blame] | 233 | proto: { |
| 234 | export_proto_headers: true, |
| 235 | }, |
| 236 | |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 237 | export_include_dirs: ["."], |
| 238 | } |
| 239 | |
| 240 | cc_library { |
| 241 | name: "libhwui", |
Chris Craik | d17b63c | 2017-06-01 10:45:36 -0700 | [diff] [blame] | 242 | defaults: [ |
| 243 | "libhwui_defaults", |
| 244 | |
| 245 | // Enables fine-grained GLES error checking |
| 246 | // If enabled, every GLES call is wrapped & error checked |
| 247 | // Has moderate overhead |
John Reck | bdc9f1b | 2018-09-14 15:22:35 -0700 | [diff] [blame] | 248 | //"hwui_enable_opengl_validation", |
Zhizhou Yang | 17371ec | 2017-10-13 11:42:13 -0700 | [diff] [blame] | 249 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 250 | } |
| 251 | |
| 252 | // ------------------------ |
| 253 | // static library null gpu |
| 254 | // ------------------------ |
| 255 | |
| 256 | cc_library_static { |
| 257 | name: "libhwui_static_debug", |
| 258 | defaults: [ |
| 259 | "libhwui_defaults", |
| 260 | "hwui_debug", |
| 261 | ], |
| 262 | cflags: ["-DHWUI_NULL_GPU"], |
| 263 | srcs: [ |
| 264 | "debug/nullegl.cpp", |
| 265 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 266 | } |
| 267 | |
| 268 | cc_defaults { |
| 269 | name: "hwui_test_defaults", |
| 270 | defaults: ["hwui_defaults"], |
| 271 | test_suites: ["device-tests"], |
| 272 | srcs: [ |
| 273 | "tests/common/scenes/*.cpp", |
| 274 | "tests/common/LeakChecker.cpp", |
| 275 | "tests/common/TestListViewSceneBase.cpp", |
| 276 | "tests/common/TestContext.cpp", |
| 277 | "tests/common/TestScene.cpp", |
| 278 | "tests/common/TestUtils.cpp", |
| 279 | ], |
| 280 | } |
| 281 | |
| 282 | // ------------------------ |
| 283 | // unit tests |
| 284 | // ------------------------ |
| 285 | |
| 286 | cc_test { |
| 287 | name: "hwui_unit_tests", |
| 288 | defaults: ["hwui_test_defaults"], |
| 289 | |
| 290 | static_libs: [ |
| 291 | "libgmock", |
| 292 | "libhwui_static_debug", |
| 293 | ], |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 294 | shared_libs: [ |
| 295 | "libmemunreachable", |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 296 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 297 | cflags: [ |
| 298 | "-include debug/wrap_gles.h", |
| 299 | "-DHWUI_NULL_GPU", |
| 300 | ], |
| 301 | |
| 302 | srcs: [ |
| 303 | "tests/unit/main.cpp", |
Derek Sollenberger | f9e45d1 | 2017-06-01 13:07:39 -0400 | [diff] [blame] | 304 | "tests/unit/CacheManagerTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 305 | "tests/unit/CanvasContextTests.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", |
Stan Iliev | d495f43 | 2017-10-09 15:49:32 -0400 | [diff] [blame] | 318 | "tests/unit/ShaderCacheTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 319 | "tests/unit/SkiaBehaviorTests.cpp", |
| 320 | "tests/unit/SkiaDisplayListTests.cpp", |
| 321 | "tests/unit/SkiaPipelineTests.cpp", |
| 322 | "tests/unit/SkiaRenderPropertiesTests.cpp", |
| 323 | "tests/unit/SkiaCanvasTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 324 | "tests/unit/StringUtilsTests.cpp", |
| 325 | "tests/unit/TestUtilsTests.cpp", |
John Reck | f8441e6 | 2017-10-23 13:10:41 -0700 | [diff] [blame] | 326 | "tests/unit/ThreadBaseTests.cpp", |
| 327 | "tests/unit/TypefaceTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 328 | "tests/unit/VectorDrawableTests.cpp", |
Stan Iliev | 3310fb1 | 2017-03-23 16:56:51 -0400 | [diff] [blame] | 329 | "tests/unit/VectorDrawableAtlasTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 330 | ], |
| 331 | } |
| 332 | |
| 333 | // ------------------------ |
| 334 | // Macro-bench app |
| 335 | // ------------------------ |
| 336 | |
| 337 | cc_benchmark { |
| 338 | name: "hwuimacro", |
| 339 | defaults: ["hwui_test_defaults"], |
| 340 | |
| 341 | // set to libhwui_static_debug to skip actual GL commands |
| 342 | whole_static_libs: ["libhwui"], |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 343 | shared_libs: [ |
| 344 | "libmemunreachable", |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 345 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 346 | |
| 347 | srcs: [ |
| 348 | "tests/macrobench/TestSceneRunner.cpp", |
| 349 | "tests/macrobench/main.cpp", |
| 350 | ], |
| 351 | } |
| 352 | |
| 353 | // ------------------------ |
| 354 | // Micro-bench app |
| 355 | // --------------------- |
| 356 | |
| 357 | cc_benchmark { |
| 358 | name: "hwuimicro", |
| 359 | defaults: ["hwui_test_defaults"], |
| 360 | |
| 361 | cflags: [ |
| 362 | "-include debug/wrap_gles.h", |
| 363 | "-DHWUI_NULL_GPU", |
| 364 | ], |
| 365 | |
| 366 | whole_static_libs: ["libhwui_static_debug"], |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 367 | shared_libs: [ |
| 368 | "libmemunreachable", |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 369 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 370 | |
| 371 | srcs: [ |
| 372 | "tests/microbench/main.cpp", |
| 373 | "tests/microbench/DisplayListCanvasBench.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 374 | "tests/microbench/LinearAllocatorBench.cpp", |
| 375 | "tests/microbench/PathParserBench.cpp", |
| 376 | "tests/microbench/RenderNodeBench.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 377 | "tests/microbench/TaskManagerBench.cpp", |
| 378 | ], |
| 379 | } |
Pirama Arumuga Nainar | bc1e177 | 2017-11-17 11:32:16 -0800 | [diff] [blame] | 380 | |
| 381 | // ---------------------------------------- |
| 382 | // Phony target to build benchmarks for PGO |
| 383 | // ---------------------------------------- |
| 384 | |
| 385 | phony { |
| 386 | name: "pgo-targets-hwui", |
| 387 | required: [ |
| 388 | "hwuimicro", |
| 389 | "hwuimacro", |
| 390 | ] |
| 391 | } |