diff options
author | 2017-04-25 16:05:29 -0400 | |
---|---|---|
committer | 2017-04-26 12:50:03 +0000 | |
commit | 5db010bfb5d4ed9d9f1dd90d5baa56e14e07a1cd (patch) | |
tree | e452eed9d5291a9f48d677d6b28f1f35fde52348 /BUILD.gn | |
parent | 78de212909a72a3ad74d652b39c941236f7047ad (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.gn | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -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" ] + } } } } |