1# Copyright 2018 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6config("vulkanmemoryallocator_public") {
7  include_dirs = [ "." ]
8}
9
10source_set("vulkanmemoryallocator") {
11  public_configs = [ ":vulkanmemoryallocator_public" ]
12
13  include_dirs = [ "../../include/third_party/vulkan" ]
14
15  # Need to add this so when we include GrVkDefines.h it internally can find SkTypes.h which is
16  # needed in case the user set defines in SkUserConfig.h.
17  include_dirs += [ "../../include/core" ]
18  include_dirs += [ "../../include/config" ]
19  if (defined(is_skia_standalone) && is_skia_standalone && !is_official_build) {
20    include_dirs += [ "../../tools/gpu/vk" ]
21    include_dirs += [ "../../include/config" ]
22  }
23
24  sources = [
25    "GrVulkanMemoryAllocator.cpp",
26    "GrVulkanMemoryAllocator.h",
27  ]
28
29  # Warnings are just noise if we're not maintaining the code.
30  if (is_win) {
31    cflags = [ "/w" ]
32  } else {
33    cflags = [ "-w" ]
34  }
35}
36