skia2/third_party/vulkanmemoryallocator/BUILD.gn
Greg Daniel 37eef455fb Add include/config to vulkan memory allocator build.
Bug: skia:
Change-Id: Ic5e35c6d89203fcad734349afc421e84388997fb
Reviewed-on: https://skia-review.googlesource.com/135322
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2018-06-15 20:47:45 +00:00

40 lines
1.1 KiB
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.
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" ]
}
}