Jamie Madill | dac952e | 2020-05-05 12:17:44 -0400 | [diff] [blame^] | 1 | # Copyright 2020 The ANGLE Project Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | # |
| 5 | # Custom GN integration for VulkanMemoryAllocator. |
| 6 | |
| 7 | config("vulkan_memory_allocator_config") { |
| 8 | include_dirs = [ "src" ] |
| 9 | if (is_clang) { |
| 10 | cflags_cc = [ |
| 11 | "-Wno-implicit-fallthrough", |
| 12 | "-Wno-nullability-completeness", |
| 13 | "-Wno-unused-private-field", |
| 14 | "-Wno-unused-variable", |
| 15 | ] |
| 16 | } |
| 17 | if (is_win && !is_clang) { |
| 18 | cflags_cc = [ |
| 19 | "/wd4189", # local variable is initialized but not referenced |
| 20 | ] |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | source_set("vulkan_memory_allocator") { |
| 25 | sources = [ |
| 26 | "src/vk_mem_alloc.h", |
| 27 | ] |
| 28 | public_configs = [ ":vulkan_memory_allocator_config" ] |
| 29 | } |