aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD.gn
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2016-09-21 07:36:14 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-21 07:36:14 -0700
commite4a9bd79c676346ada8f4c35fa3a7fd99dfc5544 (patch)
treef491ba8bc35f14bf6ac8ab19c1675bc707e3e9e3 /BUILD.gn
parent71477bdfb08bed2a6daeac9fc03930dedb68bc2b (diff)
Add define of SK_ENABLE_VK_LAYERS to gn build
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn6
1 files changed, 6 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 4e78a1c619..dddf118393 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -21,6 +21,9 @@ 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
}
# Our tools require static linking (they use non-exported symbols) and GPU support (just lazy).
@@ -328,6 +331,9 @@ optional("gpu") {
public_defines += [ "SK_VULKAN" ]
sources += skia_vk_sources
libs += [ "vulkan" ]
+ if (skia_enable_vulkan_debug_layers) {
+ public_defines += [ "SK_ENABLE_VK_LAYERS" ]
+ }
}
}