diff options
-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() { |