diff options
author | Adam Barth <abarth@google.com> | 2017-10-13 10:59:38 -0700 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-13 18:20:28 +0000 |
commit | 54ef74ae34579f485955eb205be174e70bd73b9d (patch) | |
tree | e65e8b890a6d8179ab23ff1224d40b7f3eb99192 | |
parent | 7c1eae5c904e7fe9ade7b53f563bb490831428ac (diff) |
Add the ability to customize skia's settings in gn
Fuchsia also builds Skia for host and wants to set various gn variables (e.g.,
skia_enable_flutter_defines) when is_linux is true. Rather than teach Skia
about all these permutations, this CL adds a skia_settings variable that can be
used by clients to customize Skia's configuration.
Change-Id: I6fd4798b0ce86615688ea19328236ae0f3a93c4d
Reviewed-on: https://skia-review.googlesource.com/59720
Commit-Queue: Adam Barth <abarth@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
-rw-r--r-- | BUILD.gn | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -75,6 +75,10 @@ declare_args() { } } +if (defined(skia_settings)) { + import(skia_settings) +} + # Our tools require static linking (they use non-exported symbols). skia_enable_tools = skia_enable_tools && !is_component_build |