From de2b95ea976afa55e6dd41e3ad24b092faa33ae2 Mon Sep 17 00:00:00 2001 From: Pirama Arumuga Nainar Date: Wed, 13 Dec 2017 11:07:39 -0800 Subject: Turn on PGO for skia_nanobench, skia_dm These libraries link libskia statically and hence need to do/use PGO instrumentation whenever libskia is instrumented. Test: Build skia_nanobench with ANDROID_PGO_INSTRUMENT=skia Bug: skia: Change-Id: I6b3e64f98f28c7236b47a46c213230ad1c6b95fc Reviewed-on: https://skia-review.googlesource.com/84609 Reviewed-by: Stephen Hines Reviewed-by: Derek Sollenberger Commit-Queue: Pirama Arumuga Nainar Commit-Queue: Derek Sollenberger --- gn/gn_to_bp.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'gn/gn_to_bp.py') diff --git a/gn/gn_to_bp.py b/gn/gn_to_bp.py index a09e46ca66..7e5bb1a22e 100644 --- a/gn/gn_to_bp.py +++ b/gn/gn_to_bp.py @@ -111,6 +111,17 @@ cc_defaults { }, } +// "defaults" property to disable profile use for Skia tools and benchmarks. +cc_defaults { + name: "skia_pgo_no_profile_use", + defaults: [ + "skia_pgo", + ], + pgo: { + enable_profile_use: false, + }, +} + cc_defaults { name: "skia_deps", shared_libs: [ @@ -143,7 +154,8 @@ cc_defaults { cc_defaults { name: "skia_tool_deps", defaults: [ - "skia_deps" + "skia_deps", + "skia_pgo_no_profile_use" ], static_libs: [ "libjsoncpp", -- cgit v1.2.3