Bob Badour | 8a6a2bc | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["frameworks_base_libs_hwui_license"], |
| 3 | } |
| 4 | |
| 5 | // Added automatically by a large-scale-change that took the approach of |
| 6 | // 'apply every license found to every target'. While this makes sure we respect |
| 7 | // every license restriction, it may not be entirely correct. |
| 8 | // |
| 9 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 10 | // |
| 11 | // Please consider splitting the single license below into multiple licenses, |
| 12 | // taking care not to lose any license_kind information, and overriding the |
| 13 | // default license using the 'licenses: [...]' property on targets as needed. |
| 14 | // |
| 15 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 16 | // to attach the license to, and including a comment whether the files may be |
| 17 | // used in the current project. |
| 18 | // See: http://go/android-license-faq |
| 19 | license { |
| 20 | name: "frameworks_base_libs_hwui_license", |
| 21 | visibility: [":__subpackages__"], |
| 22 | license_kinds: [ |
| 23 | "SPDX-license-identifier-Apache-2.0", |
| 24 | "SPDX-license-identifier-BSD", |
| 25 | ], |
| 26 | license_text: [ |
| 27 | "NOTICE", |
| 28 | ], |
| 29 | } |
| 30 | |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 31 | cc_defaults { |
| 32 | name: "hwui_defaults", |
| 33 | defaults: [ |
| 34 | "hwui_static_deps", |
Pirama Arumuga Nainar | 0dfd4be | 2017-11-16 22:40:00 -0800 | [diff] [blame] | 35 | "skia_deps", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 36 | //"hwui_bugreport_font_cache_usage", |
| 37 | //"hwui_compile_for_perf", |
Pirama Arumuga Nainar | 0dfd4be | 2017-11-16 22:40:00 -0800 | [diff] [blame] | 38 | "hwui_pgo", |
Pirama Arumuga Nainar | b7913e1 | 2018-03-09 00:03:57 +0000 | [diff] [blame] | 39 | "hwui_lto", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 40 | ], |
| 41 | |
John Reck | 283bb46 | 2018-12-13 16:40:14 -0800 | [diff] [blame] | 42 | cpp_std: "experimental", |
| 43 | |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 44 | cflags: [ |
| 45 | "-DEGL_EGLEXT_PROTOTYPES", |
| 46 | "-DGL_GLEXT_PROTOTYPES", |
| 47 | "-DATRACE_TAG=ATRACE_TAG_VIEW", |
| 48 | "-DLOG_TAG=\"OpenGLRenderer\"", |
| 49 | "-Wall", |
| 50 | "-Wno-unused-parameter", |
| 51 | "-Wunreachable-code", |
| 52 | "-Werror", |
| 53 | "-fvisibility=hidden", |
| 54 | |
| 55 | // GCC false-positives on this warning, and since we -Werror that's |
| 56 | // a problem |
| 57 | "-Wno-free-nonheap-object", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 58 | ], |
| 59 | |
| 60 | include_dirs: [ |
| 61 | "external/skia/include/private", |
| 62 | "external/skia/src/core", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 63 | ], |
| 64 | |
| 65 | product_variables: { |
John Reck | 2729418 | 2018-07-11 11:21:09 -0700 | [diff] [blame] | 66 | eng: { |
| 67 | lto: { |
| 68 | never: true, |
| 69 | }, |
| 70 | }, |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 71 | }, |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 72 | |
| 73 | target: { |
| 74 | android: { |
| 75 | include_dirs: [ |
| 76 | "external/skia/src/effects", |
| 77 | "external/skia/src/image", |
| 78 | "external/skia/src/utils", |
| 79 | "external/skia/src/gpu", |
| 80 | "external/skia/src/shaders", |
| 81 | ], |
| 82 | }, |
| 83 | host: { |
| 84 | include_dirs: [ |
| 85 | "external/vulkan-headers/include", |
| 86 | ], |
| 87 | cflags: [ |
| 88 | "-Wno-unused-variable", |
| 89 | ], |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 90 | }, |
| 91 | }, |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 92 | } |
| 93 | |
| 94 | cc_defaults { |
| 95 | name: "hwui_static_deps", |
| 96 | shared_libs: [ |
Jerome Gaillard | a02a12d | 2019-05-28 18:07:56 +0100 | [diff] [blame] | 97 | "libbase", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 98 | "libharfbuzz_ng", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 99 | "libminikin", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 100 | ], |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 101 | |
Alec Mouri | 4523801 | 2020-01-29 11:04:40 -0800 | [diff] [blame] | 102 | static_libs: [ |
| 103 | "libui-types", |
| 104 | ], |
| 105 | |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 106 | target: { |
| 107 | android: { |
| 108 | shared_libs: [ |
| 109 | "liblog", |
| 110 | "libcutils", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 111 | "libutils", |
| 112 | "libEGL", |
| 113 | "libGLESv1_CM", |
| 114 | "libGLESv2", |
| 115 | "libGLESv3", |
| 116 | "libvulkan", |
Alec Mouri | 22d753f | 2019-09-05 17:11:45 -0700 | [diff] [blame] | 117 | "libnativedisplay", |
Derek Sollenberger | e78f7c9 | 2019-07-31 15:18:47 -0400 | [diff] [blame] | 118 | "libnativewindow", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 119 | "libprotobuf-cpp-lite", |
| 120 | "libft2", |
| 121 | "libandroidfw", |
| 122 | "libcrypto", |
| 123 | "libsync", |
| 124 | ], |
| 125 | static_libs: [ |
| 126 | "libEGL_blobCache", |
Stan Iliev | c904381 | 2020-02-03 16:57:09 -0500 | [diff] [blame] | 127 | "libprotoutil", |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 128 | "libstatslog_hwui", |
| 129 | "libstatspull_lazy", |
| 130 | "libstatssocket_lazy", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 131 | ], |
| 132 | }, |
| 133 | host: { |
| 134 | static_libs: [ |
| 135 | "libandroidfw", |
| 136 | "libutils", |
| 137 | ], |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 138 | }, |
| 139 | }, |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 140 | } |
| 141 | |
| 142 | cc_defaults { |
| 143 | name: "hwui_bugreport_font_cache_usage", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 144 | cflags: ["-DBUGREPORT_FONT_CACHE_USAGE"], |
| 145 | } |
| 146 | |
| 147 | cc_defaults { |
| 148 | name: "hwui_compile_for_perf", |
| 149 | // TODO: Non-arm? |
| 150 | cflags: [ |
| 151 | "-fno-omit-frame-pointer", |
| 152 | "-marm", |
| 153 | "-mapcs", |
| 154 | ], |
| 155 | } |
| 156 | |
Pirama Arumuga Nainar | 0dfd4be | 2017-11-16 22:40:00 -0800 | [diff] [blame] | 157 | // Build libhwui with PGO by default. |
| 158 | // Location of PGO profile data is defined in build/soong/cc/pgo.go |
| 159 | // and is separate from hwui. |
| 160 | // To turn it off, set ANDROID_PGO_NO_PROFILE_USE environment variable |
| 161 | // or set enable_profile_use property to false. |
| 162 | cc_defaults { |
| 163 | name: "hwui_pgo", |
| 164 | |
| 165 | pgo: { |
| 166 | instrumentation: true, |
| 167 | profile_file: "hwui/hwui.profdata", |
| 168 | benchmarks: ["hwui"], |
Zhizhou Yang | 58e1b78 | 2017-12-06 16:59:06 -0800 | [diff] [blame] | 169 | enable_profile_use: true, |
Pirama Arumuga Nainar | 0dfd4be | 2017-11-16 22:40:00 -0800 | [diff] [blame] | 170 | }, |
| 171 | } |
| 172 | |
Zhizhou Yang | f30f112 | 2018-02-26 17:59:38 -0800 | [diff] [blame] | 173 | // Build hwui library with ThinLTO by default. |
| 174 | cc_defaults { |
| 175 | name: "hwui_lto", |
| 176 | target: { |
| 177 | android: { |
| 178 | lto: { |
| 179 | thin: true, |
| 180 | }, |
| 181 | }, |
| 182 | }, |
| 183 | } |
| 184 | |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 185 | // ------------------------ |
Alec Mouri | ef37c24 | 2020-03-02 21:38:09 +0000 | [diff] [blame] | 186 | // framework-graphics jar |
| 187 | // ------------------------ |
| 188 | |
Paul Duffin | 4e00662 | 2020-05-31 16:55:13 +0100 | [diff] [blame] | 189 | java_sdk_library { |
Alec Mouri | ef37c24 | 2020-03-02 21:38:09 +0000 | [diff] [blame] | 190 | name: "framework-graphics", |
Paul Duffin | 4e00662 | 2020-05-31 16:55:13 +0100 | [diff] [blame] | 191 | defaults: ["framework-module-defaults"], |
| 192 | visibility: [ |
| 193 | "//frameworks/base", // Framework |
| 194 | ], |
Alec Mouri | ef37c24 | 2020-03-02 21:38:09 +0000 | [diff] [blame] | 195 | |
| 196 | srcs: [ |
| 197 | ":framework-graphics-srcs", |
| 198 | ], |
| 199 | |
| 200 | permitted_packages: [ |
| 201 | "android.graphics", |
| 202 | ], |
| 203 | |
Alec Mouri | ef37c24 | 2020-03-02 21:38:09 +0000 | [diff] [blame] | 204 | // TODO: once framework-graphics is officially part of the |
| 205 | // UI-rendering module this line would no longer be |
| 206 | // needed. |
| 207 | installable: true, |
| 208 | |
Paul Duffin | 4e00662 | 2020-05-31 16:55:13 +0100 | [diff] [blame] | 209 | // Disable api_lint that the defaults enable |
| 210 | // TODO: enable this |
| 211 | api_lint: { |
| 212 | enabled: false, |
| 213 | }, |
Anton Hansson | 96b08ae | 2020-12-21 16:59:06 +0000 | [diff] [blame] | 214 | // TODO: remove this |
| 215 | unsafe_ignore_missing_latest_api: true, |
Alec Mouri | ef37c24 | 2020-03-02 21:38:09 +0000 | [diff] [blame] | 216 | } |
| 217 | |
| 218 | filegroup { |
| 219 | name: "framework-graphics-srcs", |
| 220 | srcs: [ |
| 221 | "apex/java/**/*.java", |
| 222 | ], |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 223 | path: "apex/java", |
Alec Mouri | ef37c24 | 2020-03-02 21:38:09 +0000 | [diff] [blame] | 224 | } |
| 225 | |
Alec Mouri | ef37c24 | 2020-03-02 21:38:09 +0000 | [diff] [blame] | 226 | // ------------------------ |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 227 | // APEX |
| 228 | // ------------------------ |
| 229 | |
| 230 | cc_library_headers { |
| 231 | name: "android_graphics_apex_headers", |
| 232 | |
| 233 | host_supported: true, |
| 234 | export_include_dirs: [ |
| 235 | "apex/include", |
| 236 | ], |
| 237 | target: { |
| 238 | windows: { |
| 239 | enabled: true, |
| 240 | }, |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 241 | }, |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 242 | } |
| 243 | |
| 244 | cc_defaults { |
| 245 | name: "android_graphics_apex", |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 246 | cflags: [ |
| 247 | "-Wno-unused-parameter", |
| 248 | "-Wno-non-virtual-dtor", |
| 249 | "-Wno-maybe-uninitialized", |
| 250 | "-Wno-parentheses", |
| 251 | "-Wall", |
| 252 | "-Werror", |
| 253 | "-Wno-error=deprecated-declarations", |
| 254 | "-Wunused", |
| 255 | "-Wunreachable-code", |
| 256 | ], |
| 257 | |
| 258 | cppflags: ["-Wno-conversion-null"], |
| 259 | |
| 260 | srcs: [ |
| 261 | "apex/android_matrix.cpp", |
| 262 | "apex/android_paint.cpp", |
| 263 | "apex/android_region.cpp", |
| 264 | ], |
| 265 | |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 266 | header_libs: ["android_graphics_apex_headers"], |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 267 | |
| 268 | target: { |
| 269 | android: { |
| 270 | srcs: [ // sources that depend on android only libraries |
| 271 | "apex/android_bitmap.cpp", |
| 272 | "apex/android_canvas.cpp", |
| 273 | "apex/jni_runtime.cpp", |
| 274 | "apex/renderthread.cpp", |
| 275 | ], |
| 276 | }, |
Derek Sollenberger | c5882c4 | 2019-10-25 11:11:32 -0400 | [diff] [blame] | 277 | host: { |
| 278 | srcs: [ |
| 279 | "apex/LayoutlibLoader.cpp", |
| 280 | ], |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 281 | }, |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 282 | }, |
| 283 | } |
| 284 | |
| 285 | // ------------------------ |
| 286 | // Android Graphics JNI |
| 287 | // ------------------------ |
| 288 | |
| 289 | cc_library_headers { |
| 290 | name: "android_graphics_jni_headers", |
| 291 | |
| 292 | host_supported: true, |
| 293 | export_include_dirs: [ |
| 294 | "jni", |
| 295 | ], |
| 296 | target: { |
| 297 | windows: { |
| 298 | enabled: true, |
| 299 | }, |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 300 | }, |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 301 | } |
| 302 | |
| 303 | cc_defaults { |
| 304 | name: "android_graphics_jni", |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 305 | cflags: [ |
| 306 | "-Wno-unused-parameter", |
| 307 | "-Wno-non-virtual-dtor", |
| 308 | "-Wno-maybe-uninitialized", |
| 309 | "-Wno-parentheses", |
| 310 | |
| 311 | "-DGL_GLEXT_PROTOTYPES", |
| 312 | "-DEGL_EGLEXT_PROTOTYPES", |
| 313 | |
| 314 | "-DU_USING_ICU_NAMESPACE=0", |
| 315 | |
| 316 | "-Wall", |
| 317 | "-Werror", |
| 318 | "-Wno-error=deprecated-declarations", |
| 319 | "-Wunused", |
| 320 | "-Wunreachable-code", |
| 321 | ], |
| 322 | |
| 323 | cppflags: ["-Wno-conversion-null"], |
| 324 | |
| 325 | srcs: [ |
| 326 | "jni/android_graphics_animation_NativeInterpolatorFactory.cpp", |
| 327 | "jni/android_graphics_animation_RenderNodeAnimator.cpp", |
| 328 | "jni/android_graphics_Canvas.cpp", |
| 329 | "jni/android_graphics_ColorSpace.cpp", |
| 330 | "jni/android_graphics_drawable_AnimatedVectorDrawable.cpp", |
| 331 | "jni/android_graphics_drawable_VectorDrawable.cpp", |
| 332 | "jni/android_graphics_HardwareRendererObserver.cpp", |
| 333 | "jni/android_graphics_Matrix.cpp", |
| 334 | "jni/android_graphics_Picture.cpp", |
| 335 | "jni/android_graphics_DisplayListCanvas.cpp", |
| 336 | "jni/android_graphics_RenderNode.cpp", |
| 337 | "jni/android_nio_utils.cpp", |
| 338 | "jni/android_util_PathParser.cpp", |
| 339 | |
| 340 | "jni/Bitmap.cpp", |
| 341 | "jni/BitmapFactory.cpp", |
| 342 | "jni/ByteBufferStreamAdaptor.cpp", |
| 343 | "jni/Camera.cpp", |
| 344 | "jni/CanvasProperty.cpp", |
| 345 | "jni/ColorFilter.cpp", |
| 346 | "jni/CreateJavaOutputStreamAdaptor.cpp", |
| 347 | "jni/FontFamily.cpp", |
| 348 | "jni/FontUtils.cpp", |
| 349 | "jni/Graphics.cpp", |
| 350 | "jni/ImageDecoder.cpp", |
| 351 | "jni/Interpolator.cpp", |
| 352 | "jni/MaskFilter.cpp", |
| 353 | "jni/NinePatch.cpp", |
| 354 | "jni/NinePatchPeeker.cpp", |
| 355 | "jni/Paint.cpp", |
| 356 | "jni/PaintFilter.cpp", |
| 357 | "jni/Path.cpp", |
| 358 | "jni/PathEffect.cpp", |
| 359 | "jni/PathMeasure.cpp", |
| 360 | "jni/Picture.cpp", |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 361 | "jni/Shader.cpp", |
Nader Jawad | 390d6e8 | 2020-09-24 21:35:03 -0700 | [diff] [blame] | 362 | "jni/RenderEffect.cpp", |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 363 | "jni/Typeface.cpp", |
| 364 | "jni/Utils.cpp", |
| 365 | "jni/YuvToJpegEncoder.cpp", |
| 366 | "jni/fonts/Font.cpp", |
| 367 | "jni/fonts/FontFamily.cpp", |
| 368 | "jni/text/LineBreaker.cpp", |
| 369 | "jni/text/MeasuredText.cpp", |
Seigo Nonaka | f3a1915 | 2020-09-14 15:29:42 -0700 | [diff] [blame] | 370 | "jni/text/TextShaper.cpp", |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 371 | ], |
| 372 | |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 373 | header_libs: ["android_graphics_jni_headers"], |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 374 | |
| 375 | include_dirs: [ |
| 376 | "external/skia/include/private", |
| 377 | "external/skia/src/codec", |
| 378 | "external/skia/src/core", |
| 379 | "external/skia/src/effects", |
| 380 | "external/skia/src/image", |
| 381 | "external/skia/src/images", |
| 382 | ], |
| 383 | |
| 384 | shared_libs: [ |
| 385 | "libbase", |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 386 | "libcutils", |
| 387 | "libharfbuzz_ng", |
| 388 | "liblog", |
| 389 | "libminikin", |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 390 | "libz", |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 391 | "libjpeg", |
| 392 | ], |
| 393 | |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 394 | static_libs: [ |
| 395 | "libnativehelper_lazy", |
| 396 | "libziparchive_for_incfs", |
| 397 | ], |
Orion Hodson | 33cbf8b | 2021-02-08 16:17:07 +0000 | [diff] [blame] | 398 | |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 399 | target: { |
| 400 | android: { |
| 401 | srcs: [ // sources that depend on android only libraries |
| 402 | "jni/AnimatedImageDrawable.cpp", |
| 403 | "jni/android_graphics_TextureLayer.cpp", |
| 404 | "jni/android_graphics_HardwareRenderer.cpp", |
| 405 | "jni/BitmapRegionDecoder.cpp", |
| 406 | "jni/GIFMovie.cpp", |
| 407 | "jni/GraphicsStatsService.cpp", |
| 408 | "jni/Movie.cpp", |
| 409 | "jni/MovieImpl.cpp", |
Derek Sollenberger | 15da7e2 | 2020-02-14 14:16:34 -0500 | [diff] [blame] | 410 | "jni/Region.cpp", // requires libbinder_ndk |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 411 | "jni/pdf/PdfDocument.cpp", |
| 412 | "jni/pdf/PdfEditor.cpp", |
| 413 | "jni/pdf/PdfRenderer.cpp", |
| 414 | "jni/pdf/PdfUtils.cpp", |
| 415 | ], |
| 416 | shared_libs: [ |
| 417 | "libandroidfw", |
Derek Sollenberger | 42c5004 | 2020-02-18 14:51:17 -0500 | [diff] [blame] | 418 | "libbinder", |
Derek Sollenberger | 15da7e2 | 2020-02-14 14:16:34 -0500 | [diff] [blame] | 419 | "libbinder_ndk", |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 420 | "libmediandk", |
| 421 | "libnativedisplay", |
| 422 | "libnativewindow", |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 423 | "libpdfium", |
| 424 | ], |
| 425 | static_libs: [ |
| 426 | "libgif", |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 427 | "libstatslog_hwui", |
| 428 | "libstatspull_lazy", |
| 429 | "libstatssocket_lazy", |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 430 | ], |
| 431 | }, |
| 432 | host: { |
| 433 | cflags: [ |
| 434 | "-Wno-unused-const-variable", |
| 435 | "-Wno-unused-function", |
| 436 | ], |
| 437 | static_libs: [ |
| 438 | "libandroidfw", |
| 439 | ], |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 440 | }, |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 441 | }, |
| 442 | } |
| 443 | |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 444 | cc_library_static { |
| 445 | name: "libstatslog_hwui", |
| 446 | generated_sources: ["statslog_hwui.cpp"], |
| 447 | generated_headers: ["statslog_hwui.h"], |
| 448 | export_generated_headers: ["statslog_hwui.h"], |
| 449 | static_libs: [ |
| 450 | "libstatssocket_lazy", |
| 451 | "libstatspull_lazy", |
| 452 | ], |
| 453 | } |
| 454 | |
| 455 | genrule { |
| 456 | name: "statslog_hwui.h", |
| 457 | tools: ["stats-log-api-gen"], |
| 458 | cmd: "$(location stats-log-api-gen) --header $(genDir)/statslog_hwui.h --module hwui" + |
| 459 | " --namespace android,uirenderer,stats", |
| 460 | out: [ |
| 461 | "statslog_hwui.h", |
| 462 | ], |
| 463 | } |
| 464 | |
| 465 | genrule { |
| 466 | name: "statslog_hwui.cpp", |
| 467 | tools: ["stats-log-api-gen"], |
| 468 | cmd: "$(location stats-log-api-gen) --cpp $(genDir)/statslog_hwui.cpp --module hwui" + |
| 469 | " --namespace android,uirenderer,stats --importHeader statslog_hwui.h", |
| 470 | out: [ |
| 471 | "statslog_hwui.cpp", |
| 472 | ], |
| 473 | } |
| 474 | |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 475 | // ------------------------ |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 476 | // library |
| 477 | // ------------------------ |
| 478 | |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 479 | cc_library_headers { |
| 480 | name: "libhwui_internal_headers", |
| 481 | |
| 482 | host_supported: true, |
| 483 | export_include_dirs: [ |
| 484 | ".", |
| 485 | ], |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 486 | header_libs: ["android_graphics_jni_headers"], |
| 487 | export_header_lib_headers: ["android_graphics_jni_headers"], |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 488 | } |
| 489 | |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 490 | cc_defaults { |
| 491 | name: "libhwui_defaults", |
| 492 | defaults: ["hwui_defaults"], |
Derek Sollenberger | d938e5a | 2017-07-24 09:42:07 -0400 | [diff] [blame] | 493 | |
| 494 | whole_static_libs: ["libskia"], |
| 495 | |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 496 | srcs: [ |
John Reck | dc95f10 | 2020-11-16 12:35:02 -0500 | [diff] [blame] | 497 | "canvas/CanvasFrontend.cpp", |
John Reck | 013127b | 2020-10-29 20:53:51 -0400 | [diff] [blame] | 498 | "canvas/CanvasOpBuffer.cpp", |
| 499 | "canvas/CanvasOpRasterizer.cpp", |
John Reck | 5cb290b | 2021-02-01 13:47:31 -0500 | [diff] [blame] | 500 | "effects/StretchEffect.cpp", |
Nader Jawad | 2dc632a | 2021-03-29 18:51:29 -0700 | [diff] [blame] | 501 | "pipeline/skia/HolePunch.cpp", |
Fedor Kudasov | 86bd214 | 2019-06-18 15:51:57 +0100 | [diff] [blame] | 502 | "pipeline/skia/SkiaDisplayList.cpp", |
| 503 | "pipeline/skia/SkiaRecordingCanvas.cpp", |
Nader Jawad | 197743f | 2021-04-19 19:45:13 -0700 | [diff] [blame] | 504 | "pipeline/skia/StretchMask.cpp", |
Fedor Kudasov | 86bd214 | 2019-06-18 15:51:57 +0100 | [diff] [blame] | 505 | "pipeline/skia/RenderNodeDrawable.cpp", |
| 506 | "pipeline/skia/ReorderBarrierDrawables.cpp", |
Nader Jawad | 2dc632a | 2021-03-29 18:51:29 -0700 | [diff] [blame] | 507 | "pipeline/skia/TransformCanvas.cpp", |
Fedor Kudasov | 666f8a5 | 2019-07-03 15:21:14 +0100 | [diff] [blame] | 508 | "renderthread/Frame.cpp", |
| 509 | "renderthread/RenderTask.cpp", |
| 510 | "renderthread/TimeLord.cpp", |
Derek Sollenberger | 2d14213 | 2018-01-22 10:25:26 -0500 | [diff] [blame] | 511 | "hwui/AnimatedImageDrawable.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 512 | "hwui/Bitmap.cpp", |
Mike Reed | 0f9dce7 | 2021-02-12 21:20:33 -0500 | [diff] [blame] | 513 | "hwui/BlurDrawLooper.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 514 | "hwui/Canvas.cpp", |
Leon Scroggins III | 753a56f | 2019-12-11 11:02:15 -0500 | [diff] [blame] | 515 | "hwui/ImageDecoder.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 516 | "hwui/MinikinSkia.cpp", |
| 517 | "hwui/MinikinUtils.cpp", |
| 518 | "hwui/PaintImpl.cpp", |
| 519 | "hwui/Typeface.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 520 | "utils/Blur.cpp", |
Fedor Kudasov | 86bd214 | 2019-06-18 15:51:57 +0100 | [diff] [blame] | 521 | "utils/Color.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 522 | "utils/LinearAllocator.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 523 | "utils/VectorDrawableUtils.cpp", |
Fedor Kudasov | 86bd214 | 2019-06-18 15:51:57 +0100 | [diff] [blame] | 524 | "AnimationContext.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 525 | "Animator.cpp", |
Fedor Kudasov | 86bd214 | 2019-06-18 15:51:57 +0100 | [diff] [blame] | 526 | "AnimatorManager.cpp", |
| 527 | "CanvasTransform.cpp", |
| 528 | "DamageAccumulator.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 529 | "Interpolator.cpp", |
Fedor Kudasov | 86bd214 | 2019-06-18 15:51:57 +0100 | [diff] [blame] | 530 | "LightingInfo.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 531 | "Matrix.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 532 | "PathParser.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 533 | "Properties.cpp", |
| 534 | "PropertyValuesAnimatorSet.cpp", |
| 535 | "PropertyValuesHolder.cpp", |
Fedor Kudasov | 86bd214 | 2019-06-18 15:51:57 +0100 | [diff] [blame] | 536 | "RecordingCanvas.cpp", |
| 537 | "RenderNode.cpp", |
| 538 | "RenderProperties.cpp", |
Fedor Kudasov | 09cfce0 | 2019-07-04 09:41:13 +0100 | [diff] [blame] | 539 | "RootRenderNode.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 540 | "SkiaCanvas.cpp", |
Mike Reed | 7406527 | 2021-04-12 09:52:07 -0400 | [diff] [blame] | 541 | "SkiaInterpolator.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 542 | "VectorDrawable.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 543 | ], |
| 544 | |
Kweku Adams | 228b6d2 | 2018-04-12 13:09:04 -0700 | [diff] [blame] | 545 | proto: { |
| 546 | export_proto_headers: true, |
| 547 | }, |
| 548 | |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 549 | target: { |
| 550 | android: { |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 551 | header_libs: ["libandroid_headers_private"], |
Jorim Jaggi | 71db889 | 2021-02-03 23:19:29 +0100 | [diff] [blame] | 552 | |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 553 | srcs: [ |
Jerome Gaillard | f9a4dc4 | 2020-01-29 15:23:26 +0000 | [diff] [blame] | 554 | "hwui/AnimatedImageThread.cpp", |
Stan Iliev | e0fae23 | 2020-01-07 17:21:49 -0500 | [diff] [blame] | 555 | "pipeline/skia/ATraceMemoryDump.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 556 | "pipeline/skia/GLFunctorDrawable.cpp", |
| 557 | "pipeline/skia/LayerDrawable.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 558 | "pipeline/skia/ShaderCache.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 559 | "pipeline/skia/SkiaMemoryTracer.cpp", |
| 560 | "pipeline/skia/SkiaOpenGLPipeline.cpp", |
| 561 | "pipeline/skia/SkiaPipeline.cpp", |
| 562 | "pipeline/skia/SkiaProfileRenderer.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 563 | "pipeline/skia/SkiaVulkanPipeline.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 564 | "pipeline/skia/VkFunctorDrawable.cpp", |
| 565 | "pipeline/skia/VkInteropFunctorDrawable.cpp", |
| 566 | "renderstate/RenderState.cpp", |
| 567 | "renderthread/CacheManager.cpp", |
| 568 | "renderthread/CanvasContext.cpp", |
| 569 | "renderthread/DrawFrameTask.cpp", |
| 570 | "renderthread/EglManager.cpp", |
| 571 | "renderthread/ReliableSurface.cpp", |
| 572 | "renderthread/VulkanManager.cpp", |
| 573 | "renderthread/VulkanSurface.cpp", |
| 574 | "renderthread/RenderProxy.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 575 | "renderthread/RenderThread.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 576 | "service/GraphicsStatsService.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 577 | "thread/CommonPool.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 578 | "utils/GLUtils.cpp", |
Alec Mouri | 4523801 | 2020-01-29 11:04:40 -0800 | [diff] [blame] | 579 | "utils/NdkUtils.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 580 | "utils/StringUtils.cpp", |
Stan Iliev | aaa9e83 | 2019-09-17 14:07:23 -0400 | [diff] [blame] | 581 | "AutoBackendTextureRelease.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 582 | "DeferredLayerUpdater.cpp", |
| 583 | "DeviceInfo.cpp", |
| 584 | "FrameInfo.cpp", |
| 585 | "FrameInfoVisualizer.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 586 | "HardwareBitmapUploader.cpp", |
| 587 | "HWUIProperties.sysprop", |
| 588 | "JankTracker.cpp", |
| 589 | "Layer.cpp", |
| 590 | "LayerUpdateQueue.cpp", |
| 591 | "ProfileData.cpp", |
| 592 | "ProfileDataContainer.cpp", |
| 593 | "Readback.cpp", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 594 | "TreeInfo.cpp", |
| 595 | "WebViewFunctorManager.cpp", |
| 596 | "protos/graphicsstats.proto", |
| 597 | ], |
| 598 | |
| 599 | // Allow implicit fallthroughs in HardwareBitmapUploader.cpp until they are fixed. |
| 600 | cflags: ["-Wno-implicit-fallthrough"], |
| 601 | }, |
| 602 | host: { |
Fedor Kudasov | 86bd214 | 2019-06-18 15:51:57 +0100 | [diff] [blame] | 603 | srcs: [ |
| 604 | "utils/HostColorSpace.cpp", |
| 605 | ], |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 606 | export_static_lib_headers: [ |
| 607 | "libarect", |
| 608 | ], |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 609 | }, |
| 610 | }, |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 611 | } |
| 612 | |
| 613 | cc_library { |
| 614 | name: "libhwui", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 615 | host_supported: true, |
Chris Craik | d17b63c | 2017-06-01 10:45:36 -0700 | [diff] [blame] | 616 | defaults: [ |
| 617 | "libhwui_defaults", |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 618 | "android_graphics_apex", |
| 619 | "android_graphics_jni", |
Collin Fijalkovich | c10428f | 2021-04-23 14:09:16 -0700 | [diff] [blame] | 620 | "linker_hugepage_aligned", |
Zhizhou Yang | 17371ec | 2017-10-13 11:42:13 -0700 | [diff] [blame] | 621 | ], |
Derek Sollenberger | 83ccff7 | 2019-10-24 11:49:54 -0400 | [diff] [blame] | 622 | export_header_lib_headers: ["android_graphics_apex_headers"], |
Derek Sollenberger | 2c5d634 | 2020-04-09 09:44:54 -0400 | [diff] [blame] | 623 | target: { |
| 624 | android: { |
| 625 | version_script: "libhwui.map.txt", |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 626 | }, |
Derek Sollenberger | 2c5d634 | 2020-04-09 09:44:54 -0400 | [diff] [blame] | 627 | }, |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 628 | } |
| 629 | |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 630 | cc_library_static { |
John Reck | 23462d8 | 2019-05-29 16:55:06 -0700 | [diff] [blame] | 631 | name: "libhwui_static", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 632 | defaults: [ |
| 633 | "libhwui_defaults", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 634 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 635 | } |
| 636 | |
| 637 | cc_defaults { |
| 638 | name: "hwui_test_defaults", |
| 639 | defaults: ["hwui_defaults"], |
| 640 | test_suites: ["device-tests"], |
Jorim Jaggi | 71db889 | 2021-02-03 23:19:29 +0100 | [diff] [blame] | 641 | header_libs: ["libandroid_headers_private"], |
Alec Mouri | 680414e | 2020-01-28 09:22:33 -0800 | [diff] [blame] | 642 | target: { |
| 643 | android: { |
| 644 | shared_libs: [ |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 645 | "libgui", |
| 646 | "libui", |
| 647 | ], |
| 648 | }, |
Alec Mouri | 680414e | 2020-01-28 09:22:33 -0800 | [diff] [blame] | 649 | }, |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 650 | srcs: [ |
| 651 | "tests/common/scenes/*.cpp", |
| 652 | "tests/common/LeakChecker.cpp", |
| 653 | "tests/common/TestListViewSceneBase.cpp", |
| 654 | "tests/common/TestContext.cpp", |
| 655 | "tests/common/TestScene.cpp", |
| 656 | "tests/common/TestUtils.cpp", |
| 657 | ], |
| 658 | } |
| 659 | |
| 660 | // ------------------------ |
| 661 | // unit tests |
| 662 | // ------------------------ |
| 663 | |
| 664 | cc_test { |
| 665 | name: "hwui_unit_tests", |
Derek Sollenberger | d3e9eec | 2020-04-06 11:43:59 -0400 | [diff] [blame] | 666 | defaults: [ |
| 667 | "hwui_test_defaults", |
| 668 | "android_graphics_apex", |
| 669 | "android_graphics_jni", |
| 670 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 671 | |
| 672 | static_libs: [ |
| 673 | "libgmock", |
John Reck | 23462d8 | 2019-05-29 16:55:06 -0700 | [diff] [blame] | 674 | "libhwui_static", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 675 | ], |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 676 | shared_libs: [ |
| 677 | "libmemunreachable", |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 678 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 679 | srcs: [ |
| 680 | "tests/unit/main.cpp", |
Derek Sollenberger | d3e9eec | 2020-04-06 11:43:59 -0400 | [diff] [blame] | 681 | "tests/unit/ABitmapTests.cpp", |
Derek Sollenberger | f9e45d1 | 2017-06-01 13:07:39 -0400 | [diff] [blame] | 682 | "tests/unit/CacheManagerTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 683 | "tests/unit/CanvasContextTests.cpp", |
John Reck | 013127b | 2020-10-29 20:53:51 -0400 | [diff] [blame] | 684 | "tests/unit/CanvasOpTests.cpp", |
John Reck | dc95f10 | 2020-11-16 12:35:02 -0500 | [diff] [blame] | 685 | "tests/unit/CanvasFrontendTests.cpp", |
John Reck | 322b8ab | 2019-03-14 13:15:28 -0700 | [diff] [blame] | 686 | "tests/unit/CommonPoolTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 687 | "tests/unit/DamageAccumulatorTests.cpp", |
| 688 | "tests/unit/DeferredLayerUpdaterTests.cpp", |
John Reck | 064650b | 2021-01-19 21:29:24 -0500 | [diff] [blame] | 689 | "tests/unit/EglManagerTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 690 | "tests/unit/FatVectorTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 691 | "tests/unit/GraphicsStatsServiceTests.cpp", |
Jorim Jaggi | 10f328c | 2021-01-19 00:08:02 +0100 | [diff] [blame] | 692 | "tests/unit/JankTrackerTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 693 | "tests/unit/LayerUpdateQueueTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 694 | "tests/unit/LinearAllocatorTests.cpp", |
| 695 | "tests/unit/MatrixTests.cpp", |
John Reck | 9573505 | 2020-12-15 13:39:22 -0500 | [diff] [blame] | 696 | "tests/unit/OpBufferTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 697 | "tests/unit/PathInterpolatorTests.cpp", |
| 698 | "tests/unit/RenderNodeDrawableTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 699 | "tests/unit/RenderNodeTests.cpp", |
| 700 | "tests/unit/RenderPropertiesTests.cpp", |
John Reck | 700079e | 2019-02-19 10:38:50 -0800 | [diff] [blame] | 701 | "tests/unit/RenderThreadTests.cpp", |
Stan Iliev | d495f43 | 2017-10-09 15:49:32 -0400 | [diff] [blame] | 702 | "tests/unit/ShaderCacheTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 703 | "tests/unit/SkiaBehaviorTests.cpp", |
| 704 | "tests/unit/SkiaDisplayListTests.cpp", |
| 705 | "tests/unit/SkiaPipelineTests.cpp", |
| 706 | "tests/unit/SkiaRenderPropertiesTests.cpp", |
| 707 | "tests/unit/SkiaCanvasTests.cpp", |
Nader Jawad | c401b23 | 2021-05-21 12:52:05 -0700 | [diff] [blame] | 708 | "tests/unit/StretchEffectTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 709 | "tests/unit/StringUtilsTests.cpp", |
| 710 | "tests/unit/TestUtilsTests.cpp", |
John Reck | f8441e6 | 2017-10-23 13:10:41 -0700 | [diff] [blame] | 711 | "tests/unit/ThreadBaseTests.cpp", |
| 712 | "tests/unit/TypefaceTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 713 | "tests/unit/VectorDrawableTests.cpp", |
John Reck | 283bb46 | 2018-12-13 16:40:14 -0800 | [diff] [blame] | 714 | "tests/unit/WebViewFunctorManagerTests.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 715 | ], |
| 716 | } |
| 717 | |
| 718 | // ------------------------ |
| 719 | // Macro-bench app |
| 720 | // ------------------------ |
| 721 | |
| 722 | cc_benchmark { |
| 723 | name: "hwuimacro", |
| 724 | defaults: ["hwui_test_defaults"], |
| 725 | |
John Reck | 23462d8 | 2019-05-29 16:55:06 -0700 | [diff] [blame] | 726 | static_libs: ["libhwui"], |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 727 | shared_libs: [ |
| 728 | "libmemunreachable", |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 729 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 730 | |
| 731 | srcs: [ |
| 732 | "tests/macrobench/TestSceneRunner.cpp", |
| 733 | "tests/macrobench/main.cpp", |
| 734 | ], |
| 735 | } |
| 736 | |
| 737 | // ------------------------ |
| 738 | // Micro-bench app |
| 739 | // --------------------- |
| 740 | |
| 741 | cc_benchmark { |
| 742 | name: "hwuimicro", |
| 743 | defaults: ["hwui_test_defaults"], |
| 744 | |
John Reck | 23462d8 | 2019-05-29 16:55:06 -0700 | [diff] [blame] | 745 | static_libs: ["libhwui_static"], |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 746 | shared_libs: [ |
| 747 | "libmemunreachable", |
Tej Singh | bb8554a | 2018-01-26 11:59:14 -0800 | [diff] [blame] | 748 | ], |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 749 | |
| 750 | srcs: [ |
| 751 | "tests/microbench/main.cpp", |
John Reck | b5eeb18 | 2020-12-09 13:45:39 -0500 | [diff] [blame] | 752 | "tests/microbench/CanvasOpBench.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 753 | "tests/microbench/DisplayListCanvasBench.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 754 | "tests/microbench/LinearAllocatorBench.cpp", |
| 755 | "tests/microbench/PathParserBench.cpp", |
| 756 | "tests/microbench/RenderNodeBench.cpp", |
Colin Cross | f629810 | 2017-04-19 15:25:25 -0700 | [diff] [blame] | 757 | ], |
| 758 | } |
Pirama Arumuga Nainar | bc1e177 | 2017-11-17 11:32:16 -0800 | [diff] [blame] | 759 | |
| 760 | // ---------------------------------------- |
| 761 | // Phony target to build benchmarks for PGO |
| 762 | // ---------------------------------------- |
| 763 | |
| 764 | phony { |
| 765 | name: "pgo-targets-hwui", |
| 766 | required: [ |
| 767 | "hwuimicro", |
| 768 | "hwuimacro", |
Tej Singh | 78f65b6 | 2021-03-18 16:19:55 -0700 | [diff] [blame] | 769 | ], |
Pirama Arumuga Nainar | bc1e177 | 2017-11-17 11:32:16 -0800 | [diff] [blame] | 770 | } |