skia2/third_party/vulkanmemoryallocator/BUILD.gn
Brandon DeRosier 4230297004 Specify VMA include relative to source root
This is to help unblock the Skia->Flutter roll after https://skia.googlesource.com/skia.git/+/3b51120a92aa83ab7e465c6437bce23e0c094546.

See also: https://github.com/flutter/flutter/issues/102806#issuecomment-1112998932

Change-Id: I3fd061e495478efccda70d4c3e1647b7c6f375e4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/535356
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
2022-04-29 11:35:32 +00:00

36 lines
773 B
Plaintext

# 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("../../gn/skia.gni")
config("vulkanmemoryallocator_public") {
include_dirs = [
".",
"//third_party/externals/vulkanmemoryallocator/include",
]
}
source_set("vulkanmemoryallocator") {
public_configs = [ ":vulkanmemoryallocator_public" ]
include_dirs = [ "../../include/third_party/vulkan" ]
if (skia_disable_vma_stl_shared_mutex) {
defines = [ "VMA_USE_STL_SHARED_MUTEX=0" ]
}
sources = [
"GrVulkanMemoryAllocator.cpp",
"GrVulkanMemoryAllocator.h",
]
# Warnings are just noise if we're not maintaining the code.
if (is_win) {
cflags = [ "/w" ]
} else {
cflags = [ "-w" ]
}
}