• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
6import("../../../../gn/skia.gni")
7
8config("vulkanmemoryallocator_public") {
9  include_dirs = [ "." ]
10}
11
12source_set("vulkanmemoryallocator") {
13  public_configs = [ ":vulkanmemoryallocator_public" ]
14
15  include_dirs = [ "${skia_root_dir}" ]
16  deps = [ "${skia_third_party_dir}/vulkanmemoryallocator:vulkan_memoryallocator" ]
17  external_deps = [ "vulkan-headers:vulkan_headers" ]
18  defines = [ "SK_USE_INTERNAL_VULKAN_HEADERS" ]
19
20  if (skia_disable_vma_stl_shared_mutex) {
21    defines += [ "VMA_USE_STL_SHARED_MUTEX=0" ]
22  }
23
24  sources = [
25    "VulkanMemoryAllocatorWrapper.cpp",
26    "VulkanMemoryAllocatorWrapper.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