blob: f7fc5229613ea85bf1be9d607032e716e1be7480 [file] [log] [blame]
Colin Crossf6298102017-04-19 15:25:25 -07001cc_defaults {
2 name: "hwui_defaults",
3 defaults: [
4 "hwui_static_deps",
Pirama Arumuga Nainar0dfd4be2017-11-16 22:40:00 -08005 "skia_deps",
Colin Crossf6298102017-04-19 15:25:25 -07006 //"hwui_bugreport_font_cache_usage",
7 //"hwui_compile_for_perf",
Pirama Arumuga Nainar0dfd4be2017-11-16 22:40:00 -08008 "hwui_pgo",
Pirama Arumuga Nainarb7913e12018-03-09 00:03:57 +00009 "hwui_lto",
Colin Crossf6298102017-04-19 15:25:25 -070010 ],
11
John Reck283bb462018-12-13 16:40:14 -080012 cpp_std: "experimental",
13
Colin Crossf6298102017-04-19 15:25:25 -070014 cflags: [
15 "-DEGL_EGLEXT_PROTOTYPES",
16 "-DGL_GLEXT_PROTOTYPES",
17 "-DATRACE_TAG=ATRACE_TAG_VIEW",
18 "-DLOG_TAG=\"OpenGLRenderer\"",
19 "-Wall",
20 "-Wno-unused-parameter",
21 "-Wunreachable-code",
22 "-Werror",
23 "-fvisibility=hidden",
24
25 // GCC false-positives on this warning, and since we -Werror that's
26 // a problem
27 "-Wno-free-nonheap-object",
Colin Crossf6298102017-04-19 15:25:25 -070028 ],
29
30 include_dirs: [
31 "external/skia/include/private",
32 "external/skia/src/core",
Colin Crossf6298102017-04-19 15:25:25 -070033 ],
34
35 product_variables: {
John Reck27294182018-07-11 11:21:09 -070036 eng: {
37 lto: {
38 never: true,
39 },
40 },
Colin Crossf6298102017-04-19 15:25:25 -070041 },
Fedor Kudasov182cbf92019-06-05 10:30:20 +010042
43 target: {
44 android: {
45 include_dirs: [
46 "external/skia/src/effects",
47 "external/skia/src/image",
48 "external/skia/src/utils",
49 "external/skia/src/gpu",
50 "external/skia/src/shaders",
51 ],
52 },
53 host: {
54 include_dirs: [
55 "external/vulkan-headers/include",
56 ],
57 cflags: [
58 "-Wno-unused-variable",
59 ],
60 }
61 }
Colin Crossf6298102017-04-19 15:25:25 -070062}
63
64cc_defaults {
65 name: "hwui_static_deps",
66 shared_libs: [
Jerome Gaillarda02a12d2019-05-28 18:07:56 +010067 "libbase",
Colin Crossf6298102017-04-19 15:25:25 -070068 "libharfbuzz_ng",
Colin Crossf6298102017-04-19 15:25:25 -070069 "libminikin",
Colin Crossf6298102017-04-19 15:25:25 -070070 ],
Fedor Kudasov182cbf92019-06-05 10:30:20 +010071
Alec Mouri45238012020-01-29 11:04:40 -080072 static_libs: [
73 "libui-types",
74 ],
75
Fedor Kudasov182cbf92019-06-05 10:30:20 +010076 target: {
77 android: {
78 shared_libs: [
79 "liblog",
80 "libcutils",
81 "libstatslog",
82 "libutils",
83 "libEGL",
84 "libGLESv1_CM",
85 "libGLESv2",
86 "libGLESv3",
87 "libvulkan",
Alec Mouri22d753f2019-09-05 17:11:45 -070088 "libnativedisplay",
Derek Sollenbergere78f7c92019-07-31 15:18:47 -040089 "libnativewindow",
Fedor Kudasov182cbf92019-06-05 10:30:20 +010090 "libprotobuf-cpp-lite",
91 "libft2",
92 "libandroidfw",
93 "libcrypto",
94 "libsync",
Stan Ilievc9043812020-02-03 16:57:09 -050095 "libstatspull",
96 "libstatssocket",
Fedor Kudasov182cbf92019-06-05 10:30:20 +010097 ],
98 static_libs: [
99 "libEGL_blobCache",
Stan Ilievc9043812020-02-03 16:57:09 -0500100 "libprotoutil",
Fedor Kudasov182cbf92019-06-05 10:30:20 +0100101 ],
102 },
103 host: {
104 static_libs: [
105 "libandroidfw",
106 "libutils",
107 ],
108 }
109 }
Colin Crossf6298102017-04-19 15:25:25 -0700110}
111
112cc_defaults {
113 name: "hwui_bugreport_font_cache_usage",
Colin Crossf6298102017-04-19 15:25:25 -0700114 cflags: ["-DBUGREPORT_FONT_CACHE_USAGE"],
115}
116
117cc_defaults {
118 name: "hwui_compile_for_perf",
119 // TODO: Non-arm?
120 cflags: [
121 "-fno-omit-frame-pointer",
122 "-marm",
123 "-mapcs",
124 ],
125}
126
Pirama Arumuga Nainar0dfd4be2017-11-16 22:40:00 -0800127// Build libhwui with PGO by default.
128// Location of PGO profile data is defined in build/soong/cc/pgo.go
129// and is separate from hwui.
130// To turn it off, set ANDROID_PGO_NO_PROFILE_USE environment variable
131// or set enable_profile_use property to false.
132cc_defaults {
133 name: "hwui_pgo",
134
135 pgo: {
136 instrumentation: true,
137 profile_file: "hwui/hwui.profdata",
138 benchmarks: ["hwui"],
Zhizhou Yang58e1b782017-12-06 16:59:06 -0800139 enable_profile_use: true,
Pirama Arumuga Nainar0dfd4be2017-11-16 22:40:00 -0800140 },
141}
142
Zhizhou Yangf30f1122018-02-26 17:59:38 -0800143// Build hwui library with ThinLTO by default.
144cc_defaults {
145 name: "hwui_lto",
146 target: {
147 android: {
148 lto: {
149 thin: true,
150 },
151 },
152 },
153}
154
Colin Crossf6298102017-04-19 15:25:25 -0700155// ------------------------
Derek Sollenberger83ccff72019-10-24 11:49:54 -0400156// APEX
157// ------------------------
158
159cc_library_headers {
160 name: "android_graphics_apex_headers",
161
162 host_supported: true,
163 export_include_dirs: [
164 "apex/include",
165 ],
166 target: {
167 windows: {
168 enabled: true,
169 },
170 }
171}
172
173cc_defaults {
174 name: "android_graphics_apex",
175 host_supported: true,
176 cflags: [
177 "-Wno-unused-parameter",
178 "-Wno-non-virtual-dtor",
179 "-Wno-maybe-uninitialized",
180 "-Wno-parentheses",
181 "-Wall",
182 "-Werror",
183 "-Wno-error=deprecated-declarations",
184 "-Wunused",
185 "-Wunreachable-code",
186 ],
187
188 cppflags: ["-Wno-conversion-null"],
189
190 srcs: [
191 "apex/android_matrix.cpp",
192 "apex/android_paint.cpp",
193 "apex/android_region.cpp",
194 ],
195
196 header_libs: [ "android_graphics_apex_headers" ],
197
198 target: {
199 android: {
200 srcs: [ // sources that depend on android only libraries
201 "apex/android_bitmap.cpp",
202 "apex/android_canvas.cpp",
203 "apex/jni_runtime.cpp",
204 "apex/renderthread.cpp",
205 ],
206 },
Derek Sollenbergerc5882c42019-10-25 11:11:32 -0400207 host: {
208 srcs: [
209 "apex/LayoutlibLoader.cpp",
210 ],
211 }
Derek Sollenberger83ccff72019-10-24 11:49:54 -0400212 },
213}
214
215// ------------------------
216// Android Graphics JNI
217// ------------------------
218
219cc_library_headers {
220 name: "android_graphics_jni_headers",
221
222 host_supported: true,
223 export_include_dirs: [
224 "jni",
225 ],
226 target: {
227 windows: {
228 enabled: true,
229 },
230 }
231}
232
233cc_defaults {
234 name: "android_graphics_jni",
235 host_supported: true,
236 cflags: [
237 "-Wno-unused-parameter",
238 "-Wno-non-virtual-dtor",
239 "-Wno-maybe-uninitialized",
240 "-Wno-parentheses",
241
242 "-DGL_GLEXT_PROTOTYPES",
243 "-DEGL_EGLEXT_PROTOTYPES",
244
245 "-DU_USING_ICU_NAMESPACE=0",
246
247 "-Wall",
248 "-Werror",
249 "-Wno-error=deprecated-declarations",
250 "-Wunused",
251 "-Wunreachable-code",
252 ],
253
254 cppflags: ["-Wno-conversion-null"],
255
256 srcs: [
257 "jni/android_graphics_animation_NativeInterpolatorFactory.cpp",
258 "jni/android_graphics_animation_RenderNodeAnimator.cpp",
259 "jni/android_graphics_Canvas.cpp",
260 "jni/android_graphics_ColorSpace.cpp",
261 "jni/android_graphics_drawable_AnimatedVectorDrawable.cpp",
262 "jni/android_graphics_drawable_VectorDrawable.cpp",
263 "jni/android_graphics_HardwareRendererObserver.cpp",
264 "jni/android_graphics_Matrix.cpp",
265 "jni/android_graphics_Picture.cpp",
266 "jni/android_graphics_DisplayListCanvas.cpp",
267 "jni/android_graphics_RenderNode.cpp",
268 "jni/android_nio_utils.cpp",
269 "jni/android_util_PathParser.cpp",
270
271 "jni/Bitmap.cpp",
272 "jni/BitmapFactory.cpp",
273 "jni/ByteBufferStreamAdaptor.cpp",
274 "jni/Camera.cpp",
275 "jni/CanvasProperty.cpp",
276 "jni/ColorFilter.cpp",
277 "jni/CreateJavaOutputStreamAdaptor.cpp",
278 "jni/FontFamily.cpp",
279 "jni/FontUtils.cpp",
280 "jni/Graphics.cpp",
281 "jni/ImageDecoder.cpp",
282 "jni/Interpolator.cpp",
283 "jni/MaskFilter.cpp",
284 "jni/NinePatch.cpp",
285 "jni/NinePatchPeeker.cpp",
286 "jni/Paint.cpp",
287 "jni/PaintFilter.cpp",
288 "jni/Path.cpp",
289 "jni/PathEffect.cpp",
290 "jni/PathMeasure.cpp",
291 "jni/Picture.cpp",
Derek Sollenberger83ccff72019-10-24 11:49:54 -0400292 "jni/Shader.cpp",
293 "jni/Typeface.cpp",
294 "jni/Utils.cpp",
295 "jni/YuvToJpegEncoder.cpp",
296 "jni/fonts/Font.cpp",
297 "jni/fonts/FontFamily.cpp",
298 "jni/text/LineBreaker.cpp",
299 "jni/text/MeasuredText.cpp",
300 ],
301
302 header_libs: [ "android_graphics_jni_headers" ],
303
304 include_dirs: [
305 "external/skia/include/private",
306 "external/skia/src/codec",
307 "external/skia/src/core",
308 "external/skia/src/effects",
309 "external/skia/src/image",
310 "external/skia/src/images",
311 ],
312
313 shared_libs: [
314 "libbase",
Derek Sollenberger83ccff72019-10-24 11:49:54 -0400315 "libcutils",
316 "libharfbuzz_ng",
317 "liblog",
318 "libminikin",
319 "libnativehelper",
320 "libz",
321 "libziparchive",
322 "libjpeg",
323 ],
324
325 target: {
326 android: {
327 srcs: [ // sources that depend on android only libraries
328 "jni/AnimatedImageDrawable.cpp",
329 "jni/android_graphics_TextureLayer.cpp",
330 "jni/android_graphics_HardwareRenderer.cpp",
331 "jni/BitmapRegionDecoder.cpp",
332 "jni/GIFMovie.cpp",
333 "jni/GraphicsStatsService.cpp",
334 "jni/Movie.cpp",
335 "jni/MovieImpl.cpp",
Derek Sollenberger15da7e22020-02-14 14:16:34 -0500336 "jni/Region.cpp", // requires libbinder_ndk
Derek Sollenberger83ccff72019-10-24 11:49:54 -0400337 "jni/pdf/PdfDocument.cpp",
338 "jni/pdf/PdfEditor.cpp",
339 "jni/pdf/PdfRenderer.cpp",
340 "jni/pdf/PdfUtils.cpp",
341 ],
342 shared_libs: [
343 "libandroidfw",
Derek Sollenberger42c50042020-02-18 14:51:17 -0500344 "libbinder",
Derek Sollenberger15da7e22020-02-14 14:16:34 -0500345 "libbinder_ndk",
Derek Sollenberger83ccff72019-10-24 11:49:54 -0400346 "libmediandk",
347 "libnativedisplay",
348 "libnativewindow",
349 "libstatspull",
350 "libstatssocket",
351 "libpdfium",
John Recka18d7c82020-03-02 09:41:33 -0800352 "libbinder_ndk",
Derek Sollenberger83ccff72019-10-24 11:49:54 -0400353 ],
354 static_libs: [
355 "libgif",
356 "libstatslog",
357 ],
358 },
359 host: {
360 cflags: [
361 "-Wno-unused-const-variable",
362 "-Wno-unused-function",
363 ],
364 static_libs: [
365 "libandroidfw",
366 ],
367 }
368 },
369}
370
371// ------------------------
Colin Crossf6298102017-04-19 15:25:25 -0700372// library
373// ------------------------
374
Derek Sollenberger83ccff72019-10-24 11:49:54 -0400375cc_library_headers {
376 name: "libhwui_internal_headers",
377
378 host_supported: true,
379 export_include_dirs: [
380 ".",
381 ],
382 header_libs: [ "android_graphics_jni_headers" ],
383 export_header_lib_headers: [ "android_graphics_jni_headers" ],
384}
385
Colin Crossf6298102017-04-19 15:25:25 -0700386cc_defaults {
387 name: "libhwui_defaults",
388 defaults: ["hwui_defaults"],
Derek Sollenbergerd938e5a2017-07-24 09:42:07 -0400389
390 whole_static_libs: ["libskia"],
391
Colin Crossf6298102017-04-19 15:25:25 -0700392 srcs: [
Fedor Kudasov86bd2142019-06-18 15:51:57 +0100393 "pipeline/skia/SkiaDisplayList.cpp",
394 "pipeline/skia/SkiaRecordingCanvas.cpp",
395 "pipeline/skia/RenderNodeDrawable.cpp",
396 "pipeline/skia/ReorderBarrierDrawables.cpp",
Fedor Kudasov666f8a52019-07-03 15:21:14 +0100397 "renderthread/Frame.cpp",
398 "renderthread/RenderTask.cpp",
399 "renderthread/TimeLord.cpp",
Derek Sollenberger2d142132018-01-22 10:25:26 -0500400 "hwui/AnimatedImageDrawable.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700401 "hwui/Bitmap.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700402 "hwui/Canvas.cpp",
Leon Scroggins III753a56f2019-12-11 11:02:15 -0500403 "hwui/ImageDecoder.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700404 "hwui/MinikinSkia.cpp",
405 "hwui/MinikinUtils.cpp",
406 "hwui/PaintImpl.cpp",
407 "hwui/Typeface.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700408 "utils/Blur.cpp",
Fedor Kudasov86bd2142019-06-18 15:51:57 +0100409 "utils/Color.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700410 "utils/LinearAllocator.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700411 "utils/VectorDrawableUtils.cpp",
Fedor Kudasov86bd2142019-06-18 15:51:57 +0100412 "AnimationContext.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700413 "Animator.cpp",
Fedor Kudasov86bd2142019-06-18 15:51:57 +0100414 "AnimatorManager.cpp",
415 "CanvasTransform.cpp",
416 "DamageAccumulator.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700417 "Interpolator.cpp",
Fedor Kudasov86bd2142019-06-18 15:51:57 +0100418 "LightingInfo.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700419 "Matrix.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700420 "PathParser.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700421 "Properties.cpp",
422 "PropertyValuesAnimatorSet.cpp",
423 "PropertyValuesHolder.cpp",
Fedor Kudasov86bd2142019-06-18 15:51:57 +0100424 "RecordingCanvas.cpp",
425 "RenderNode.cpp",
426 "RenderProperties.cpp",
Fedor Kudasov09cfce02019-07-04 09:41:13 +0100427 "RootRenderNode.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700428 "SkiaCanvas.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700429 "VectorDrawable.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700430 ],
431
Kweku Adams228b6d22018-04-12 13:09:04 -0700432 proto: {
433 export_proto_headers: true,
434 },
435
Fedor Kudasov182cbf92019-06-05 10:30:20 +0100436 target: {
437 android: {
Fedor Kudasov182cbf92019-06-05 10:30:20 +0100438 srcs: [
Jerome Gaillardf9a4dc42020-01-29 15:23:26 +0000439 "hwui/AnimatedImageThread.cpp",
Stan Ilieve0fae232020-01-07 17:21:49 -0500440 "pipeline/skia/ATraceMemoryDump.cpp",
Fedor Kudasov182cbf92019-06-05 10:30:20 +0100441 "pipeline/skia/GLFunctorDrawable.cpp",
442 "pipeline/skia/LayerDrawable.cpp",
Fedor Kudasov182cbf92019-06-05 10:30:20 +0100443 "pipeline/skia/ShaderCache.cpp",
Fedor Kudasov182cbf92019-06-05 10:30:20 +0100444 "pipeline/skia/SkiaMemoryTracer.cpp",
445 "pipeline/skia/SkiaOpenGLPipeline.cpp",
446 "pipeline/skia/SkiaPipeline.cpp",
447 "pipeline/skia/SkiaProfileRenderer.cpp",
Fedor Kudasov182cbf92019-06-05 10:30:20 +0100448 "pipeline/skia/SkiaVulkanPipeline.cpp",
Fedor Kudasov182cbf92019-06-05 10:30:20 +0100449 "pipeline/skia/VkFunctorDrawable.cpp",
450 "pipeline/skia/VkInteropFunctorDrawable.cpp",
451 "renderstate/RenderState.cpp",
452 "renderthread/CacheManager.cpp",
453 "renderthread/CanvasContext.cpp",
454 "renderthread/DrawFrameTask.cpp",
455 "renderthread/EglManager.cpp",
456 "renderthread/ReliableSurface.cpp",
457 "renderthread/VulkanManager.cpp",
458 "renderthread/VulkanSurface.cpp",
459 "renderthread/RenderProxy.cpp",
Fedor Kudasov182cbf92019-06-05 10:30:20 +0100460 "renderthread/RenderThread.cpp",
Fedor Kudasov182cbf92019-06-05 10:30:20 +0100461 "service/GraphicsStatsService.cpp",
Fedor Kudasov182cbf92019-06-05 10:30:20 +0100462 "thread/CommonPool.cpp",
Fedor Kudasov182cbf92019-06-05 10:30:20 +0100463 "utils/GLUtils.cpp",
Alec Mouri45238012020-01-29 11:04:40 -0800464 "utils/NdkUtils.cpp",
Fedor Kudasov182cbf92019-06-05 10:30:20 +0100465 "utils/StringUtils.cpp",
Stan Ilievaaa9e832019-09-17 14:07:23 -0400466 "AutoBackendTextureRelease.cpp",
Fedor Kudasov182cbf92019-06-05 10:30:20 +0100467 "DeferredLayerUpdater.cpp",
468 "DeviceInfo.cpp",
469 "FrameInfo.cpp",
470 "FrameInfoVisualizer.cpp",
Fedor Kudasov182cbf92019-06-05 10:30:20 +0100471 "HardwareBitmapUploader.cpp",
472 "HWUIProperties.sysprop",
473 "JankTracker.cpp",
474 "Layer.cpp",
475 "LayerUpdateQueue.cpp",
476 "ProfileData.cpp",
477 "ProfileDataContainer.cpp",
478 "Readback.cpp",
Fedor Kudasov182cbf92019-06-05 10:30:20 +0100479 "TreeInfo.cpp",
480 "WebViewFunctorManager.cpp",
481 "protos/graphicsstats.proto",
482 ],
483
484 // Allow implicit fallthroughs in HardwareBitmapUploader.cpp until they are fixed.
485 cflags: ["-Wno-implicit-fallthrough"],
486 },
487 host: {
Fedor Kudasov86bd2142019-06-18 15:51:57 +0100488 srcs: [
489 "utils/HostColorSpace.cpp",
490 ],
Fedor Kudasov182cbf92019-06-05 10:30:20 +0100491 export_static_lib_headers: [
492 "libarect",
493 ],
494 }
495 }
Colin Crossf6298102017-04-19 15:25:25 -0700496}
497
498cc_library {
499 name: "libhwui",
Fedor Kudasov182cbf92019-06-05 10:30:20 +0100500 host_supported: true,
Chris Craikd17b63c2017-06-01 10:45:36 -0700501 defaults: [
502 "libhwui_defaults",
Derek Sollenberger83ccff72019-10-24 11:49:54 -0400503 "android_graphics_apex",
504 "android_graphics_jni",
Zhizhou Yang17371ec2017-10-13 11:42:13 -0700505 ],
Derek Sollenberger83ccff72019-10-24 11:49:54 -0400506 export_header_lib_headers: ["android_graphics_apex_headers"],
Colin Crossf6298102017-04-19 15:25:25 -0700507}
508
Colin Crossf6298102017-04-19 15:25:25 -0700509cc_library_static {
John Reck23462d82019-05-29 16:55:06 -0700510 name: "libhwui_static",
Colin Crossf6298102017-04-19 15:25:25 -0700511 defaults: [
512 "libhwui_defaults",
Colin Crossf6298102017-04-19 15:25:25 -0700513 ],
Colin Crossf6298102017-04-19 15:25:25 -0700514}
515
516cc_defaults {
517 name: "hwui_test_defaults",
518 defaults: ["hwui_defaults"],
519 test_suites: ["device-tests"],
Alec Mouri680414e2020-01-28 09:22:33 -0800520 target: {
521 android: {
522 shared_libs: [
523 "libgui",
Alec Mouri45238012020-01-29 11:04:40 -0800524 "libui",
Alec Mouri680414e2020-01-28 09:22:33 -0800525 ],
526 }
527 },
Colin Crossf6298102017-04-19 15:25:25 -0700528 srcs: [
529 "tests/common/scenes/*.cpp",
530 "tests/common/LeakChecker.cpp",
531 "tests/common/TestListViewSceneBase.cpp",
532 "tests/common/TestContext.cpp",
533 "tests/common/TestScene.cpp",
534 "tests/common/TestUtils.cpp",
535 ],
536}
537
538// ------------------------
539// unit tests
540// ------------------------
541
542cc_test {
543 name: "hwui_unit_tests",
544 defaults: ["hwui_test_defaults"],
545
546 static_libs: [
547 "libgmock",
John Reck23462d82019-05-29 16:55:06 -0700548 "libhwui_static",
Colin Crossf6298102017-04-19 15:25:25 -0700549 ],
Tej Singhbb8554a2018-01-26 11:59:14 -0800550 shared_libs: [
551 "libmemunreachable",
Tej Singhbb8554a2018-01-26 11:59:14 -0800552 ],
Colin Crossf6298102017-04-19 15:25:25 -0700553
554 srcs: [
555 "tests/unit/main.cpp",
Derek Sollenbergerf9e45d12017-06-01 13:07:39 -0400556 "tests/unit/CacheManagerTests.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700557 "tests/unit/CanvasContextTests.cpp",
John Reck322b8ab2019-03-14 13:15:28 -0700558 "tests/unit/CommonPoolTests.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700559 "tests/unit/DamageAccumulatorTests.cpp",
560 "tests/unit/DeferredLayerUpdaterTests.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700561 "tests/unit/FatVectorTests.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700562 "tests/unit/GraphicsStatsServiceTests.cpp",
563 "tests/unit/LayerUpdateQueueTests.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700564 "tests/unit/LinearAllocatorTests.cpp",
565 "tests/unit/MatrixTests.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700566 "tests/unit/PathInterpolatorTests.cpp",
567 "tests/unit/RenderNodeDrawableTests.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700568 "tests/unit/RenderNodeTests.cpp",
569 "tests/unit/RenderPropertiesTests.cpp",
John Reck700079e2019-02-19 10:38:50 -0800570 "tests/unit/RenderThreadTests.cpp",
Stan Ilievd495f432017-10-09 15:49:32 -0400571 "tests/unit/ShaderCacheTests.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700572 "tests/unit/SkiaBehaviorTests.cpp",
573 "tests/unit/SkiaDisplayListTests.cpp",
574 "tests/unit/SkiaPipelineTests.cpp",
575 "tests/unit/SkiaRenderPropertiesTests.cpp",
576 "tests/unit/SkiaCanvasTests.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700577 "tests/unit/StringUtilsTests.cpp",
578 "tests/unit/TestUtilsTests.cpp",
John Reckf8441e62017-10-23 13:10:41 -0700579 "tests/unit/ThreadBaseTests.cpp",
580 "tests/unit/TypefaceTests.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700581 "tests/unit/VectorDrawableTests.cpp",
John Reck283bb462018-12-13 16:40:14 -0800582 "tests/unit/WebViewFunctorManagerTests.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700583 ],
584}
585
586// ------------------------
587// Macro-bench app
588// ------------------------
589
590cc_benchmark {
591 name: "hwuimacro",
592 defaults: ["hwui_test_defaults"],
593
John Reck23462d82019-05-29 16:55:06 -0700594 static_libs: ["libhwui"],
Tej Singhbb8554a2018-01-26 11:59:14 -0800595 shared_libs: [
596 "libmemunreachable",
Tej Singhbb8554a2018-01-26 11:59:14 -0800597 ],
Colin Crossf6298102017-04-19 15:25:25 -0700598
599 srcs: [
600 "tests/macrobench/TestSceneRunner.cpp",
601 "tests/macrobench/main.cpp",
602 ],
603}
604
605// ------------------------
606// Micro-bench app
607// ---------------------
608
609cc_benchmark {
610 name: "hwuimicro",
611 defaults: ["hwui_test_defaults"],
612
John Reck23462d82019-05-29 16:55:06 -0700613 static_libs: ["libhwui_static"],
Tej Singhbb8554a2018-01-26 11:59:14 -0800614 shared_libs: [
615 "libmemunreachable",
Tej Singhbb8554a2018-01-26 11:59:14 -0800616 ],
Colin Crossf6298102017-04-19 15:25:25 -0700617
618 srcs: [
619 "tests/microbench/main.cpp",
620 "tests/microbench/DisplayListCanvasBench.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700621 "tests/microbench/LinearAllocatorBench.cpp",
622 "tests/microbench/PathParserBench.cpp",
623 "tests/microbench/RenderNodeBench.cpp",
Colin Crossf6298102017-04-19 15:25:25 -0700624 ],
625}
Pirama Arumuga Nainarbc1e1772017-11-17 11:32:16 -0800626
627// ----------------------------------------
628// Phony target to build benchmarks for PGO
629// ----------------------------------------
630
631phony {
632 name: "pgo-targets-hwui",
633 required: [
634 "hwuimicro",
635 "hwuimacro",
636 ]
637}