aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/vulkanmemoryallocator/BUILD.gn
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-05-25 11:02:16 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-25 15:24:42 +0000
commit26c0e4c1f54759249c2d61b50fb5430bd73793f2 (patch)
tree42dee870d6db76cc4a532f77914bfbf837918be1 /third_party/vulkanmemoryallocator/BUILD.gn
parente7e6e22912cec1bd59348fd3889c7d8ae7b6bdc4 (diff)
Create API for GrVkMemoryAllocator and impliment use of AMD VulkanMemoryAllocator on this API.
Bug: skia: Change-Id: I1e122e1b11ab308c2f83cb98c36c81511f4507d0 Reviewed-on: https://skia-review.googlesource.com/129980 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'third_party/vulkanmemoryallocator/BUILD.gn')
-rw-r--r--third_party/vulkanmemoryallocator/BUILD.gn26
1 files changed, 26 insertions, 0 deletions
diff --git a/third_party/vulkanmemoryallocator/BUILD.gn b/third_party/vulkanmemoryallocator/BUILD.gn
new file mode 100644
index 0000000000..cf64e2b57e
--- /dev/null
+++ b/third_party/vulkanmemoryallocator/BUILD.gn
@@ -0,0 +1,26 @@
+# Copyright 2018 Google Inc.
+#
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("../third_party.gni")
+
+third_party("vulkanmemoryallocator") {
+ public_include_dirs = [ "./" ]
+ include_dirs = []
+ if (defined(is_skia_standalone) && is_skia_standalone && !is_official_build) {
+ include_dirs += [ "../../tools/gpu/vk" ]
+ include_dirs += [ "../../include/core" ]
+ include_dirs += [ "../../include/config" ]
+ }
+
+ # TODO: As described in the main skia BUILD.gn file we eventually want to move this to be
+ # //third_party/vulkan once clients have created their own //third_party/vulkan directory.
+ deps = [
+ "../vulkan",
+ ]
+ sources = [
+ "GrVulkanMemoryAllocator.cpp",
+ "GrVulkanMemoryAllocator.h",
+ ]
+}