aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD.gn
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2017-06-13 13:47:53 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-13 18:50:03 +0000
commitc0f8e426c59eec6c720b8e1329dcb966cf1b6800 (patch)
tree78aa6ac1eb1196c0a9b86c5f20d893d004456130 /BUILD.gn
parent3809bab7ed344ad140346c38e149dabf10bd525f (diff)
Update skia to use ifdefs for Vulkan code instead of dummy header
Bug: skia:6721 Change-Id: I80a4c9f2acc09c174497f625c50ed12a8bb76505 Reviewed-on: https://skia-review.googlesource.com/19547 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn14
1 files changed, 7 insertions, 7 deletions
diff --git a/BUILD.gn b/BUILD.gn
index bb355c67c2..e3f87bce65 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -55,17 +55,14 @@ declare_args() {
}
}
declare_args() {
+ skia_vulkan_headers = ""
if (skia_use_vulkan) {
+ # When buliding on Android we get the header via the NDK so no need for any extra path.
if (is_fuchsia) {
skia_vulkan_headers = "$fuchsia_vulkan_sdk/include"
} else if (is_linux || is_win) {
skia_vulkan_headers = "$skia_vulkan_sdk/include"
- } else {
- # When buliding on Android we get the header via the NDK
- skia_vulkan_headers = ""
}
- } else {
- skia_vulkan_headers = "third_party/vulkan"
}
}
@@ -91,6 +88,10 @@ skia_public_includes = [
"include/utils/mac",
]
+if (skia_use_vulkan) {
+ skia_public_includes += [ "include/gpu/vk" ]
+}
+
# Skia public API, generally provided by :skia.
config("skia_public") {
include_dirs = skia_public_includes
@@ -748,8 +749,7 @@ if (skia_enable_tools) {
skia_h = "$target_gen_dir/skia.h"
script = "gn/find_headers.py"
args = [ rebase_path(skia_h, root_build_dir) ] +
- rebase_path(skia_public_includes) +
- [ rebase_path("third_party/vulkan") ]
+ rebase_path(skia_public_includes)
depfile = "$skia_h.deps"
outputs = [
skia_h,