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