aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--BUILD.gn11
-rw-r--r--gn/BUILDCONFIG.gn2
2 files changed, 10 insertions, 3 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 419b0822e1..e2cdb4fbbf 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -6,6 +6,11 @@
import("gn/android_framework_defines.gni")
import("gn/shared_sources.gni")
+if (!defined(is_skia_standalone)) {
+ is_skia_standalone = false
+}
+is_skia_dev_build = is_skia_standalone && !is_official_build
+
declare_args() {
skia_use_angle = false
skia_use_expat = true
@@ -25,11 +30,11 @@ declare_args() {
skia_enable_android_framework_defines = false
skia_enable_discrete_gpu = true
skia_enable_effects = true
- skia_enable_jumper = !is_official_build
+ skia_enable_jumper = is_skia_dev_build
skia_enable_gpu = true
skia_enable_pdf = true
- skia_enable_tools = !is_official_build
- skia_enable_vulkan_debug_layers = !is_official_build && is_debug
+ skia_enable_tools = is_skia_dev_build
+ skia_enable_vulkan_debug_layers = is_skia_dev_build && is_debug
skia_vulkan_sdk = getenv("VULKAN_SDK")
}
declare_args() {
diff --git a/gn/BUILDCONFIG.gn b/gn/BUILDCONFIG.gn
index 9582c46663..a89931b432 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() {