diff options
author | mtklein <mtklein@chromium.org> | 2016-09-21 09:14:19 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-21 09:14:19 -0700 |
commit | 3e8012e74f70bf49427a7422f9e5996c9882d4f3 (patch) | |
tree | 3f1d42f3055f624c6ef0b677667b2f8f8582c8e9 | |
parent | 45f04b8ea8256476d87c677e23d9efbcb0ab937e (diff) |
GN: is_skia_standalone
is_skia_standalone will be defined and set to true iff we're using our
standalone BUILDCONFIG.gn. Any other build (Fuchsia, Chrome, Pdfium)
will have their own BUILDCONFIG.gn, which presumably does not define
is_skia_standalone.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2357963002
Review-Url: https://codereview.chromium.org/2357963002
-rw-r--r-- | BUILD.gn | 10 | ||||
-rw-r--r-- | gn/BUILDCONFIG.gn | 2 |
2 files changed, 8 insertions, 4 deletions
@@ -5,6 +5,10 @@ import("gn/shared_sources.gni") +if (!defined(is_skia_standalone)) { + is_skia_standalone = false +} + declare_args() { skia_use_expat = true skia_use_fontconfig = is_linux @@ -20,10 +24,8 @@ declare_args() { skia_enable_android_framework_defines = false skia_enable_gpu = true - skia_enable_tools = !is_fuchsia - - # TODO: Vulkan debug layers should be disabled for all client uses of skia as well. - skia_enable_vulkan_debug_layers = !is_fuchsia && is_debug + skia_enable_tools = is_skia_standalone + skia_enable_vulkan_debug_layers = is_skia_standalone && is_debug } # Our tools require static linking (they use non-exported symbols) and GPU support (just lazy). diff --git a/gn/BUILDCONFIG.gn b/gn/BUILDCONFIG.gn index e294854aa7..84e092426b 100644 --- a/gn/BUILDCONFIG.gn +++ b/gn/BUILDCONFIG.gn @@ -3,6 +3,8 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +is_skia_standalone = true + # It's best to keep the names and defaults of is_foo flags consistent with Chrome. declare_args() { |