aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/vulkanmemoryallocator/BUILD.gn
blob: e15ea0c5635c0f6eed7d18a767bc2ab9487807d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 2018 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

config("vulkanmemoryallocator_public") {
  include_dirs = [ "." ]
}

source_set("vulkanmemoryallocator") {
  public_configs = [ ":vulkanmemoryallocator_public" ]

  # Need to add this so when we include GrVkDefines.h it internally can find SkTypes.h which is
  # needed in case the user set defines in SkUserConfig.h.
  include_dirs = [ "../../include/core" ]
  include_dirs += [ "../../include/config" ]
  if (defined(is_skia_standalone) && is_skia_standalone && !is_official_build) {
    include_dirs += [ "../../tools/gpu/vk" ]
    include_dirs += [ "../../include/config" ]
  }

  sources = [
    "GrVulkanMemoryAllocator.cpp",
    "GrVulkanMemoryAllocator.h",
  ]

  # 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",
  ]

  # Warnings are just noise if we're not maintaining the code.
  if (is_win) {
    cflags = [ "/w" ]
  } else {
    cflags = [ "-w" ]
  }
}