2018-05-29 14:46:51 +00:00
|
|
|
# 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" ]
|
|
|
|
|
2018-08-01 13:23:57 +00:00
|
|
|
include_dirs = [ "../vulkan" ]
|
|
|
|
|
2018-06-15 17:21:58 +00:00
|
|
|
# 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.
|
2018-08-01 13:23:57 +00:00
|
|
|
include_dirs += [ "../../include/core" ]
|
2018-06-15 20:22:05 +00:00
|
|
|
include_dirs += [ "../../include/config" ]
|
2018-05-29 14:46:51 +00:00
|
|
|
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",
|
|
|
|
]
|
|
|
|
|
|
|
|
# Warnings are just noise if we're not maintaining the code.
|
|
|
|
if (is_win) {
|
|
|
|
cflags = [ "/w" ]
|
|
|
|
} else {
|
|
|
|
cflags = [ "-w" ]
|
|
|
|
}
|
|
|
|
}
|