aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD.gn
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-04-25 16:05:29 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-26 12:50:03 +0000
commit5db010bfb5d4ed9d9f1dd90d5baa56e14e07a1cd (patch)
treee452eed9d5291a9f48d677d6b28f1f35fde52348 /BUILD.gn
parent78de212909a72a3ad74d652b39c941236f7047ad (diff)
Link to vulkan in tools but not library.
This also now requires an explicit vulkan proc address getter to be used with GrVkBackendContext::Create. Change-Id: I768ec487398dab68e6e10409419ac7a00ec1822a Reviewed-on: https://skia-review.googlesource.com/14322 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn15
1 files changed, 5 insertions, 10 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 5d64c58050..76cfbd295f 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -41,7 +41,6 @@ declare_args() {
skia_enable_tools = is_skia_dev_build
skia_enable_vulkan_debug_layers = is_skia_dev_build && is_debug
skia_vulkan_sdk = getenv("VULKAN_SDK")
- skia_link_with_vulkan = !is_fuchsia
}
declare_args() {
skia_use_dng_sdk = !is_fuchsia && skia_use_libjpeg_turbo && skia_use_zlib
@@ -167,15 +166,6 @@ config("skia_private") {
lib_dirs += [ "$skia_vulkan_sdk/lib/" ]
}
}
-
- if (skia_link_with_vulkan) {
- defines += [ "SK_LINK_WITH_VULKAN" ]
- if (is_win) {
- libs += [ "vulkan-1.lib" ]
- } else {
- libs += [ "vulkan" ]
- }
- }
}
if (skia_enable_gpu) {
include_dirs += [ "src/gpu" ]
@@ -911,6 +901,11 @@ if (skia_enable_tools) {
}
if (skia_use_vulkan) {
sources += [ "tools/gpu/vk/VkTestContext.cpp" ]
+ if (is_win) {
+ libs += [ "vulkan-1.lib" ]
+ } else {
+ libs += [ "vulkan" ]
+ }
}
}
}