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