diff options
author | joshualitt <joshualitt@chromium.org> | 2015-12-02 13:00:37 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-02 13:00:37 -0800 |
commit | f16f88b779f802bb3c9892e6f1275fe980e956a1 (patch) | |
tree | b21be7e2bb1ad49d2272b449f36aacbd9ed1ccaa /gyp | |
parent | 0711bdbccae72aa011ad5a5cb63284e912bb6f7b (diff) |
Create a define for nanobench builds to dump stats
TBR=bsalomon@google.com
BUG=skia:
Review URL: https://codereview.chromium.org/1499453002
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/common_conditions.gypi | 5 | ||||
-rw-r--r-- | gyp/common_variables.gypi | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi index eb9a6f3243..8385a47c5b 100644 --- a/gyp/common_conditions.gypi +++ b/gyp/common_conditions.gypi @@ -394,6 +394,11 @@ 'defines': [ 'SK_USE_SDL' ], }], + [ 'skia_dump_stats == 1', + { + 'defines': [ 'SK_DUMP_STATS'], + }], + [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { 'defines': [ diff --git a/gyp/common_variables.gypi b/gyp/common_variables.gypi index 64bc29f002..56ae72ed2c 100644 --- a/gyp/common_variables.gypi +++ b/gyp/common_variables.gypi @@ -238,6 +238,7 @@ 'skia_egl%': '<(skia_egl)', 'skia_use_sdl%': 0, 'skia_fast%': 0, + 'skia_dump_stats%': 0, 'skia_fast_flags': [ '-O3', # Even for Debug builds. '-march=native', # Use all features of and optimize for THIS machine. |