diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2017-12-13 11:07:39 -0800 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-14 18:47:07 +0000 |
commit | de2b95ea976afa55e6dd41e3ad24b092faa33ae2 (patch) | |
tree | 05eb044b6acbc562c3165818ea5efa2bb94fadbc /gn | |
parent | a376e640c640d0b14a17edcaa73c2c9a52e7a4df (diff) |
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 <srhines@google.com>
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Pirama Arumuga Nainar <pirama@google.com>
Commit-Queue: Derek Sollenberger <djsollen@google.com>
Diffstat (limited to 'gn')
-rw-r--r-- | gn/gn_to_bp.py | 14 |
1 files changed, 13 insertions, 1 deletions
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", |