aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2016-10-27 10:48:48 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-10-27 15:33:19 +0000
commit686bb21f3ed19218a85e94798fe50e240e3fac08 (patch)
treec3b60b2e26f96aef3766abba239834fe6ca5741f
parent53f63b69e83fd805418d72a6eeb860cf0fcff3c5 (diff)
Default vulkan sdk to VULKAN_SDK env var in GN
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4032 Change-Id: I48767cbbe7e0cd306e448bdc983c853f66121e1b Reviewed-on: https://skia-review.googlesource.com/4032 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Greg Daniel <egdaniel@google.com>
-rw-r--r--BUILD.gn6
1 files changed, 3 insertions, 3 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 30f58fe339..f6e4f0c2f3 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -28,7 +28,7 @@ declare_args() {
skia_enable_gpu = true
skia_enable_tools = is_skia_standalone
skia_enable_vulkan_debug_layers = is_skia_standalone && is_debug
- skia_vulkan_sdk = ""
+ skia_vulkan_sdk = getenv("VULKAN_SDK")
}
skia_use_vulkan = skia_use_vulkan || skia_vulkan_sdk != ""
@@ -123,8 +123,8 @@ config("skia_private") {
include_dirs += [ "$skia_vulkan_sdk/Include/" ]
lib_dirs += [ "$skia_vulkan_sdk/Bin" ]
} else {
- include_dirs += [ "$skia_vulkan_sdk/x86_64/include/" ]
- lib_dirs += [ "$skia_vulkan_sdk/x86_64/lib/" ]
+ include_dirs += [ "$skia_vulkan_sdk/include/" ]
+ lib_dirs += [ "$skia_vulkan_sdk/lib/" ]
}
}
if (is_win) {